That should be 'mvn deploy'. 

'mvn install' installs stuff in your local repository cache
'mvn deploy' deploys it to a repository

mvn deploy will give you what you need.

-----Original Message-----
From: Bruno Patini Furtado [mailto:[EMAIL PROTECTED]
Sent: Fri 3/17/2006 7:25 PM
To: [email protected]
Subject: Installing artifacts into a local repository
 
I´m using the install plugin to install a artifact into my intranet
repository. I´ve seen in some recent thread a example of the
distributionManagement configuration that uses the file:// URL protocol.

My pom goes like this:

    <distributionManagement>
        <repository>
            <id>mycompany-repository</id>
            <name>MyCompany Repository</name>
            <url>file://c:/tools/maven-repo</url>
        </repository>
    </distributionManagement>

But after running maven install I´ve noted that it only installed the
artifact into my ~/.m2/repository

[INFO] Installing c:\<PROJECT_HOME>\target\<ARTIFACT_NAME>-2.0.jar to
<USER_HOME>\.m2\repository\<GROUP_ID>\<ARTIFACT_NAME>\2.0\<ARTIFACT_NAME>-
2.0.jar

Am I missing something?

Thanks in advance.

--
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net
blog: http://bpfurtado.livejournal.com

Reply via email to