How to deploy local jar to internal repository:

1) Install local:
mvn install:install-file -Dfile=alice-commons-1.2.jar ^
                         -DgroupId=alice-commons ^
                         -DartifactId=alice-commons ^
                         -Dversion=1.2 ^
                           -Dpackaging=jar

This create the structure .m2/repository/alice-commons/alice-commons/1.2

2) ftp all the structure to the docroot of the inernal repository


But just now I tried to compile my project and I had this warning:
Downloading: http://
localhost:8089/pub/maven/alice-commons/alice-commons/1.2/alice-commons-1.2.p
om
[WARNING] Unable to get resource from repository RossoAlice Repo
(http://localhost:8089/pub/maven)   <---- my repo :-)
Downloading:
http://repo1.maven.org/maven2/alice-commons/alice-commons/1.2/alice-commons-
1.2.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)      <---- ok


... but without the .pom the compilation failed because the compiler is not
able to found the jar (is it right?).

... in the step 1 above the installtion in the local repository create a
maven-metadata-local.xml. who use it? 

Is there a way to create the .pom file like the maven-metadata-local.xml
file?

Tnx,
Luca


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to