You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in> on 2007/04/18 15:48:02 UTC

maven-surefire-plugin problem

Hi,
 
  I have installed maven-surefire-plugin version 2.3 in maven's local
repository.
 
  But still i am getting the following error/.
 
  Can anyone help me in this issue...?
 
 
C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Simple Demo
[INFO]    task-segment: [package]
[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 exis
t or no valid version could be found
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1286)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExecutor.java:1522)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
aging(DefaultLifecycleExecutor.java:1016)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:980)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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-pl
ugin' does not exist or no valid version could be found
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:228)
 
        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:90)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:166)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1257)
        ... 18 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Wed Apr 18 19:15:03 IST 2007
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
 
C:\Documents and Settings\bpra\.m2\SampleProject1>

Thanks & Regards 
Ramesh Babu.P 
  
HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232
* prameshbabu@hcl.in <ma...@hcl.in> 

 

 


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

RE: RE: RE: RE: maven-surefire-plugin problem

Posted by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in>.
without using proxy settings I was able to download remaining plugins.
If I want to download from maven central repository what are the settings I need to use...?
 
Thank you
 
Ramesh
 

________________________________

From: Thorsten Heit [mailto:theit@gmx.de]
Sent: Thu 4/19/2007 6:18 PM
To: Maven Users List
Subject: Re: RE: RE: RE: maven-surefire-plugin problem



> Yes I am working behind proxy.....
> The following is my Settings.xml....

As I wrote in my last mail: Check your proxy settings - you haven't specified any in the settings.xml... See http://maven.apache.org/guides/mini/guide-proxies.html


HTH

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Re: RE: RE: RE: maven-surefire-plugin problem

Posted by Thorsten Heit <th...@gmx.de>.
> Yes I am working behind proxy.....
> The following is my Settings.xml....

As I wrote in my last mail: Check your proxy settings - you haven't specified any in the settings.xml... See http://maven.apache.org/guides/mini/guide-proxies.html


HTH

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: RE: RE: maven-surefire-plugin problem

Posted by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in>.
Yes I am working behind proxy.....
The following is my Settings.xml....
 
<settings 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/xsd/settings-1.0.0.xsd">

<!--

| This file contains user specific maven settings.

| It will be used by maven in the following situations:

| * Using java-property: -Dorg.apache.maven.user-settings=/path/to/user/settings.xml

| * Using mvn command switch: -s /path/to/user/settings.xml

-->

<!--

| Specifies the local repository location.

| Unfortunately, only system environment variables are expanded.

| Java variables (-D) as well as maven properties are ignored.

-->

<!-- Linux version

<localRepository>${user.home}/.m2/VBL10</localRepository>

-->

<!-- Windows version -->

<localRepository>${USERPROFILE}/.m2/VBL10</localRepository>

<offline>false</offline>

<profiles>

<profile>

<id>VBLx</id>

<properties>

<VBL>VBL10</VBL>

<build-server>to0047</build-server>

<build-server-url>http://${build-server}:8088</build-server-url>

<repo-server>tntnextgen02</repo-server>

<repo-server-url>http://${repo-server}:8080</repo-server-url>

<repo-url>${repo-server-url}/proximity-${VBL}/repository</repo-url>

<repo-release-path>file://c:/Maven-deployed/VBLx/${VBL}</repo-release-path>

<repo-snapshot-path>${repo-release-path}.snapshot</repo-snapshot-path>

<site-server>${repo-server}</site-server>

<site-server-url>http://${site-server}</site-server-url>

<site-base-url>${site-server-url}/genium/sites/${VBL}</site-base-url>

<site-deploy-path>file://c:/Maven-deployed/sites/${VBL}</site-deploy-path>

</properties>

<repositories>

<repository>

<id>central</id>

<name>Genium ${VBL} Central Repository</name>

<url>http://tntnextgen02:8080/proximity-VBL10/repository</url>

<layout>default</layout>

<releases>

<enabled>true</enabled>

<updatePolicy>daily</updatePolicy>

<checksumPolicy>warn</checksumPolicy>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

<checksumPolicy>warn</checksumPolicy>

</snapshots>

</repository>

</repositories>

<pluginRepositories>

<pluginRepository>

<id>central</id>

<name>Genium ${VBL} Central Plugin Repository</name>

<url>http://tntnextgen02:8080/proximity-VBL10/repository</url>

<layout>default</layout>

<releases>

<enabled>true</enabled>

<updatePolicy>daily</updatePolicy>

<checksumPolicy>warn</checksumPolicy>

</releases>

<snapshots>

<enabled>true</enabled>

