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
>