You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthias Pfeifer <mp...@gmail.com> on 2012/07/27 15:05:09 UTC

install jar file into local repository

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...

Matthias


Re: install jar file into local repository

Posted by Matthias Pfeifer <mp...@gmail.com>.
Hello,

Thanks for the hint. In fact somehow qls was attached to my commandline.
Thanks for all answers. please consider my question closed.

Matthias



--

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


Re: install jar file into local repository

Posted by Stuart McCulloch <mc...@gmail.com>.
On 27 July 2012 14:05, Matthias Pfeifer <mp...@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

-- 
Cheers, Stuart

Re: install jar file into local repository

Posted by Matthias Pfeifer <mp...@gmail.com>.
Changing the version to "6.1.0" as proposed by jörg did not change anything.

matthias

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


Re: install jar file into local repository

Posted by Jörg Schaible <jo...@gmx.de>.
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