<updatePolicy>always</updatePolicy>

<checksumPolicy>warn</checksumPolicy>

</snapshots>

</pluginRepository>

</pluginRepositories>

</profile>

</profiles>

<activeProfiles>

<activeProfile>VBLx</activeProfile>

</activeProfiles>

</settings>

 

I installed by using...

mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=maven-surefire-plugin -Dversion=2.3 -Dpackaging=jar -Dfile=maven-surefire-plugin-2.3.jar

Is there anything wrong...?

 

Thanks,

Ramesh


________________________________

From: Thorsten Heit [mailto:theit@gmx.de]
Sent: Thu 4/19/2007 4:59 PM
To: Maven Users List
Subject: Re: RE: RE: maven-surefire-plugin problem



Hi,

> It is not fetching this plug-in automatically......

What error is Maven showing with "mvn -e -X ..."?

Have you checked  that your network settings are correct? I.e. are you behind a firewall? If yes, do you have proxy settings specified in your settings.xml?


> So i have installed in the local repo...

But _how_ did you install it?


> can u please send POM, so that I can use central repository as yours....

There's nothing to configure for that case; Maven automatically connects to the central repo for fetching plugins...


Regards

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Re: RE: RE: maven-surefire-plugin problem

Posted by Thorsten Heit <th...@gmx.de>.
Hi,

> It is not fetching this plug-in automatically......

What error is Maven showing with "mvn -e -X ..."?

Have you checked  that your network settings are correct? I.e. are you behind a firewall? If yes, do you have proxy settings specified in your settings.xml?


> So i have installed in the local repo...

But _how_ did you install it?

 
> can u please send POM, so that I can use central repository as yours....

There's nothing to configure for that case; Maven automatically connects to the central repo for fetching plugins...


Regards

Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: RE: maven-surefire-plugin problem

Posted by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in>.
It is not fetching this plug-in automatically......
So i have installed in the local repo...
 
can u please send POM, so that I can use central repository as yours....
 
Is there any other way....?
 
Thanks,
Ramesh

________________________________

From: Thorsten Heit [mailto:theit@gmx.de]
Sent: Wed 4/18/2007 9:44 PM
To: Maven Users List
Subject: Re: RE: maven-surefire-plugin problem



Hi,

> I used mvn install command as follows
>
> mvn install:install-file -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-surefire-plugin -Dversion=2.3 -Dpackaging=jar
> -Dfile=maven-surefire-plugin-2.3.jar

Why did you do this? This isn't necessary as Maven automatically fetches plugins from central (assuming that you have Internet access and specified proxy settings if you are behind a firewall).


Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




Re: RE: maven-surefire-plugin problem

Posted by Thorsten Heit <th...@gmx.de>.
Hi,

> I used mvn install command as follows
> 
> mvn install:install-file -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-surefire-plugin -Dversion=2.3 -Dpackaging=jar
> -Dfile=maven-surefire-plugin-2.3.jar 

Why did you do this? This isn't necessary as Maven automatically fetches plugins from central (assuming that you have Internet access and specified proxy settings if you are behind a firewall).


Thorsten

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: maven-surefire-plugin problem

Posted by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in>.
Hi,

I used mvn install command as follows

mvn install:install-file -DgroupId=org.apache.maven.plugins
-DartifactId=maven-surefire-plugin -Dversion=2.3 -Dpackaging=jar
-Dfile=maven-surefire-plugin-2.3.jar 


Thanks & Regards 
Ramesh Babu.P 
  

-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Wednesday, April 18, 2007 8:07 PM
To: Maven Users List
Subject: Re: maven-surefire-plugin problem

"How" did you "install" the surefire plugin into your repository? Did
you just copy the files into the proper directories, or use the "mvn
install" command, or what?

Wayne

On 4/18/07, Pankaj Tandon <pa...@gmail.com> wrote:
>
> Hi,
> It may help if you posted the pom.xml of your project.
> Also I noticed that you have a project in your home folder.. not a big

