I have a jar file with source code. Our project has own Nexus repository. I want load this file to into this repository and get dependency tag for download it.
Can you describe the procedure ?
I want to write line in cmd
I have a jar file with source code. Our project has own Nexus repository. I want load this file to into this repository and get dependency tag for download it.
Can you describe the procedure ?
I want to write line in cmd
You have to add a dependencies
tag in your pom.xml :
<dependencies>
<dependency>
<groupId>org.yourgroupid</groupId>
<artifactId>your-artifact-id</artifactId>
<version>your-version</version>
</dependency>
</dependencies>
And you have to add a repositories
tag on which you will put your repository URL:
<repositories>
<repository>
<id>your-id</id>
<url>http://your-url</url>
</repository>
</repositories
Edit
Here is the way to deploy to your Nexus:
<distributionManagement>
<repository>
<id>nexus-repo</id>
<url>http://your-nexus</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>http://your-nexus</url>
</snapshotRepository>
</distributionManagement>
It can use scp
or you may need to add wagon-plugin
or cargo-plugin
.
See more: http://maven.apache.org/pom.html#Distribution_Management