You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Bruno Patini Furtado <bp...@gmail.com> on 2006/03/17 19:25:05 UTC

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

RE : Installing artifacts into a local repository

Posted by Olivier Lamy <ol...@accor.com>.
Try : mvn deploy 

-----Message d'origine-----
De : Bruno Patini Furtado [mailto:bpfurtado@gmail.com] 
Envoyé : vendredi 17 mars 2006 19:25
À : users@maven.apache.org
Objet : 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



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org