I have a parent maven project that includes some child projects and a build/assembly project. The structure looks like this, where the buildProj does not contain any class
ParentProj
+ pom.xml
+ ChildProj1
++ pom.xml
+ ChildProj2
++ pom.xml
+ buildProj
++ pom.xml
this is the pom.xml of the buildProj:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>gr1</groupId>
<artifactId>buildproj</artifactId>
<version>2.0.0</version>
<dependencies>
<dependency>
<groupId>gr1</groupId>
<artifactId>ChildProj1</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>gr1</groupId>
<artifactId>ChildProj2</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.bonanza.CabalImpl</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
nevertheless when I do mvn package, the jar of the buildProj is empty