> deal and it should not break anything but it's just a bit strange :). 
> The repository is a peer to your project. Typically you will want to 
> use the 'install' goal to get your project into the repository.
>
> Pankaj
>
>
> Ramesh Babu Pokala - TLS, Chennai wrote:
> >
> >
> > Hi,
> >
> >   I have installed maven-surefire-plugin version 2.3 in maven's 
> > local repository.
> >
> >   But still i am getting the following error/.
> >
> >   Can anyone help me in this issue...?
> >
> >
> > C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > ----
> > [INFO] Building Simple Demo
> > [INFO]    task-segment: [package]
> > [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 exis t or 
> > no valid version could be found
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Def
> > ault
> > LifecycleExecutor.java:1286)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescripto
> > r(De
> > faultLifecycleExecutor.java:1522)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleFor
> > Pack
> > aging(DefaultLifecycleExecutor.java:1016)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecyc
> > leMa
> > ppings(DefaultLifecycleExecutor.java:980)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
> > ultL
> > ifecycleExecutor.java:458)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
> > ndle
> > Failures(DefaultLifecycleExecutor.java:311)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
> > nts(
> > DefaultLifecycleExecutor.java:278)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
> > ifec
> > ycleExecutor.java:143)
> >         at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >         at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> > .jav
> > a:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> > ssor
> > Impl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         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-pl
> > ugin' does not exist or no valid version could be found
> >         at
> > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveP
> > lugi
> > nVersion(DefaultPluginVersionManager.java:228)
> >
> >         at
> > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveP
> > lugi
> > nVersion(DefaultPluginVersionManager.java:90)
> >         at
> > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlu
> > ginM
> > anager.java:166)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Def
> > ault
> > LifecycleExecutor.java:1257)
> >         ... 18 more
> > [INFO]
> > --------------------------------------------------------------------
> > ----
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Wed Apr 18 19:15:03 IST 2007 [INFO] Final 
> > Memory: 2M/4M [INFO]
> > --------------------------------------------------------------------
> > ----
> >
> > C:\Documents and Settings\bpra\.m2\SampleProject1>
> >
> > Thanks & Regards
> > Ramesh Babu.P
> >
> > HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 
> > 1232
> > * prameshbabu@hcl.in <ma...@hcl.in>
> >
> >
> >
> >
> >
> >
> > DISCLAIMER:
> > --------------------------------------------------------------------
> > ---------------------------------------------------
> >
> > The contents of this e-mail and any attachment(s) are confidential 
> > and intended for the named recipient(s) only.
> > It shall not attach any liability on the originator or HCL or its 
> > affiliates. Any views or opinions presented in this email are solely

> > those of the author and may not necessarily reflect the opinions of 
> > HCL or its affiliates.
> > Any form of reproduction, dissemination, copying, disclosure, 
> > modification, distribution and / or publication of this message 
> > without the prior written consent of the author of this e-mail is 
> > strictly prohibited. If you have received this email in error please

> > delete it and notify the sender immediately. Before opening any mail

> > and attachments please check them for viruses and defect.
> >
> > --------------------------------------------------------------------
> > ---------------------------------------------------
> >
>
> --
> View this message in context: 
> http://www.nabble.com/maven-surefire-plugin-problem-tf3601119s177.html
> #a10059405 Sent from the Maven - Users mailing list archive at 
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-surefire-plugin problem

Posted by Wayne Fay <wa...@gmail.com>.
"How" did you "install" the surefire plugin into your repository? Did
you just copy the files into the proper directories, or use the "mvn
install" command, or what?

Wayne

