You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2007/07/02 19:29:26 UTC

Mirror Entry is not working

I am using Maven 2.0.5.  In my c:\documents and
settings\.m2\settings.xml I have:

<mirror> 
	<id>a</id> 
	<name>a</name> 
	<url>http://a.b.c.d:abcd/repository</url>
 	<mirrorOf>*</mirrorOf> 
</mirror>

In my POM I define both Repositories and Plugin Repositories, but I do
not declare any of them to have snapshots or releases enabled.  I have
found posts on the mailing list which dealt with this error, and the
proposed solution was to delete c:\documents and settings\.m2\repository
and try again.  I have tried this, but it failed again.  Please help me
if you may with answering these questions:

1)  Do I need to set up a repository manager like Archiva for the Mirror
object in Settings.xml to work?
2)  If my maven-site-plugin is in a company repository, do I need to
define the repository as having snapshots and/or releases enabled?
3)  Has <mirrorOf>*</mirrorOf> been proven to work in Maven 2.0.5 and
beyond?

Are there any other known solutions for this issue beside deleting the
.m2\repository as this solution is not working for me?  Thank you in
advance.




When I run mvn package -X, I receive:

[DEBUG] maven-site-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

  org.apache.maven.plugins:maven-site-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-site-plugin:pom:LATEST
[DEBUG] maven-site-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

  org.apache.maven.plugins:maven-site-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-site-plugin:pom:RELEASE
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-site-plugin' does not
exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-site-plugin' does not exist or no valid
versio
n could be found 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]