Problems installing maven on windows 7

2013-12-15 Thread jacqueline George
Hi 

 

I'm having  problems installing maven.  I don't know what I am doing wrong!

 

I've done a detailed explanation of how I'm installing maven. and a problem
I'm still experiencing. I must be making some mistake I can't see. I've
attached a video my attempt to install maven and a copy of M2_Home and Path

Video:
https://www.dropbox.com/s/xo5ymrq5xep5ap3/maven%20installation%20in%20detail
.avi 

M2_Home and Path
https://www.dropbox.com/s/ez4i0i8q4l9n3r0/Maven%20M2_HOME%20and%20Path%20Inf
o.txt

 

I look forward to a speedy response. 

 

Speak soon 

 

Jacqueline 

 



Re: Problems installing maven on windows 7

2013-12-15 Thread Cemo
Hi,

1. Could you check your maven folder? I suspect that you have another
folder inside Apache Maven folder such maven-3.1.1 or something else. In
that case you need to change your home folder like this
C:\Users\user\Desktop\Apache
Maven\mavenxxx\

2. If the folder is ok, please append your maven home folder at the
beginning of your PATH variable. I am not sure about this but if there is a
wrong url inside PATH variable, this can help to safely find mvn file.

3. And one my last suggestion is rebooting your machine. I came across some
weird cases in which windows could not load env variable properly.






On 16 December 2013 00:43, jacqueline George 
jacquelinegeo...@balance.eclipse.co.uk wrote:

 Hi



 I'm having  problems installing maven.  I don't know what I am doing wrong!



 I've done a detailed explanation of how I'm installing maven. and a problem
 I'm still experiencing. I must be making some mistake I can't see. I've
 attached a video my attempt to install maven and a copy of M2_Home and Path

 Video:

 https://www.dropbox.com/s/xo5ymrq5xep5ap3/maven%20installation%20in%20detail
 .avi

 M2_Home and Path

 https://www.dropbox.com/s/ez4i0i8q4l9n3r0/Maven%20M2_HOME%20and%20Path%20Inf
 o.txt



 I look forward to a speedy response.



 Speak soon



 Jacqueline






WhatWeSayWeDo != WhatWeDo

2013-12-15 Thread Martin Gainty
Folks-

 

org.apache.maven.compiler.plugin.compiler.CompilerMojo.java

/**
 * The source directories containing the sources to be compiled.
 */
@Parameter( defaultValue = ${project.compileSourceRoots}, readonly = 
true, required = true )


For some reason I cannot locate compileSourceRoots anywhere on 
maven-compiler-plugin page
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html

 

do I need better glasses to read this page properly?
Martin --
__ 
.. place long-winded disclaimer here..

  

Re: WhatWeSayWeDo != WhatWeDo

2013-12-15 Thread Barrie Treloar
On 16 December 2013 12:45, Martin Gainty mgai...@hotmail.com wrote:
 Folks-



 org.apache.maven.compiler.plugin.compiler.CompilerMojo.java

 /**
  * The source directories containing the sources to be compiled.
  */
 @Parameter( defaultValue = ${project.compileSourceRoots}, readonly = 
 true, required = true )


 For some reason I cannot locate compileSourceRoots anywhere on 
 maven-compiler-plugin page
 http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html



 do I need better glasses to read this page properly?

I had to do some googling to find where in the documentation to point
you to as I'm too rusty to be able to point you to the docs which
describes this.
I sorry to say that I struggled to find what I wanted.

A lot of this is from memory and may not be quite correct for 3.x

