I see. You could do this to define a new repo:
<profiles>
<profile>
<id>default</id>
<repositories>
<repository>
<id>my-repo</id>
<url>http://xxxxx</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>
As far as changing the super pom, you can redefine anything you don't
like. You should be able to redefine central and set both snapshots and
releases to false.
Checkout the projecthelp:effective-settings and
projecthelp:effective-pom for output of the settings and poms after
processing.
-----Original Message-----
From: Duane Homick [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 7:02 PM
To: Maven Users List
Subject: RE: Blocking Access to ibiblio, etc...
Doing this has changed where central looks for the files, however, it
doesnt change any of the information about "central".
Downloading:
file:///Z:/sw/repository/master//junit/junit/3.8.1/junit-3.8.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java [INFO] Extractor for
language: java found 2 mojo descriptors.
[INFO] Applying extractor for language: bsh [INFO] Extractor for
language: bsh found 0 mojo descriptors.
Downloading:
file:///Z:/sw/repository/master//junit/junit/3.8.1/junit-3.8.1.jar
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
[INFO]
------------------------------------------------------------------------
-
---
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Failed to resolve artifact.
GroupId: junit
ArtifactId: junit
Version: 3.8.1
Reason: Unable to download the artifact from any repository
junit:junit:3.8.1:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
snapshots (http://snapshots.maven.codehaus.org/maven2)
You see above that it still says things are coming from central and
snapshots at the maven urls. Is there a way to have these become my
urls?
Also, is there a way to change the Super POM or are the settings in it
just something I will have to live with?
-----Original Message-----
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 6:13 PM
To: Maven Users List
Subject: RE: Blocking Access to ibiblio, etc...
Create a mirror of "central" and either point it to your internal repo
or to someplace not ibiblio.
-----Original Message-----
From: Duane Homick [mailto:[EMAIL PROTECTED]
Sent: Monday, November 07, 2005 5:53 PM
To: users@maven.apache.org
Subject: Blocking Access to ibiblio, etc...
Is there an easy way to block access to remote repositories such that
only our corporate repository and a developer's local repository will be
used to resolve dependencies? If neither are found, then the dependency
would fail to be resolved.
Thanks
Duane Homick
Software Engineer
Sandvine Incorporated
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]