Re: [maven-surefire-plugin] problem with my tests
Guillaume Boucherie wrote: I have a strange behavior with my junit tests. I have a project with multi-modules. When I run the tests individually for module (mvn test) everything is ok. But when I run the tests from the parent pom (mvn test) I have always an error when my program try to parse an xml file. This doesn't immediately ring a bell; it seems impossible to diagnose it based on only this information. Try to create a reduced test case (a zip of minimal Maven projects that reproduce the problem) and file it as a bug. -Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: maven-surefire-plugin problem
---BeginMessage--- 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat---End Message--- 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. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-surefire-plugin problem
I tried this one also, but still the same problem. Can u send me ur pOM...? Thanks, Ramesh From: Pankaj Tandon [mailto:[EMAIL PROTECTED] 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: ... groupIdorg.apache.maven.surefire/groupId artifactIdsurefire/artifactId packagingpom/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; modelVersion4.0.0/modelVersion groupIdmain.java/groupId artifactIdSampleProject1/artifactId packagingjar/packaging nameSimple Demo/name version1.0-SNAPSHOT/version descriptionCIA Tool RCP Simple Demo/description dependencies !--dependency groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version /dependency-- dependency groupIdorg.eclipse/groupId artifactIdui.workbench/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.commands/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdswt/artifactId version3.2.0.v3232o/version /dependency dependency groupIdorg.eclipse/groupId artifactIdui/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.contenttype/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdswt.win32.win32/artifactId versionx86_3.2.0.v3232m/version /dependency dependency groupIdorg.eclipse/groupId artifactIdosgi/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdjface/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.registry/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.jobs/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.common/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.preferences/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.runtime/artifactId version3.2.0.v20060603/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdpde-maven-plugin/artifactId extensionstrue/extensions configuration eclipseInstallD:\eclipse/eclipseInstall /configuration /plugin /plugins /build /project Thanks Regards Ramesh Babu.P HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232 * [EMAIL PROTECTED] -Original Message- From: Pankaj Tandon [mailto:[EMAIL PROTECTED] 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\SampleProject1mvn -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
RE: RE: RE: maven-surefire-plugin problem
---BeginMessage--- 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 offlinefalse/offline profiles profile idVBLx/id properties VBLVBL10/VBL build-serverto0047/build-server build-server-urlhttp://${build-server}:8088/build-server-url repo-servertntnextgen02/repo-server repo-server-urlhttp://${repo-server}:8080/repo-server-url repo-url${repo-server-url}/proximity-${VBL}/repository/repo-url repo-release-pathfile://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-urlhttp://${site-server}/site-server-url site-base-url${site-server-url}/genium/sites/${VBL}/site-base-url site-deploy-pathfile://c:/Maven-deployed/sites/${VBL}/site-deploy-path /properties repositories repository idcentral/id nameGenium ${VBL} Central Repository/name urlhttp://tntnextgen02:8080/proximity-VBL10/repository/url layoutdefault/layout releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots /repository /repositories pluginRepositories pluginRepository idcentral/id nameGenium ${VBL} Central Plugin Repository/name urlhttp://tntnextgen02:8080/proximity-VBL10/repository/url layoutdefault/layout releases enabledtrue/enabled updatePolicydaily/updatePolicy checksumPolicywarn/checksumPolicy /releases snapshots enabledtrue/enabled updatePolicyalways/updatePolicy checksumPolicywarn/checksumPolicy /snapshots /pluginRepository /pluginRepositories /profile /profiles activeProfiles activeProfileVBLx/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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat---End Message--- 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. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: RE: RE: maven-surefire-plugin problem
---BeginMessage--- 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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat---End Message--- 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. --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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\SampleProject1mvn -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 * [EMAIL PROTECTED] mailto::[EMAIL PROTECTED] 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
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 [EMAIL PROTECTED] 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\SampleProject1mvn -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 * [EMAIL PROTECTED] mailto::[EMAIL PROTECTED] DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall
RE: maven-surefire-plugin problem
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; modelVersion4.0.0/modelVersion groupIdmain.java/groupId artifactIdSampleProject1/artifactId packagingjar/packaging nameSimple Demo/name version1.0-SNAPSHOT/version descriptionCIA Tool RCP Simple Demo/description dependencies !--dependency groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version /dependency-- dependency groupIdorg.eclipse/groupId artifactIdui.workbench/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.commands/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdswt/artifactId version3.2.0.v3232o/version /dependency dependency groupIdorg.eclipse/groupId artifactIdui/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.contenttype/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdswt.win32.win32/artifactId versionx86_3.2.0.v3232m/version /dependency dependency groupIdorg.eclipse/groupId artifactIdosgi/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdjface/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.registry/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.jobs/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.common/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.preferences/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.runtime/artifactId version3.2.0.v20060603/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdpde-maven-plugin/artifactId extensionstrue/extensions configuration eclipseInstallD:\eclipse/eclipseInstall /configuration /plugin /plugins /build /project Thanks Regards Ramesh Babu.P HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232 * [EMAIL PROTECTED] -Original Message- From: Pankaj Tandon [mailto:[EMAIL PROTECTED] 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\SampleProject1mvn -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
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 Thanks Regards Ramesh Babu.P -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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\SampleProject1mvn -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
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: maven-surefire-plugin problem
Hi, I think your groupId is wrong. From my surefire pom, here is the groupId: ... groupIdorg.apache.maven.surefire/groupId artifactIdsurefire/artifactId packagingpom/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; modelVersion4.0.0/modelVersion groupIdmain.java/groupId artifactIdSampleProject1/artifactId packagingjar/packaging nameSimple Demo/name version1.0-SNAPSHOT/version descriptionCIA Tool RCP Simple Demo/description dependencies !--dependency groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.3/version /dependency-- dependency groupIdorg.eclipse/groupId artifactIdui.workbench/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.commands/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdswt/artifactId version3.2.0.v3232o/version /dependency dependency groupIdorg.eclipse/groupId artifactIdui/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.contenttype/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdswt.win32.win32/artifactId versionx86_3.2.0.v3232m/version /dependency dependency groupIdorg.eclipse/groupId artifactIdosgi/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdjface/artifactId version3.2.0.I20060605-1400/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.registry/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.jobs/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.common/artifactId version3.2.0.v20060603/version /dependency dependency groupIdorg.eclipse/groupId artifactIdequinox.preferences/artifactId version3.2.0.v20060601/version /dependency dependency groupIdorg.eclipse/groupId artifactIdcore.runtime/artifactId version3.2.0.v20060603/version /dependency /dependencies build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdpde-maven-plugin/artifactId extensionstrue/extensions configuration eclipseInstallD:\eclipse/eclipseInstall /configuration /plugin /plugins /build /project Thanks Regards Ramesh Babu.P HCL Technologies - Chennai ( +91-9884506300 ' +9144-23728366 Extn: 1232 * [EMAIL PROTECTED] -Original Message- From: Pankaj Tandon [mailto:[EMAIL PROTECTED] 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\SampleProject1mvn -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