Hello,

I am trying to have maven install a jar into my local repository with the
following from the command line:

mvn install:install-file -DgroupId=org.us.test -DartifactId=JSJava
-Dversion=0.0.1 -Dpackaging=jar -Dfile=JSJava-0.0.1.jar

This completes successfully, but the jar, pom and dependencies end up in
c:\.m2\repository rather than <userhome>\.m2\repository.  This line is from
maven's output:

[INFO] Installing C:\TEMP\jars\JSJava-0.0.1.jar to
\.m2\repository\org\bjc\ebiz\JSJava\0.0.1\JSJava-0.0.1.jar


Both settings.xml files (the one in <maven install>/conf and
<userhome>//m2)  have default values for the localrepository location.  I
have tried providing manual locations such as "~/.m2/repository",
"${user.home}/.m2/repository" and "c:/documents and settings/<my actual
username>/.m2/repository", but maven always uses the file system room.  To
verify that maven is actually using these settings files, I have introduced
errors to them and verified that maven does complain and abort that one of
the files is unreadable.

To test things, I wrote a class that prints the user.home system property to
console and it is correct (c:\documents and settings\<my username>).

I would appreciate some direction in what to try next.

thanks,
paul

Reply via email to