You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rakesh Nagar <ra...@hotmail.com> on 2008/08/07 22:37:50 UTC

How to fix missing maven artifacts error in TeamCity (javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1)

I am using TeamCity Professional Version 3.1.1 with Maven2 on Windows desktop
and hit following missing artifacts issue:

1) javax.jms:jms:jar:1.1
Try downloading the file manually from:
http://java.sun.com/products/jms/docs.html

similar error for following missing artifacts:
com.sun.jdmk:jmxtools:jar:1.2.1
com.sun.jmx:jmxri:jar:1.2.1

I was able to build the package using mvn command line (mvn clean package)
but not through TeamCity even though the required jars were present in my
local repository (C:\Documents and Settings\<username>\.m2\repository).

After analyzing this further i found that TeamCity is refering to a
different local repository
(C:\windows\system32\config\systemprofile\.m2\repository). I looked at all
the configuration files and Admin sections but could not find a place to
change it.

*Solution*:
Specify the location of local repository in settings.xml present in <maven
installation>/conf directory. On my machine it looks like:

<localRepository>c:/docume~1/rnagar/.m2/repository</localRepository>

This resolved the issue

Hope this works for you as well.

Rakesh Nagar
-- 
View this message in context: http://www.nabble.com/How-to-fix-missing-maven-artifacts-error-in-TeamCity-%28javax.jms%3Ajms%3Ajar%3A1.1%2C-com.sun.jdmk%3Ajmxtools%3Ajar%3A1.2.1%2C-com.sun.jmx%3Ajmxri%3Ajar%3A1.2.1%29-tp18879154p18879154.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: How to fix missing maven artifacts error in TeamCity (javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1)

Posted by Rakesh Nagar <ra...@hotmail.com>.
Thanks Brett for your inputs.

You are right the both TC webserver and Build Agent were configured by
default to run as local system account.

I changed them to run with my user and also removed the <localRepository>
tag from <maven installation>/conf/settings.xml. After the restart
everything works fine as now the my local repository (C:\Documents and
Settings\<username>\.m2\repository) is being by TC.

Thanks again.
Rakesh Nagar
-- 
View this message in context: http://www.nabble.com/How-to-fix-missing-maven-artifacts-error-in-TeamCity-%28javax.jms%3Ajms%3Ajar%3A1.1%2C-com.sun.jdmk%3Ajmxtools%3Ajar%3A1.2.1%2C-com.sun.jmx%3Ajmxri%3Ajar%3A1.2.1%29-tp18879154p18919533.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: How to fix missing maven artifacts error in TeamCity (javax.jms:jms:jar:1.1, com.sun.jdmk:jmxtools:jar:1.2.1, com.sun.jmx:jmxri:jar:1.2.1)

Posted by Brett Porter <br...@gmail.com>.
One warning about this solution: I believe you had the other path
because it was installed as a service - so it is running as a
different user.

As a result, you may find that teamcity starts writing files to your
local repository with different permissions, and depending on your set
up that might cause problems if you run anything under your own
account as yourself.

I would suggest letting TC have it's own local repository and
reinstalling the missing artifacts (or better, place them in a remote
repository your projects use by installing a repository manager if you
haven't already).

HTH,
Brett

2008/8/8 Rakesh Nagar <ra...@hotmail.com>:
>
> I am using TeamCity Professional Version 3.1.1 with Maven2 on Windows desktop
> and hit following missing artifacts issue:
>
> 1) javax.jms:jms:jar:1.1
> Try downloading the file manually from:
> http://java.sun.com/products/jms/docs.html
>
> similar error for following missing artifacts:
> com.sun.jdmk:jmxtools:jar:1.2.1
> com.sun.jmx:jmxri:jar:1.2.1
>
> I was able to build the package using mvn command line (mvn clean package)
> but not through TeamCity even though the required jars were present in my
> local repository (C:\Documents and Settings\<username>\.m2\repository).
>
> After analyzing this further i found that TeamCity is refering to a
> different local repository
> (C:\windows\system32\config\systemprofile\.m2\repository). I looked at all
> the configuration files and Admin sections but could not find a place to
> change it.
>
> *Solution*:
> Specify the location of local repository in settings.xml present in <maven
> installation>/conf directory. On my machine it looks like:
>
> <localRepository>c:/docume~1/rnagar/.m2/repository</localRepository>
>
> This resolved the issue
>
> Hope this works for you as well.
>
> Rakesh Nagar
> --
> View this message in context: http://www.nabble.com/How-to-fix-missing-maven-artifacts-error-in-TeamCity-%28javax.jms%3Ajms%3Ajar%3A1.1%2C-com.sun.jdmk%3Ajmxtools%3Ajar%3A1.2.1%2C-com.sun.jmx%3Ajmxri%3Ajar%3A1.2.1%29-tp18879154p18879154.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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