On 4/18/07, Pankaj Tandon <pa...@gmail.com> wrote:
>
> Hi,
> It may help if you posted the pom.xml of your project.
> Also I noticed that you have a project in your home folder.. not a big deal
> and it should not break anything but it's just a bit strange :). The
> repository is a peer to your project. Typically you will want to use the
> 'install' goal to get your project into the repository.
>
> Pankaj
>
>
> Ramesh Babu Pokala - TLS, Chennai wrote:
> >
> >
> > Hi,
> >
> >   I have installed maven-surefire-plugin version 2.3 in maven's local
> > repository.
> >
> >   But still i am getting the following error/.
> >
> >   Can anyone help me in this issue...?
> >
> >
> > C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
> > + Error stacktraces are turned on.
> > [INFO] Scanning for projects...
> > [INFO]
> > ------------------------------------------------------------------------
> > ----
> > [INFO] Building Simple Demo
> > [INFO]    task-segment: [package]
> > [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 exis
> > t or no valid version could be found
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
> > LifecycleExecutor.java:1286)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
> > faultLifecycleExecutor.java:1522)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
> > aging(DefaultLifecycleExecutor.java:1016)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
> > ppings(DefaultLifecycleExecutor.java:980)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> > ifecycleExecutor.java:458)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> > Failures(DefaultLifecycleExecutor.java:311)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> > DefaultLifecycleExecutor.java:278)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> > ycleExecutor.java:143)
> >         at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> >         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >         at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> > a:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> > Impl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         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-pl
> > ugin' does not exist or no valid version could be found
> >         at
> > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
> > nVersion(DefaultPluginVersionManager.java:228)
> >
> >         at
> > org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
> > nVersion(DefaultPluginVersionManager.java:90)
> >         at
> > org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
> > anager.java:166)
> >         at
> > org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
> > LifecycleExecutor.java:1257)
> >         ... 18 more
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: < 1 second
> > [INFO] Finished at: Wed Apr 18 19:15:03 IST 2007
> > [INFO] Final Memory: 2M/4M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > C:\Documents and Settings\bpra\.m2\SampleProject1>
> >
> > Thanks & Regards
> > Ramesh Babu.P
> >
> > HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232
> > * prameshbabu@hcl.in <ma...@hcl.in>
> >
> >
> >
> >
> >
> >
> > DISCLAIMER:
> > -----------------------------------------------------------------------------------------------------------------------
> >
> > The contents of this e-mail and any attachment(s) are confidential and
> > intended for the named recipient(s) only.
> > It shall not attach any liability on the originator or HCL or its
> > affiliates. Any views or opinions presented in
> > this email are solely those of the author and may not necessarily reflect
> > the opinions of HCL or its affiliates.
> > Any form of reproduction, dissemination, copying, disclosure,
> > modification, distribution and / or publication of
> > this message without the prior written consent of the author of this
> > e-mail is strictly prohibited. If you have
> > received this email in error please delete it and notify the sender
> > immediately. Before opening any mail and
> > attachments please check them for viruses and defect.
> >
> > -----------------------------------------------------------------------------------------------------------------------
> >
>
> --
> View this message in context: http://www.nabble.com/maven-surefire-plugin-problem-tf3601119s177.html#a10059405
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: maven-surefire-plugin problem

Posted by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in>.
I tried this one also, but still the same problem.
Can u send me ur pOM...?
 
Thanks,
Ramesh

________________________________

From: Pankaj Tandon [mailto:pankajtandon@gmail.com]
Sent: Wed 4/18/2007 10:22 PM
To: users@maven.apache.org
Subject: RE: maven-surefire-plugin problem




Hi,
I think your groupId is wrong.
>From my surefire pom, here is the groupId:
...
  <groupId>org.apache.maven.surefire</groupId>
  <artifactId>surefire</artifactId>
  <packaging>pom</packaging>
...
You have an extra 'plugins' there.

Rather than trying downloading as a dependency, see if you can get it into
your local repo usign mvn install:install-file goal with this groupId.
HTH
Pankaj



