[
http://jira.codehaus.org/browse/CONTINUUM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129478#action_129478
]
Olivier Lamy commented on CONTINUUM-1624:
-----------------------------------------
I use continuum with tomcat in my corporate instance and the settings.xml is
used.
But as I see in the settings.xml part you use a profile :
{code:xml}
<profile>
<id>default</id>
{code}
Is this profile in the activeProfiles section of the settings.xml ?
> User settings.xml is ignored when run on tomcat
> -----------------------------------------------
>
> Key: CONTINUUM-1624
> URL: http://jira.codehaus.org/browse/CONTINUUM-1624
> Project: Continuum
> Issue Type: Bug
> Components: Integration - Maven 2
> Affects Versions: 1.1
> Environment: Fedora Core 6, Maven 2.0.7, JDK 1.6
> Reporter: Johan Andrén
> Fix For: 1.x
>
>
> We have set up continuum to run as a webapp on our development tomcat server.
> Tomcat is run as the user 'tomcat' which has a homedirectory at
> '/home/tomcat' in that home directory we have created '.m2/settings.xml'
> which redirects maven through our local proxy.
> The settings works fine with maven2 when run as the tomcat user in a shell
> but when run through continuum we get an artifact resolution error which
> seems to indicate that the central and snapshots directories specified in
> settings.xml are not used.
> This is the error:
> "Missing artifact trying to build the POM. Check that its parent POM is
> available or add it first in Continuum."
> This is the relevant part of our settings.xml:
> <profile>
> <id>default</id>
> <repositories>
> <repository>
> <id>central</id>
> <url>http://smith:9000/artifactory/repo</url>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> </repository>
> <repository>
> <id>snapshots</id>
> <url>http://smith:9000/artifactory/repo</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> </repository>
> </repositories>
> <pluginRepositories>
> <pluginRepository>
> <id>central</id>
> <url>http://smith:9000/artifactory/repo</url>
> <snapshots>
> <enabled>false</enabled>
> </snapshots>
> </pluginRepository>
> <pluginRepository>
> <id>snapshots</id>
> <url>http://smith:9000/artifactory/repo</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> </pluginRepository>
> </pluginRepositories>
> </profile>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira