Re: assembly and including a test-jar
Thanks for the reply. I'm not sure how to select the correct file for inclusion in the assembly, but I tried many different combinations in the include tags: includecom.comcast.vodauto:vodtest:*:test/include ... includecom.comcast.vodauto:vodtest:*:test-jar/include ... The assembly plugin always includes the wrong file. On Wed, Feb 24, 2010 at 5:58 AM, Karl Heinz Marbaise k...@soebes.de wrote: Hi, i assume your problem is due to the includes you have defined... Edderd wrote: includecom.comcast.vodauto:vodmain/include includecom.comcast.vodauto:vodtest/include http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html You could use includegroupId:artifactId:type:classifier/include format to include a particular type... may be includecom.comcast.vodauto:vodtest:*:test/include instead would help ? Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/assembly-and-including-a-test-jar-tp27712959p27714192.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- - Ed
Re: assembly and including a test-jar
Hi, i assume your problem is due to the includes you have defined... Edderd wrote: includecom.comcast.vodauto:vodmain/include includecom.comcast.vodauto:vodtest/include http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html You could use includegroupId:artifactId:type:classifier/include format to include a particular type... may be includecom.comcast.vodauto:vodtest:*:test/include instead would help ? Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/assembly-and-including-a-test-jar-tp27712959p27714192.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
assembly and including a test-jar
I am assembling a jar-with-dependencies jar for a project with two modules. mvn package assembly:assembly assembles the jar using the wrong jar file for one of the modules. I believe the solution is in how I configure the assembly descriptor to include the right jar, but this is where I'm having trouble. The two modules are vodmain vodtest vodtest is a test-jar packaged using the maven jar plugin, and mvn package generatest two jar files 71122 vodtest-1.0-SNAPSHOT-tests.jar --- This is the file *I want*included in the jar-with-dependencies. 1987 vodtest-1.0-SNAPSHOT.jar -- This is the file that gets included instead. I'm creating the vodtest-1.0-SNAPSHOT-tests.jar by using the maven-jar-plugin plugin artifactIdmaven-jar-plugin/artifactId executions execution idtest-jar/id phasepackage/phase goals goaltest-jar/goal /goals /execution /executions /plugin The main pom uses the assembly-plugin to create the assembly. How do I configure it so that it includes the test-jar : vodtest-1.0-SNAPSHOT-tests.jar instead of the other jar. assembly idjar-with-dependencies/id formats formatjar/format /formats includeBaseDirectoryfalse/includeBaseDirectory moduleSets moduleSet includes includecom.comcast.vodauto:vodmain/include includecom.comcast.vodauto:vodtest/include /includes binaries outputDirectory/outputDirectory includeDependenciestrue/includeDependencies unpacktrue/unpack outputFileNameMapping / /binaries /moduleSet /moduleSets dependencySets dependencySet outputDirectory/outputDirectory outputFileNameMapping/outputFileNameMapping unpacktrue/unpack scoperuntime/scope /dependencySet /dependencySets /assembly -- - Ed