${project... means from the interpolate value
(http://maven.apache.org/shared/maven-filtering/) named project
which gets injected by Plexus automatically
(http://plexus.codehaus.org/plexus-components/plexus-interpolation/).
This is a MavenProject object.

The method you are talking about is here
http://maven.apache.org/ref/3.0.3/maven-core/apidocs/org/apache/maven/project/MavenProject.html#getCompileSourceRoots%28%29

I thought http://maven.apache.org/plugin-developers/ had some guidance
on access MavenProject but I can't find anything.

I finally found a similar example
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook#MojoDeveloperCookbook-Themavenproject,ortheeffectivepom.
which shows you how to have a local variable get injected with this
value so you can reference it in your Mojo. But if you dont need that
variable, you can just reference its properties directly like
CompilerMojo does for the compileSourceRoots variable.

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



is the wagon-maven-plugin broken?

2013-12-15 Thread Sankaran, Nambi
None of the goals in “wagon-maven-plugin” work
http://mojo.codehaus.org/wagon-maven-plugin/plugin-info.html

Have anyone used any of these goals before?
https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/http-download/pom.xml

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 
org.codehaus.mojo:wagon-maven-plugin:pom:testing
[WARNING] 'build.plugins.plugin.version' for 
org.codehaus.mojo:wagon-maven-plugin is missing. @ line 16, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING]
[INFO]
[INFO] 
[INFO] Building wagon-maven-plugin testing
[INFO] 
[INFO]
[INFO] --- wagon-maven-plugin:1.0-beta-4:list (http-list) @ wagon-maven-plugin 
---
[INFO] Scanning remote file system: 
http://repo1.maven.org/maven2/commons-dbutils/commons-dbutils ...
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 7.598s
[INFO] Finished at: Sun Dec 15 21:29:01 PST 2013
[INFO] Final Memory: 6M/123M
[INFO] 
[ERROR] Failed to execute goal 
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list (http-list) on project 
wagon-maven-plugin: Execution http-list of goal 
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list failed: A required class 
was missing while executing 
org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list: 
org/apache/commons/io/IOUtils
[ERROR] -
[ERROR] realm =pluginorg.codehaus.mojo:wagon-maven-plugin:1.0-beta-4
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = 
file:/Users/nsankaran/.m2/raptor2/org/codehaus/mojo/wagon-maven-plugin/1.0-beta-4/wagon-maven-plugin-1.0-beta-4.jar
[ERROR] urls[1] = 
file:/Users/nsankaran/.m2/raptor2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
[ERROR] urls[2] = 
file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
[ERROR] urls[3] = 
file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -: 
org.apache.commons.io.IOUtils
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException



Re: is the wagon-maven-plugin broken?

2013-12-15 Thread Dan Tran
got  small pom to reproduce this issue? does it work with maven 2?

-D


On Sun, Dec 15, 2013 at 9:32 PM, Sankaran, Nambi nsanka...@ebay.com wrote:

 None of the goals in “wagon-maven-plugin” work
 http://mojo.codehaus.org/wagon-maven-plugin/plugin-info.html

 Have anyone used any of these goals before?

 https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/http-download/pom.xml

 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective
 model for org.codehaus.mojo:wagon-maven-plugin:pom:testing
 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:wagon-maven-plugin is missing. @ line 16, column 21
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.
 [WARNING]
 [INFO]
 [INFO]
 
 [INFO] Building wagon-maven-plugin testing
 [INFO]
 
 [INFO]
 [INFO] --- wagon-maven-plugin:1.0-beta-4:list (http-list) @
 wagon-maven-plugin ---
 [INFO] Scanning remote file system:
 http://repo1.maven.org/maven2/commons-dbutils/commons-dbutils ...
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 7.598s
 [INFO] Finished at: Sun Dec 15 21:29:01 PST 2013
 [INFO] Final Memory: 6M/123M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list (http-list) on project
 wagon-maven-plugin: Execution http-list of goal
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list failed: A required
 class was missing while executing
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list:
 org/apache/commons/io/IOUtils
 [ERROR] -
 [ERROR] realm =pluginorg.codehaus.mojo:wagon-maven-plugin:1.0-beta-4
 [ERROR] strategy =
 org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
 [ERROR] urls[0] =
 file:/Users/nsankaran/.m2/raptor2/org/codehaus/mojo/wagon-maven-plugin/1.0-beta-4/wagon-maven-plugin-1.0-beta-4.jar
 [ERROR] urls[1] =
 file:/Users/nsankaran/.m2/raptor2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
 [ERROR] urls[2] =
 file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
 [ERROR] urls[3] =
 file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
 [ERROR] Number of foreign imports: 1
 [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
 null]]
 [ERROR]
 [ERROR] -:
 org.apache.commons.io.IOUtils
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException




Re: is the wagon-maven-plugin broken?

2013-12-15 Thread Dan Tran
Also, you may want to give vfs-maven-plugin a try as well, it is a
replacement of wagon maven plugin which is heavily depending on maven
runtime to provide the transport


On Sun, Dec 15, 2013 at 11:09 PM, Dan Tran dant...@gmail.com wrote:

 got  small pom to reproduce this issue? does it work with maven 2?

 -D


 On Sun, Dec 15, 2013 at 9:32 PM, Sankaran, Nambi nsanka...@ebay.comwrote:

 None of the goals in “wagon-maven-plugin” work
 http://mojo.codehaus.org/wagon-maven-plugin/plugin-info.html

 Have anyone used any of these goals before?

 https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/http-download/pom.xml

 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective
 model for org.codehaus.mojo:wagon-maven-plugin:pom:testing
 [WARNING] 'build.plugins.plugin.version' for
 org.codehaus.mojo:wagon-maven-plugin is missing. @ line 16, column 21
 [WARNING]
 [WARNING] It is highly recommended to fix these problems because they
 threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer support
 building such malformed projects.
 [WARNING]
 [INFO]
 [INFO]
 
 [INFO] Building wagon-maven-plugin testing
 [INFO]
 
 [INFO]
 [INFO] --- wagon-maven-plugin:1.0-beta-4:list (http-list) @
 wagon-maven-plugin ---
 [INFO] Scanning remote file system:
 http://repo1.maven.org/maven2/commons-dbutils/commons-dbutils ...
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 7.598s
 [INFO] Finished at: Sun Dec 15 21:29:01 PST 2013
 [INFO] Final Memory: 6M/123M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list (http-list) on project
 wagon-maven-plugin: Execution http-list of goal
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list failed: A required
 class was missing while executing
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list:
 org/apache/commons/io/IOUtils
 [ERROR] -
 [ERROR] realm =pluginorg.codehaus.mojo:wagon-maven-plugin:1.0-beta-4
 [ERROR] strategy =
 org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
 [ERROR] urls[0] =
 file:/Users/nsankaran/.m2/raptor2/org/codehaus/mojo/wagon-maven-plugin/1.0-beta-4/wagon-maven-plugin-1.0-beta-4.jar
 [ERROR] urls[1] =
 file:/Users/nsankaran/.m2/raptor2/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar
 [ERROR] urls[2] =
 file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/file-management/1.2.1/file-management-1.2.1.jar
 [ERROR] urls[3] =
 file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/maven-shared-io/1.1/maven-shared-io-1.1.jar
 [ERROR] Number of foreign imports: 1
 [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
 null]]
 [ERROR]
 [ERROR] -:
 org.apache.commons.io.IOUtils
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException





