techsjs2013
techsjs2013

Reputation: 2627

How does my firm get a jar into a maven repo so maven projects can access it from inhouse

How does my firm get a jar into a maven repo so maven projects can access it from inhouse.

Can someone please point me to a good step by step details on how to do the following

Make a jar with Maven Get the jar installed into a local maven repo

Upvotes: 0

Views: 99

Answers (1)

user177800
user177800

Reputation:

I doubt your company wants their private internal code hosted on a public repository:

Install your own repository server inside your own network, I use Archiva. This is the most ideal solution, then you can set up Mavenized projects to automatically upload themselves to your private repository when you do mvn:release and everyone will see the new versions. How to use Archiva is all very well documented.

If they have open source code that want to share, that is different:

You can publish public facing open source code through Sonatype.

If you just want to install a dependency to a local repository:

If you just want to install a .jar locally that is easy and well documented.

mvn install:install-file  -Dfile=path-to-your-artifact-jar \
                          -DgroupId=your.groupId \
                          -DartifactId=your-artifactId \
                          -Dversion=version \
                          -Dpackaging=jar

Upvotes: 5

Related Questions