What I want to do is to include all jars from all modules/sub-modules that
are built from the top level when I do "mvn compile install".
in the top level C:\projects\<myproject>\pom.xml
there is no /src/main/java directory to build. It is a top level
project/container only for submodules and the packaging in the top level
pom.xml is simply "pom".
How do I build a super jar containing all jars that were built as a result
of having a <module> line in a pom (or sub module pom), and have all
dependencies that that jar needs (downloaded to .m2/repository/ )
be included in a super jar?
thanks
I get this error:
[INFO] Failed to create assembly: Error creating assembly archive superjar:
You must set at least on
e file.
--- This is my assembly.xml (I'm not sure exactly what everything here does
- got it from an example online)
<assembly>
<id>superjar</id>
<includeBaseDirectory>true</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includeSubModules>true</includeSubModules>
<binaries>
<outputDirectory>
${module.artifactId}-${module.version}
</outputDirectory>
<dependencySets>
<dependencySet/>
</dependencySets>
</binaries>
</moduleSet>
</moduleSets>
<formats>
<format>jar</format>
</formats>
</assembly>
--
View this message in context:
http://www.nabble.com/Problems-with-maven-building-a-%22super-jar%22-tp21278586p21279575.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]