Ramesh Babu Pokala - TLS, Chennai wrote:
>
> Hi,
>
>
> The following is my POM.xml content
>
> <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/xsd/settings-1.0.0.xsd">
>  
> <modelVersion>4.0.0</modelVersion>
> <groupId>main.java</groupId>
> <artifactId>SampleProject1</artifactId>
> <packaging>jar</packaging>
> <name>Simple Demo</name>
> <version>1.0-SNAPSHOT</version>
> <description>CIA Tool RCP Simple Demo</description>
>
> <dependencies>
>
>       <!--dependency>
>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-surefire-plugin</artifactId>
>       <version>2.3</version>
>       </dependency-->
>
>
>     <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>ui.workbench</artifactId>
>       <version>3.2.0.I20060605-1400</version>
>      </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>core.commands</artifactId>
>       <version>3.2.0.I20060605-1400</version>
>       </dependency>
>
>      <dependency>
>
>       <groupId>org.eclipse</groupId>
>       <artifactId>swt</artifactId>
>       <version>3.2.0.v3232o</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>ui</artifactId>
>       <version>3.2.0.I20060605-1400</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>core.contenttype</artifactId>
>       <version>3.2.0.v20060603</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>swt.win32.win32</artifactId>
>       <version>x86_3.2.0.v3232m</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>osgi</artifactId>
>       <version>3.2.0.v20060601</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>jface</artifactId>
>       <version>3.2.0.I20060605-1400</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>equinox.registry</artifactId>
>       <version>3.2.0.v20060601</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>core.jobs</artifactId>
>       <version>3.2.0.v20060603</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>equinox.common</artifactId>
>       <version>3.2.0.v20060603</version>
>       </dependency>
>
>      <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>equinox.preferences</artifactId>
>       <version>3.2.0.v20060601</version>
>       </dependency>
>
>       <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>core.runtime</artifactId>
>       <version>3.2.0.v20060603</version>
>     
>     </dependency>
>
>   </dependencies>
>
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>pde-maven-plugin</artifactId>
> <extensions>true</extensions>
> <configuration>
> <eclipseInstall>D:\eclipse</eclipseInstall>
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> </project>
>
>
> 
>
>
> Thanks & Regards
> Ramesh Babu.P
>  
> HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232
> * prameshbabu@hcl.in
> 
>
> -----Original Message-----
> From: Pankaj Tandon [mailto:pankajtandon@gmail.com]
> Sent: Wednesday, April 18, 2007 8:00 PM
> To: users@maven.apache.org
> Subject: Re: maven-surefire-plugin problem
>
>
> Hi,
> It may help if you posted the pom.xml of your project.
> Also I noticed that you have a project in your home folder.. not a big
> deal and it should not break anything but it's just a bit strange :).
> The repository is a peer to your project. Typically you will want to use
> the 'install' goal to get your project into the repository.
>
> Pankaj
>
>
> Ramesh Babu Pokala - TLS, Chennai wrote:
>>
>>
>> Hi,
>> 
>>   I have installed maven-surefire-plugin version 2.3 in maven's local
>> repository.
>> 
>>   But still i am getting the following error/.
>> 
>>   Can anyone help me in this issue...?
>> 
>> 
>> C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO]
>> ----------------------------------------------------------------------
>> --
>> ----
>> [INFO] Building Simple Demo
>> [INFO]    task-segment: [package]
>> [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 exis t or no
>
>> valid version could be found
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defau
>> lt
>> LifecycleExecutor.java:1286)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
>> De
>> faultLifecycleExecutor.java:1522)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPa
>> ck
>> aging(DefaultLifecycleExecutor.java:1016)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycle
>> Ma
>> ppings(DefaultLifecycleExecutor.java:980)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul
>> tL
>> ifecycleExecutor.java:458)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
>> le
>> Failures(DefaultLifecycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
>> s(
>> DefaultLifecycleExecutor.java:278)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif
>> ec
>> ycleExecutor.java:143)
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>         at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> av
>> a:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> or
>> Impl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         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-pl
>> ugin' does not exist or no valid version could be found
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlu
>> gi
>> nVersion(DefaultPluginVersionManager.java:228)
>> 
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlu
>> gi
>> nVersion(DefaultPluginVersionManager.java:90)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugi
>> nM
>> anager.java:166)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defau
>> lt
>> LifecycleExecutor.java:1257)
>>         ... 18 more
>> [INFO]
>> ----------------------------------------------------------------------
>> --
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Wed Apr 18 19:15:03 IST 2007 [INFO] Final Memory:
>> 2M/4M [INFO]
>> ----------------------------------------------------------------------
>> --
>> 
>> C:\Documents and Settings\bpra\.m2\SampleProject1>
>>
>> Thanks & Regards
>> Ramesh Babu.P
>>  
>> HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn:
>> 1232
>> * prameshbabu@hcl.in <ma...@hcl.in>
>>
>> 
>>
>> 
>>
>>
>> DISCLAIMER:
>> ----------------------------------------------------------------------
>> -------------------------------------------------
>>
>> The contents of this e-mail and any attachment(s) are confidential and
>
>> intended for the named recipient(s) only.
>> It shall not attach any liability on the originator or HCL or its
>> affiliates. Any views or opinions presented in this email are solely
>> those of the author and may not necessarily reflect the opinions of
>> HCL or its affiliates.
>> Any form of reproduction, dissemination, copying, disclosure,
>> modification, distribution and / or publication of this message
>> without the prior written consent of the author of this e-mail is
>> strictly prohibited. If you have received this email in error please
>> delete it and notify the sender immediately. Before opening any mail
>> and attachments please check them for viruses and defect.
>>
>> ----------------------------------------------------------------------
>> -------------------------------------------------
>>
>
> --
> View this message in context:
> http://www.nabble.com/maven-surefire-plugin-problem-tf3601119s177.html#a
> 10059405
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org





RE: maven-surefire-plugin problem

Posted by Pankaj Tandon <pa...@gmail.com>.
Hi,
I think your groupId is wrong.
>From my surefire pom, here is the groupId:
...
  <groupId>org.apache.maven.surefire</groupId>
  <artifactId>surefire</artifactId>
  <packaging>pom</packaging>
...
You have an extra 'plugins' there.

Rather than trying downloading as a dependency, see if you can get it into
your local repo usign mvn install:install-file goal with this groupId.
HTH
Pankaj