RE: is the wagon-maven-plugin broken?

2013-12-15 Thread Sankaran, Nambi
Please try the integration tests from the http-download 
https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/http-download/


-Original Message-
From: Dan Tran [mailto:dant...@gmail.com] 
Sent: Sunday, December 15, 2013 11:09 PM
To: Maven Users List
Subject: Re: is the wagon-maven-plugin broken?

got  small pom to reproduce this issue? does it work with maven 2?

-D


On Sun, Dec 15, 2013 at 9:32 PM, Sankaran, Nambi nsanka...@ebay.com wrote:

 None of the goals in “wagon-maven-plugin” work 
 http://mojo.codehaus.org/wagon-maven-plugin/plugin-info.html

 Have anyone used any of these goals before?

 https://svn.codehaus.org/mojo/trunk/mojo/wagon-maven-plugin/src/it/htt
 p-download/pom.xml

 [INFO] Scanning for projects...
 [WARNING]
 [WARNING] Some problems were encountered while building the effective 
 model for org.codehaus.mojo:wagon-maven-plugin:pom:testing
 [WARNING] 'build.plugins.plugin.version' for 
 org.codehaus.mojo:wagon-maven-plugin is missing. @ line 16, column 21 
 [WARNING] [WARNING] It is highly recommended to fix these problems 
 because they threaten the stability of your build.
 [WARNING]
 [WARNING] For this reason, future Maven versions might no longer 
 support building such malformed projects.
 [WARNING]
 [INFO]
 [INFO]
 --
 -- [INFO] Building wagon-maven-plugin testing [INFO]
 --
 --
 [INFO]
 [INFO] --- wagon-maven-plugin:1.0-beta-4:list (http-list) @ 
 wagon-maven-plugin --- [INFO] Scanning remote file system:
 http://repo1.maven.org/maven2/commons-dbutils/commons-dbutils ...
 [INFO]
 --
 --
 [INFO] BUILD FAILURE
 [INFO]
 --
 --
 [INFO] Total time: 7.598s
 [INFO] Finished at: Sun Dec 15 21:29:01 PST 2013 [INFO] Final Memory: 
 6M/123M [INFO]
 --
 --
 [ERROR] Failed to execute goal
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list (http-list) on 
 project
 wagon-maven-plugin: Execution http-list of goal 
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list failed: A 
 required class was missing while executing
 org.codehaus.mojo:wagon-maven-plugin:1.0-beta-4:list:
 org/apache/commons/io/IOUtils
 [ERROR] -
 [ERROR] realm =pluginorg.codehaus.mojo:wagon-maven-plugin:1.0-beta-4
 [ERROR] strategy =
 org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
 [ERROR] urls[0] =
 file:/Users/nsankaran/.m2/raptor2/org/codehaus/mojo/wagon-maven-plugin
 /1.0-beta-4/wagon-maven-plugin-1.0-beta-4.jar
 [ERROR] urls[1] =
 file:/Users/nsankaran/.m2/raptor2/org/codehaus/plexus/plexus-utils/1.5
 .6/plexus-utils-1.5.6.jar
 [ERROR] urls[2] =
 file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/file-managem
 ent/1.2.1/file-management-1.2.1.jar
 [ERROR] urls[3] =
 file:/Users/nsankaran/.m2/raptor2/org/apache/maven/shared/maven-shared
 -io/1.1/maven-shared-io-1.1.jar
 [ERROR] Number of foreign imports: 1
 [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent:
 null]]
 [ERROR]
 [ERROR] -:
 org.apache.commons.io.IOUtils
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with 
 the -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions, 
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerExcept
 ion