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 <[EMAIL PROTECTED]>:
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to