Ramesh Babu Pokala - TLS, Chennai wrote:
> 
> Hi,
> 
> 
> The following is my POM.xml content
> 
> <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/xsd/settings-1.0.0.xsd">
>   
> <modelVersion>4.0.0</modelVersion> 
> <groupId>main.java</groupId> 
> <artifactId>SampleProject1</artifactId> 
> <packaging>jar</packaging> 
> <name>Simple Demo</name> 
> <version>1.0-SNAPSHOT</version> 
> <description>CIA Tool RCP Simple Demo</description> 
> 
> <dependencies>
> 
>       <!--dependency>
> 
> 	<groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-surefire-plugin</artifactId>
>       <version>2.3</version>
> 	</dependency-->
> 
> 
>     <dependency>
>       <groupId>org.eclipse</groupId>
>       <artifactId>ui.workbench</artifactId>
>       <version>3.2.0.I20060605-1400</version>
>      </dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>core.commands</artifactId>
>       <version>3.2.0.I20060605-1400</version>
> 	</dependency>
> 
>      <dependency>
> 
> 	<groupId>org.eclipse</groupId>
>       <artifactId>swt</artifactId>
>       <version>3.2.0.v3232o</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>ui</artifactId>
>       <version>3.2.0.I20060605-1400</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>core.contenttype</artifactId>
>       <version>3.2.0.v20060603</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>swt.win32.win32</artifactId>
>       <version>x86_3.2.0.v3232m</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>osgi</artifactId>
>       <version>3.2.0.v20060601</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>jface</artifactId>
>       <version>3.2.0.I20060605-1400</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>equinox.registry</artifactId>
>       <version>3.2.0.v20060601</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>core.jobs</artifactId>
>       <version>3.2.0.v20060603</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>equinox.common</artifactId>
>       <version>3.2.0.v20060603</version>
> 	</dependency>
> 
>      <dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>equinox.preferences</artifactId>
>       <version>3.2.0.v20060601</version>
> 	</dependency>
> 
> 	<dependency>
> 	<groupId>org.eclipse</groupId>
>       <artifactId>core.runtime</artifactId>
>       <version>3.2.0.v20060603</version>
>      
>     </dependency>
> 
>   </dependencies>
> 
> 
> <build> 
> <plugins> 
> <plugin> 
> <groupId>org.codehaus.mojo</groupId> 
> <artifactId>pde-maven-plugin</artifactId> 
> <extensions>true</extensions> 
> <configuration> 
> <eclipseInstall>D:\eclipse</eclipseInstall> 
> </configuration> 
> </plugin> 
> </plugins> 
> </build> 
> 
> </project>
> 
> 
>  
> 
> 
> Thanks & Regards 
> Ramesh Babu.P 
>   
> HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232
> * prameshbabu@hcl.in 
>  
> 
> -----Original Message-----
> From: Pankaj Tandon [mailto:pankajtandon@gmail.com] 
> Sent: Wednesday, April 18, 2007 8:00 PM
> To: users@maven.apache.org
> Subject: Re: maven-surefire-plugin problem
> 
> 
> Hi,
> It may help if you posted the pom.xml of your project.
> Also I noticed that you have a project in your home folder.. not a big
> deal and it should not break anything but it's just a bit strange :).
> The repository is a peer to your project. Typically you will want to use
> the 'install' goal to get your project into the repository.
> 
> Pankaj
> 
> 
> Ramesh Babu Pokala - TLS, Chennai wrote:
>> 
>> 
>> Hi,
>>  
>>   I have installed maven-surefire-plugin version 2.3 in maven's local 
>> repository.
>>  
>>   But still i am getting the following error/.
>>  
>>   Can anyone help me in this issue...?
>>  
>>  
>> C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO]
>> ----------------------------------------------------------------------
>> --
>> ----
>> [INFO] Building Simple Demo
>> [INFO]    task-segment: [package]
>> [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 exis t or no
> 
>> valid version could be found
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defau
>> lt
>> LifecycleExecutor.java:1286)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
>> De
>> faultLifecycleExecutor.java:1522)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPa
>> ck
>> aging(DefaultLifecycleExecutor.java:1016)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycle
>> Ma
>> ppings(DefaultLifecycleExecutor.java:980)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul
>> tL
>> ifecycleExecutor.java:458)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
>> le
>> Failures(DefaultLifecycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
>> s(
>> DefaultLifecycleExecutor.java:278)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif
>> ec
>> ycleExecutor.java:143)
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>>         at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
>> av
>> a:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
>> or
>> Impl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         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-pl
>> ugin' does not exist or no valid version could be found
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlu
>> gi
>> nVersion(DefaultPluginVersionManager.java:228)
>>  
>>         at
>> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlu
>> gi
>> nVersion(DefaultPluginVersionManager.java:90)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugi
>> nM
>> anager.java:166)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defau
>> lt
>> LifecycleExecutor.java:1257)
>>         ... 18 more
>> [INFO]
>> ----------------------------------------------------------------------
>> --
>> [INFO] Total time: < 1 second
>> [INFO] Finished at: Wed Apr 18 19:15:03 IST 2007 [INFO] Final Memory: 
>> 2M/4M [INFO]
>> ----------------------------------------------------------------------
>> --
>>  
>> C:\Documents and Settings\bpra\.m2\SampleProject1>
>> 
>> Thanks & Regards
>> Ramesh Babu.P
>>   
>> HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 
>> 1232
>> * prameshbabu@hcl.in <ma...@hcl.in>
>> 
>>  
>> 
>>  
>> 
>> 
>> DISCLAIMER:
>> ----------------------------------------------------------------------
>> -------------------------------------------------
>> 
>> The contents of this e-mail and any attachment(s) are confidential and
> 
>> intended for the named recipient(s) only.
>> It shall not attach any liability on the originator or HCL or its 
>> affiliates. Any views or opinions presented in this email are solely 
>> those of the author and may not necessarily reflect the opinions of 
>> HCL or its affiliates.
>> Any form of reproduction, dissemination, copying, disclosure, 
>> modification, distribution and / or publication of this message 
>> without the prior written consent of the author of this e-mail is 
>> strictly prohibited. If you have received this email in error please 
>> delete it and notify the sender immediately. Before opening any mail 
>> and attachments please check them for viruses and defect.
>> 
>> ----------------------------------------------------------------------
>> -------------------------------------------------
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/maven-surefire-plugin-problem-tf3601119s177.html#a
> 10059405
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: maven-surefire-plugin problem

