maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: install jar file into local repository
Date Fri, 27 Jul 2012 13:33:39 GMT
Matthias Pfeifer wrote:

> Hello,
> 
> I have a jar file that i plan to add to a projects dependencies. I
> need to test this jar file as a dependency of some project and
> therefore did
> 
> $ mvn -l mvn.log -e -X install:install-file -Dfile=myartifact.jar
> -DgroupId=com.mycompany -DartifactId=myartifact -Dversion="6.1.0 RC"
> -Dpackaging=jar
> 
> to install it.
> 
> Maven informs me about "BUILD SUCCESS" (mvn.log is attached). Taking a
> look into the repository
> 
> $ ls $HOME/.m2/repository/com/mycompany/myartifact/6.1.0\ RC/
> -rwx------+ 1 myusername Domain Users      184 Jul 27 14:54
> _maven.repositories -rwx------+ 1 myusername Domain Users 453125 Jul 19
> 10:53 ndf-core-6.1.0 RC.jarqls
> -rwx------+ 1 myusername Domain Users      497 Jul 27 14:54
> ndf-core-6.1.0 RC.pom
> 
> Reveals that the jar file is not present. Either I have the wrong
> expectation here or something else i am doing wrong.
> 
> Is this not the way to install a jar-file to a local repository?
> According to official FAQ Question 11 it is...

Use a valid version. It may definitely not contain a space character.

- Jörg


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


Mime
View raw message