On 27 July 2012 14:05, Matthias Pfeifer <mpfeife...@gmail.com> 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
>

^ this extension looks odd, almost as if "qls" was somehow attached to the
end of your command (making it -Dpackaging=jarqls instead
of -Dpackaging=jar)

-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...
>
> Matthias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-- 
Cheers, Stuart

Reply via email to