Posted by "Ramesh Babu Pokala - TLS, Chennai" <PR...@hcl.in>.
Hi,


The following is my POM.xml content

<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/xsd/settings-1.0.0.xsd">
  
<modelVersion>4.0.0</modelVersion> 
<groupId>main.java</groupId> 
<artifactId>SampleProject1</artifactId> 
<packaging>jar</packaging> 
<name>Simple Demo</name> 
<version>1.0-SNAPSHOT</version> 
<description>CIA Tool RCP Simple Demo</description> 

<dependencies>

      <!--dependency>

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


    <dependency>
      <groupId>org.eclipse</groupId>
      <artifactId>ui.workbench</artifactId>
      <version>3.2.0.I20060605-1400</version>
     </dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>core.commands</artifactId>
      <version>3.2.0.I20060605-1400</version>
	</dependency>

     <dependency>

	<groupId>org.eclipse</groupId>
      <artifactId>swt</artifactId>
      <version>3.2.0.v3232o</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>ui</artifactId>
      <version>3.2.0.I20060605-1400</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>core.contenttype</artifactId>
      <version>3.2.0.v20060603</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>swt.win32.win32</artifactId>
      <version>x86_3.2.0.v3232m</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>osgi</artifactId>
      <version>3.2.0.v20060601</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>jface</artifactId>
      <version>3.2.0.I20060605-1400</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>equinox.registry</artifactId>
      <version>3.2.0.v20060601</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>core.jobs</artifactId>
      <version>3.2.0.v20060603</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>equinox.common</artifactId>
      <version>3.2.0.v20060603</version>
	</dependency>

     <dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>equinox.preferences</artifactId>
      <version>3.2.0.v20060601</version>
	</dependency>

	<dependency>
	<groupId>org.eclipse</groupId>
      <artifactId>core.runtime</artifactId>
      <version>3.2.0.v20060603</version>
     
    </dependency>

  </dependencies>


<build> 
<plugins> 
<plugin> 
<groupId>org.codehaus.mojo</groupId> 
<artifactId>pde-maven-plugin</artifactId> 
<extensions>true</extensions> 
<configuration> 
<eclipseInstall>D:\eclipse</eclipseInstall> 
</configuration> 
</plugin> 
</plugins> 
</build> 

</project>


 


Thanks & Regards 
Ramesh Babu.P 
  
HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232
* prameshbabu@hcl.in 
 

-----Original Message-----
From: Pankaj Tandon [mailto:pankajtandon@gmail.com] 
Sent: Wednesday, April 18, 2007 8:00 PM
To: users@maven.apache.org
Subject: Re: maven-surefire-plugin problem


Hi,
It may help if you posted the pom.xml of your project.
Also I noticed that you have a project in your home folder.. not a big
deal and it should not break anything but it's just a bit strange :).
The repository is a peer to your project. Typically you will want to use
the 'install' goal to get your project into the repository.

