[JGIT PATCH v2] Addition of source and javadoc plugins to maven script
- From
- Constantine Plotnikov <constantine.plotnikov@gmail.com>
- Date
- Apr 1, 2009, 11:50 UTC
- Message-ID
- <85647ef50904010450ief9e3b2lf4245bac86bd4c6f@mail.gmail.com>
- In-Reply-To
- <85647ef50904010448j688b1c7agd01e7dfef107b36d@mail.gmail.com>
When JGIT jar is bundled with projects, it often needed to inspect JGIT sources in order to look for documentation and implementation. The sources are also very useful during debugging. The patch adds source plugin that builds source jar, so the matching version of the source.jar could be easily bundled. The javadoc plugin generates ready to use archive with javadoc.
Signed-off-by: Constantine Plotnikov <constantine.plotnikov@gmail.com> --- Forgot Signed-off-by in the previous version.
jgit-maven/jgit/pom.xml | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/jgit-maven/jgit/pom.xml b/jgit-maven/jgit/pom.xml index c370783..75c4b75 100644 --- a/jgit-maven/jgit/pom.xml +++ b/jgit-maven/jgit/pom.xml @@ -169,6 +169,26 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </includes> </configuration> </plugin> + <plugin> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </build> <dependencies>
-- 1.6.0.2.1172.ga5ed0