Marc,
It might be worth opening a JIRA for this one - I don't think PowerShell is supported.

Had this been working correctly for you before hand? Does quoting the arguments help?

James

On 18/04/2008, at 8:02 PM, Marc Weidner wrote:

Hi,

I'm having issues regarding using Maven 2.0.9 with Microsoft Windows PowerShell 1.0 and JDK 1.6.0_05.

I start PowerShell and set the JAVA_HOME environment variable via $env:JAVA_HOME = "path-to-jdk".

When I issue the command mvn -version I get the version information displayed. Then I want to create the sample project via the following command:

C:\Programme\apache-maven-2.0.9\bin\mvn.bat archetype:create - DgroupId=com.mycompany.app -DartifactId=my-app

I get the following error message:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------ [INFO] Invalid task '.mycompany.app': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Apr 18 11:57:00 CEST 2008
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

If I run the command via the good old cmd.exe all works fine. Can someone confirm this behavior?

Regards

Marc Weidner

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


Marc,
It might be worth opening a JIRA for this one - I don't think PowerShell is supported.

Had this been working correctly for you before hand? Does quoting the arguments help?

James

On 18/04/2008, at 8:02 PM, Marc Weidner wrote:

Hi,

I'm having issues regarding using Maven 2.0.9 with Microsoft Windows PowerShell 1.0 and JDK 1.6.0_05.

I start PowerShell and set the JAVA_HOME environment variable via $env:JAVA_HOME = "path-to-jdk".

When I issue the command mvn -version I get the version information displayed. Then I want to create the sample project via the following command:

C:\Programme\apache-maven-2.0.9\bin\mvn.bat archetype:create - DgroupId=com.mycompany.app -DartifactId=my-app

I get the following error message:

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------ [INFO] Invalid task '.mycompany.app': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Apr 18 11:57:00 CEST 2008
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

If I run the command via the good old cmd.exe all works fine. Can someone confirm this behavior?

Regards

Marc Weidner

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



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

Reply via email to