Bourne
Bourne

Reputation: 1927

Publishing local libraries to remote maven repository

I have a set of libraries which I want to publish into our organization's remote maven repository. Right now I have created a local directory and put all the libraries there. I have specified this local directory as the repository using the below :

<repositories>
    <repository>
        <id>project-repo</id>
        <name>custom repo</name>
        <url>file://${project.baseUri}/../repository</url>
    </repository>
</repositories>

I want to migrate all the libraries under this repo to our organization's central repo located at http://mvn.app.xyz.repo.com.

How do I achieve it? How can I copy the libraries from the "project-repo" to the central repo?

I'm using maven version 3.1-1

Upvotes: 0

Views: 73

Answers (1)

Harald Wellmann
Harald Wellmann

Reputation: 12865

Try the Maven Deploy Plugin: mvn deploy:deploy-file.

Upvotes: 2

Related Questions