git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[JGIT PATCH v2] Addition of source and javadoc plugins to maven script

From
CPConstantine 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
Previous: Constantine Plotnikov
Message 2 of 2 in “Addition of source and javadoc plugins to maven script”
  1. Addition of source and javadoc plugins to maven scriptConstantine Plotnikov, Apr 1, 2009
  2. Addition of source and javadoc plugins to maven scriptConstantine Plotnikov, Apr 1, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.