Hi! is it true that the jar plugin does not add the generated artifact to the reactor to share it with other projects in a multi-project-build? They get installed and deployed, but I failed to notice that the dependency-plugin will still grab the specified artifacts from the local repo (instead of from the reactor).
I added the buildhelper plugin and now everthing works fine (besides the site-plugin, but this is a filed bug - http://jira.codehaus.org/browse/MSITE-171). I want to use tests from one submodule in another module of the same multi-module. This is what works for me: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <executions> <execution> <goals> <goal>test-jar</goal> </goals> <configuration> ... </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>${basedir}/target/${project.build.finalName}-tests.jar</file> <type>jar</type> <classifier>tests</classifier> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> In the submodule I use the dependency-plugin: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <configuration> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> </configuration> <executions> <execution> <id>repack-entity-classes</id> .... </execution> <execution> <id>unpack-test-classes</id> <phase>test-compile</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.testOutputDirectory}</outputDirectory> <includeGroupIds>de.smartics.timesheet</includeGroupIds> <includeArtifactIds>timesheet-ejb-core</includeArtifactIds> <includeClassifiers>tests</includeClassifiers> </configuration> </execution> </executions> </plugin> Is this the right way to go? Regards, Robert -- View this message in context: http://www.nabble.com/jar-does-not-attach-to-reactor--tp16491295s177p16491295.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]