Pankaj


Ramesh Babu Pokala - TLS, Chennai wrote:
> 
> 
> Hi,
>  
>   I have installed maven-surefire-plugin version 2.3 in maven's local 
> repository.
>  
>   But still i am getting the following error/.
>  
>   Can anyone help me in this issue...?
>  
>  
> C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------
> --
> ----
> [INFO] Building Simple Demo
> [INFO]    task-segment: [package]
> [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 exis t or no

> valid version could be found
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defau
> lt
> LifecycleExecutor.java:1286)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
> De
> faultLifecycleExecutor.java:1522)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPa
> ck
> aging(DefaultLifecycleExecutor.java:1016)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycle
> Ma
> ppings(DefaultLifecycleExecutor.java:980)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defaul
> tL
> ifecycleExecutor.java:458)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand
> le
> Failures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment
> s(
> DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLif
> ec
> ycleExecutor.java:143)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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-pl
> ugin' does not exist or no valid version could be found
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlu
> gi
> nVersion(DefaultPluginVersionManager.java:228)
>  
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlu
> gi
> nVersion(DefaultPluginVersionManager.java:90)
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlugi
> nM
> anager.java:166)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defau
> lt
> LifecycleExecutor.java:1257)
>         ... 18 more
> [INFO]
> ----------------------------------------------------------------------
> --
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Apr 18 19:15:03 IST 2007 [INFO] Final Memory: 
> 2M/4M [INFO]
> ----------------------------------------------------------------------
> --
>  
> C:\Documents and Settings\bpra\.m2\SampleProject1>
> 
> Thanks & Regards
> Ramesh Babu.P
>   
> HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 
> 1232
> * prameshbabu@hcl.in <ma...@hcl.in>
> 
>  
> 
>  
> 
> 
> DISCLAIMER:
> ----------------------------------------------------------------------
> -------------------------------------------------
> 
> The contents of this e-mail and any attachment(s) are confidential and

> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its 
> affiliates. Any views or opinions presented in this email are solely 
> those of the author and may not necessarily reflect the opinions of 
> HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, 
> modification, distribution and / or publication of this message 
> without the prior written consent of the author of this e-mail is 
> strictly prohibited. If you have received this email in error please 
> delete it and notify the sender immediately. Before opening any mail 
> and attachments please check them for viruses and defect.
> 
> ----------------------------------------------------------------------
> -------------------------------------------------
> 

--
View this message in context:
http://www.nabble.com/maven-surefire-plugin-problem-tf3601119s177.html#a
10059405
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven-surefire-plugin problem

Posted by Pankaj Tandon <pa...@gmail.com>.
Hi,
It may help if you posted the pom.xml of your project.
Also I noticed that you have a project in your home folder.. not a big deal
and it should not break anything but it's just a bit strange :). The
repository is a peer to your project. Typically you will want to use the
'install' goal to get your project into the repository.

Pankaj


Ramesh Babu Pokala - TLS, Chennai wrote:
> 
> 
> Hi,
>  
>   I have installed maven-surefire-plugin version 2.3 in maven's local
> repository.
>  
>   But still i am getting the following error/.
>  
>   Can anyone help me in this issue...?
>  
>  
> C:\Documents and Settings\bpra\.m2\SampleProject1>mvn -e package
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Building Simple Demo
> [INFO]    task-segment: [package]
> [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 exis
> t or no valid version could be found
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
> LifecycleExecutor.java:1286)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
> faultLifecycleExecutor.java:1522)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
> aging(DefaultLifecycleExecutor.java:1016)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
> ppings(DefaultLifecycleExecutor.java:980)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:458)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:311)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:278)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.java:143)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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-pl
> ugin' does not exist or no valid version could be found
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
> nVersion(DefaultPluginVersionManager.java:228)
>  
>         at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
> nVersion(DefaultPluginVersionManager.java:90)
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
> anager.java:166)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
> LifecycleExecutor.java:1257)
>         ... 18 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Apr 18 19:15:03 IST 2007
> [INFO] Final Memory: 2M/4M
> [INFO]
> ------------------------------------------------------------------------
>  
> C:\Documents and Settings\bpra\.m2\SampleProject1>
> 
> Thanks & Regards 
> Ramesh Babu.P 
>   
> HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232
> * prameshbabu@hcl.in <ma...@hcl.in> 
> 
>  
> 
>  
> 
> 
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
> 
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
> modification, distribution and / or publication of 
> this message without the prior written consent of the author of this
> e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
> 
> -----------------------------------------------------------------------------------------------------------------------
> 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org