Maven deploy sources

Submitted by Jochus on Tue, 16/02/2010 - 23:24 | Posted in: Java

Today, I needed to deploy a 3rd party JAR file to our internal Nexus repository. The 3rd party JAR file was build from source, so I wanted to include the sources as well in our repo. I found out you can easily do this with -DperformRelease=true:

C:\Documents and Settings\jhbcrd6\Desktop\ejb3unit>mvn deploy -DperformRelease=true
[INFO] [deploy:deploy]
Uploading: 8< ... >8 ejb3unit-2.0.0-ctp.jar
15412K uploaded  (ejb3unit-2.0.0-ctp.jar)
[INFO] Uploading repository metadata for: 'artifact'
[INFO] Uploading project information for ejb3unit 2.0.0-ctp
Uploading: 8< ... >8 ejb3unit-2.0.0-ctp-sources.jar
368K uploaded  (ejb3unit-2.0.0-ctp-sources.jar)
Uploading: 8< ... >8 ejb3unit-2.0.0-ctp-javadoc.jar
1798K uploaded  (ejb3unit-2.0.0-ctp-javadoc.jar)

Add new comment

The content of this field is kept private and will not be shown publicly.


  • Lines and paragraphs break automatically.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Web page addresses and email addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <cpp>, <css>, <html5>, <java>, <javascript>, <php>, <sql>, <xml>. The supported tag styles are: <foo>, [foo].
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.