You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bill Brown (JIRA)" <ji...@codehaus.org> on 2006/03/28 17:36:45 UTC

[jira] Commented: (CONTINUUM-488) Continuum will not use mirrors or alternate repositories

    [ http://jira.codehaus.org/browse/CONTINUUM-488?page=comments#action_62165 ] 

Bill Brown commented on CONTINUUM-488:
--------------------------------------

Greetings:  

I am using continuum 1.0.2 and am experiencing the same issue of not being able to add a repository for the continuum builder to search through.  

I fount that the continuum-1.0.2\apps\continuum\webapp\META-INF\maven\org.apache.maven.continuum\continuum-web\pom.xm l for the continuum webapp contians two repositories that it uses:
 
- <repositories>
- <repository>
- <releases>
  <enabled>false</enabled> 
  </releases>
  <id>snapshots</id> 
  <name>Maven Snapshot Development Repository</name> 
  <url>http://snapshots.maven.codehaus.org/maven2</url> 
  </repository>
- <repository>
- <snapshots>
  <enabled>false</enabled> 
  </snapshots>
  <id>central</id> 
  <name>Maven Repository Switchboard</name> 
  <url>http://repo1.maven.org/maven2</url> 
  </repository>
  </repositories>
- <pluginRepositories>


When I run a build from the continuum console, here is the build history output: 

'#add' is not recognized as an internal or external command,
operable program or batch file.
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Vendor Managed Inventory (VMI)
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory c:\continuum-1.0.2\apps\continuum\working-directory\20\target
[INFO] Deleting directory c:\continuum-1.0.2\apps\continuum\working-directory\20\target\classes
[INFO] Deleting directory c:\continuum-1.0.2\apps\continuum\working-directory\20\target\test-classes
Downloading: http://repo1.maven.org/maven2/svnjavahl/svnjavahl/1.0/svnjavahl-1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/svnClientAdapter/svnClientAdapter/1.0/svnClientAdapter-1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/svnant/svnant/1.0/svnant-1.0.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/svnant/svnant/1.0/svnant-1.0.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/svnClientAdapter/svnClientAdapter/1.0/svnClientAdapter-1.0.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/svnjavahl/svnjavahl/1.0/svnjavahl-1.0.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

required artifacts missing:
  svnant:svnant:jar:1.0
  svnClientAdapter:svnClientAdapter:jar:1.0
  svnjavahl:svnjavahl:jar:1.0

for the artifact:
  org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.1

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  snapshots (http://snapshots.maven.codehaus.org/maven2)


[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Mon Mar 27 17:03:14 CST 2006
[INFO] Final Memory: 4M/7M
[INFO] -----------------------------------------------------------------------------

The problem is that I can't modify the pom.xml to add my repository because when you reload continuum the pom.xml file get's rewritten every time.  The above workarounds do not work for me and I am running on windows XP.  

I note that you said this is fixed for build 1.0.3.  What did you do to fix it and how can we apply the fix with the current build? 

Thanks.
Bill. 


> Continuum will not use mirrors or alternate repositories
> --------------------------------------------------------
>
>          Key: CONTINUUM-488
>          URL: http://jira.codehaus.org/browse/CONTINUUM-488
>      Project: Continuum
>         Type: Bug

>   Components: Core system
>     Versions: 1.0.1
>     Reporter: David Hawkins
>     Assignee: Emmanuel Venisse
>      Fix For: 1.0.3

>
>
> I can't get Continuum to use a repository other than repo1.maven.org.  Running mvn manually for my user works fine and fetches the dependencies from the mirror specified in settings.xml.  However, when I start continuum and it attempts the build, it always tries to get dependencies from repo1.maven.org.  I have tried specifying a <mirror> and also specified my server in a profile/repositories/repository in settings.xml. Neither worked.

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