users@jersey.java.net

Re: [Jersey] Source and Javadoc jars in maven

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 23 Jul 2008 14:39:23 -0400

Salut,

Matt Brozowski wrote:
> I am using maven and eclipse to develop an app using Jersey and
> unfortunately the source and javadoc jars are not being published to the
> maven2 repo. This makes understanding the code quite a bit more
> complicated so I was hoping to help move this along by contributing in
> this area.
>
> Could someone point me to the script of process that's currently used to
> publish to the maven2 repository now?

Looks like the following is missing in the main pom in order to upload
the src/javadocs:

> <plugin>
> <inherited>true</inherited>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-source-plugin</artifactId>
> <executions>
> <execution>
> <id>attach-sources</id>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-javadoc-plugin</artifactId>
> <executions>
> <execution>
> <id>attach-javadocs</id>
> <goals>
> <goal>jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>

But it makes the build a little slower when doing that. But that's quite
helpful :-)

A+

-- Jeanfrancois



>
> Thanks a bunch,
> Matt Brozowski
>