Hello Eric, I think most of the plugins are configured in apache pom and we should avoid duplication as much as possible.
Cheers, On Tue, Jan 8, 2013 at 4:18 PM, <[email protected]> wrote: > Author: eric > Date: Tue Jan 8 14:18:13 2013 > New Revision: 1430296 > > URL: http://svn.apache.org/viewvc?rev=1430296&view=rev > Log: > James parent should enforce the test-jar generation (JAMES-1465) > > Modified: > james/project/trunk/pom.xml > > Modified: james/project/trunk/pom.xml > URL: > http://svn.apache.org/viewvc/james/project/trunk/pom.xml?rev=1430296&r1=1430295&r2=1430296&view=diff > ============================================================================== > --- james/project/trunk/pom.xml (original) > +++ james/project/trunk/pom.xml Tue Jan 8 14:18:13 2013 > @@ -646,6 +646,38 @@ > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-jar-plugin</artifactId> > <version>2.4</version> > + <executions> > + <execution> > + <id>jar</id> > + <phase>package</phase> > + <goals> > + <goal>jar</goal> > + </goals> > + <configuration> > + <archive> > + <manifest> > + > <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> > + > <addDefaultImplementationEntries>true</addDefaultImplementationEntries> > + </manifest> > + </archive> > + </configuration> > + </execution> > + <execution> > + <id>test-jar</id> > + <phase>package</phase> > + <goals> > + <goal>test-jar</goal> > + </goals> > + <configuration> > + <archive> > + <manifest> > + > <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> > + > <addDefaultImplementationEntries>true</addDefaultImplementationEntries> > + </manifest> > + </archive> > + </configuration> > + </execution> > + </executions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > @@ -740,6 +772,15 @@ > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-source-plugin</artifactId> > <version>2.2.1</version> > + <executions> > + <execution> > + <id>attach-sources</id> > + <goals> > + <goal>jar</goal> > + <goal>test-jar</goal> > + </goals> > + </execution> > + </executions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Ioan Eugen Stan / CTO / http://axemblr.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
