Discussion:
Surefire Plugin 2.4.3 -> Plugin not found
Mac-Systems
2008-06-15 16:46:27 UTC
Permalink
Hello,

Im try to "mavenize" on of my Projects..

I try to user Surefire Plugin by:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.4.3</version>
</plugin>


I have proper Proxy Settings, but i always get
mvn -U Site
[INFO] task-segment: [site]
[INFO]
------------------------------------------------------------------------
Downloading:
http://repository.codehaus.org/org/codehaus/mojo//org/apache/maven/
plugins/maven-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi
re-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi
re-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-surefire-plugin

Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found
in reposi
tory: Unable to download the artifact from any repository

org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.3

from the specified remote repositories:
Codehaus mojo (http://repository.codehaus.org/org/codehaus/mojo/),
central (http://repo1.maven.org/maven2)
for project org.apache.maven.plugins:maven-surefire-plugin


Anyone can tell whats wrong ?

PS: Using maven 2.08

regards,
Jens
Wendy Smoak
2008-06-15 16:55:46 UTC
Permalink
Post by Mac-Systems
I have proper Proxy Settings, but i always get
...
Post by Mac-Systems
[ERROR] BUILD ERROR
...
Post by Mac-Systems
Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in
repository: Unable to download the artifact from any repository
...
Post by Mac-Systems
org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.3
Anyone can tell whats wrong ?
PS: Using maven 2.08
Did it fail once today by any chance, before you added your http proxy
configuration?

Try it with -U on the command line, or delete the plugin from your
local repository. This will force Maven to download the plugin again.
(The messages may say it's trying, but I don't think it actually
is... if it cached the earlier failure, it won't try again until
tomorrow.)

You can also upgrade to Maven 2.0.9, I believe it handles this situation better.
--
Wendy
Mac-Systems
2008-06-15 17:08:04 UTC
Permalink
I Tested with and without Proxy settings, no success.
Also i use -U to force update.
I also removed any repo (codehaus) in my POM.
Cleared whole repository.

No Success :(

Last Option maven 2.09, but well i dont thing it's is really a maven
problem at all.
Actually also clean plugin is missing (local repo cleaned) which also
causes a problem now.

- Jens
Post by Wendy Smoak
Post by Mac-Systems
I have proper Proxy Settings, but i always get
...
Post by Mac-Systems
[ERROR] BUILD ERROR
...
Post by Mac-Systems
Reason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in
repository: Unable to download the artifact from any repository
...
Post by Mac-Systems
org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.3
Anyone can tell whats wrong ?
PS: Using maven 2.08
Did it fail once today by any chance, before you added your http proxy
configuration?
Try it with -U on the command line, or delete the plugin from your
local repository. This will force Maven to download the plugin again.
(The messages may say it's trying, but I don't think it actually
is... if it cached the earlier failure, it won't try again until
tomorrow.)
You can also upgrade to Maven 2.0.9, I believe it handles this situation better.
Wendy Smoak
2008-06-15 17:14:11 UTC
Permalink
On Sun, Jun 15, 2008 at 10:08 AM, Mac-Systems
Post by Mac-Systems
I Tested with and without Proxy settings, no success.
Also i use -U to force update.
I also removed any repo (codehaus) in my POM.
Cleared whole repository.
No Success :(
Last Option maven 2.09, but well i dont thing it's is really a maven problem
at all.
Actually also clean plugin is missing (local repo cleaned) which also causes
a problem now.
It really sounds like Maven is unable to contact the remote
repository, so I suspect the proxy configuration is not correct.

What has changed since it last worked for you? (You had the clean
plugin in your local repo, so it must have worked at some point?)
--
Wendy
Mac-Systems
2008-06-15 17:29:04 UTC
Permalink
Post by Wendy Smoak
On Sun, Jun 15, 2008 at 10:08 AM, Mac-Systems
Post by Mac-Systems
I Tested with and without Proxy settings, no success.
Also i use -U to force update.
I also removed any repo (codehaus) in my POM.
Cleared whole repository.
No Success :(
Last Option maven 2.09, but well i dont thing it's is really a maven problem
at all.
Actually also clean plugin is missing (local repo cleaned) which also causes
a problem now.
It really sounds like Maven is unable to contact the remote
repository, so I suspect the proxy configuration is not correct.
What has changed since it last worked for you? (You had the clean
plugin in your local repo, so it must have worked at some point?)
Clean worked before (until global local repo removed). I renamed
settings.xml to test without proxy config.
One thing makes my curious : how maven determine the version of the
clean plugin ?
I havent specified this anywhere, so for me it seems maven can access
the central repo.

- Jens

Loading...