The folks in the plugin forum don't think there is an easy way to accomplish
this (using a -cpu switch) from within the eclipse maven plugin.

So, trying it from the command line, I still get the same error that I did
from the plugin (shown below), which tells me it is maybe an error in my
maven setup / environment, and not specifically a plugin error.

Any help would be greatly appreciated.

Cheers,

Andy

++++++++++++++++++++++++


C:\WINDOWS>mvn -cpu -e install  -DpomFile=C:\projects\common_java\pom.xml
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-surefire-plugin' does not
exist or no valid version could be found
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-surefire-plugin' does not exist or no valid
version could be found
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1281)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1517)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1011)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:975)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The plugin 'org.apache.maven.plugins:maven-surefire-plugin' does not exist
or no valid version could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:225)
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.java:87)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:158)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1252)
        ... 18 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jan 25 09:22:09 NZDT 2007
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------




adingfelder wrote:
> 
> Ok, that sounds good... any idea how to accomplish this from within
> eclipse (using the eclipse maven plugin?)
> 
> I realize this is not the plugin group but I was asked there to raise this
> maven-surefire-plugin here as the users would be better able to help.
> 
> Thoughts?
> 
> Cheers,
> 
> Andy
> 
> 
> 
> dawn.angelito wrote:
>> 
>> Try adding -cpu (check plugin updates) when building your project.
>> 
>> Hope this helps.
>> 
>> Dawn
>> 
>> 
>> adingfelder wrote:
>>> 
>>> When doing a maven build, I get errors where maven is looking at
>>> maven-surefire-plugin.
>>> I tried to disable the tests in my pom.xml but it did not help.
>>> 
>>> (I have attached the pom and output below.)
>>> 
>>> Thoughts?
>>> 
>>> Cheers,
>>> 
>>> Andy
>>> 
>>> ==============================
>>> pom.xml
>>> ==============================
>>> 
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <project xmlns="http://maven.apache.org/POM/4.0.0";
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>>> http://maven.apache.org/maven-v4_0_0.xsd";>
>>>   <modelVersion>4.0.0</modelVersion>
>>>   <groupId>common_java</groupId>
>>>   <artifactId>common_java</artifactId>
>>>   <version>0.0.1</version>
>>>   <build>
>>>     <plugins>
>>>       <plugin>
>>>         <groupId>org.apache.maven.plugins</groupId>
>>>         <artifactId>maven-surefire-plugin</artifactId>
>>>         <configuration>
>>>           <skip>true</skip>
>>>         </configuration>
>>>       </plugin>
>>>     </plugins>
>>>   </build>
>>>     <dependencies>
>>>     <dependency>
>>>       <groupId>log4j</groupId>
>>>       <artifactId>log4j</artifactId>
>>>       <version>1.2.8</version>
>>>     </dependency>
>>>   <dependency>
>>>     <groupId>com.serialio</groupId>
>>>     <artifactId>serialIO</artifactId>
>>>     <version>7.2</version>
>>>     <scope>system</scope>
>>>     <systemPath>C:/projects/3rd_party/jars/Serialio-7.2.jar</systemPath>
>>>   </dependency>
>>>   </dependencies>
>>> </project>
>>> 
>>> ==============================
>>> maven output:
>>> ==============================
>>> 
>>> [DEBUG] Building Maven user-level plugin registry from:
>>> '<home>\.m2\plugin-registry.xml'
>>> [DEBUG] Building Maven user-level plugin registry from:
>>> '<home>\.m2\plugin-registry.xml'
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> ----------------------------------------------------------------------------
>>> [INFO] Building Unnamed - common_java:common_java:jar:0.0.1
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>> ----------------------------------------------------------------------------
>>> [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository
>>> central
>>> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
>>> for project: null:maven-resources-plugin:maven-plugin:2.2 from the
>>> repository.
>>> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
>>> project: org.apache.maven.plugins:maven-plugins:pom:1 from the
>>> repository.
>>> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
>>> org.apache.maven:maven-parent:pom:1 from the repository.
>>> [DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository
>>> central
>>> [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1
>>> for project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
>>> repository.
>>> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
>>> project: org.apache.maven.plugins:maven-plugins:pom:1 from the
>>> repository.
>>> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
>>> org.apache.maven:maven-parent:pom:1 from the repository.
>>> [DEBUG] maven-surefire-plugin: using locally installed snapshot
>>> [DEBUG] Artifact not found - using stub model: Unable to determine the
>>> latest version
>>> 
>>>   org.apache.maven.plugins:maven-surefire-plugin:pom:LATEST
>>> 
>>> 
>>> [DEBUG] Using defaults for missing POM
>>> org.apache.maven.plugins:maven-surefire-plugin:pom:LATEST
>>> [DEBUG] maven-surefire-plugin: using locally installed snapshot
>>> [DEBUG] Artifact not found - using stub model: Unable to determine the
>>> release version
>>> 
>>>   org.apache.maven.plugins:maven-surefire-plugin:pom:RELEASE
>>> 
>>> 
>>> [DEBUG] Using defaults for missing POM
>>> org.apache.maven.plugins:maven-surefire-plugin:pom:RELEASE
>>> [ERROR] project-execute : common_java:common_java:jar:0.0.1 ( 
>>> task-segment: [install] )
>>> Diagnosis: The plugin 'org.apache.maven.plugins:maven-surefire-plugin'
>>> does not exist or no valid version could be found
>>> FATAL ERROR: Error executing Maven for a project
>>> [ERROR] reactor-execute : C:\projects\common_java
>>> Diagnosis: The plugin 'org.apache.maven.plugins:maven-surefire-plugin'
>>> does not exist or no valid version could be found
>>> FATAL ERROR: Error executing Maven for a project
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] The plugin 'org.apache.maven.plugins:maven-surefire-plugin' does
>>> not exist or no valid version could be found
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [DEBUG] Trace The plugin
>>> 'org.apache.maven.plugins:maven-surefire-plugin' does not exist or no
>>> valid version could be found
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: < 1 second
>>> [INFO] Finished at: Wed Jan 24 11:38:06 NZDT 2007
>>> [INFO] Final Memory: 1M/3M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Error for project: Unnamed - common_java:common_java:jar:0.0.1
>>> (during install)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] The plugin 'org.apache.maven.plugins:maven-surefire-plugin' does
>>> not exist or no valid version could be found
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [DEBUG] Trace The plugin
>>> 'org.apache.maven.plugins:maven-surefire-plugin' does not exist or no
>>> valid version could be found
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] reactor-execute : C:\projects\common_java
>>> FATAL ERROR: Error executing Maven for a project
>>> [INFO] BUILD ERRORS
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: < 1 second
>>> [INFO] Finished at: Wed Jan 24 11:38:06 NZDT 2007
>>> [INFO] Final Memory: 1M/3M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven-surefire-plugin-not-found-tf3077800s177.html#a8571844
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to