FAQ
Hi,

I am wondering how to fix the following attached error (mvn command run)?
I tried to follow the instruction shown in the following website, but got error.
http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html


=========== attached mvn command run ===========
Maven version: 2.0.9
Java version: 1.6.0_10-beta
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

D:\workspace\samples\portlet>mvn archetype:create -DgroupId=com.mycompany.mypor
let \
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task '\': 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 Aug 08 17:32:51 EST 2008
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

D:\workspace\samples\portlet>mvn archetype:create -DgroupId=com.mycompany.mypor
let -DartifactId=myportlet -DarchetypeGroupId=org.apache.struts -DarchetypeAr
ifactId=struts2-archetype-portlet -DarchetypeVersion=2.0.9-SNAPSHOT -Dremote
epositories=http://people.apache.org/repo/m2-snapshot-repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexu
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: com.mycompany.myportlet
[INFO] We are using command line specified remote repositories: http://people.a
ache.org/repo/m2-snapshot-repository
[INFO] snapshot org.apache.struts:struts2-archetype-portlet:2.0.9-SNAPSHOT: che
king for updates from id0
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/st
uts/struts2-archetype-portlet/2.0.9-SNAPSHOT/struts2-archetype-portlet-2.0.9-SN
PSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating from archetype

Embedded error: OldArchetype does not exist.
Unable to download the artifact from any repository
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Fri Aug 08 17:33:37 EST 2008
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

Search Discussions

  • Christopher Schultz at Aug 8, 2008 at 1:55 pm
    Sam,

    This is probably a question best asked on the Maven mailing list.

    - -chris

    Sam Wun wrote:
    Hi,

    I am wondering how to fix the following attached error (mvn command run)?
    I tried to follow the instruction shown in the following website, but
    got error.
    http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html


    =========== attached mvn command run ===========
    Maven version: 2.0.9
    Java version: 1.6.0_10-beta
    OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let \
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    - ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Invalid task '\': 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 Aug 08 17:32:51 EST 2008
    [INFO] Final Memory: 2M/4M
    [INFO]
    - ------------------------------------------------------------------------
    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let -DartifactId=myportlet -DarchetypeGroupId=org.apache.struts
    - -DarchetypeAr
    ifactId=struts2-archetype-portlet -DarchetypeVersion=2.0.9-SNAPSHOT -Dremote
    epositories=http://people.apache.org/repo/m2-snapshot-repository
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO] task-segment: [archetype:create] (aggregator-style)
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Setting property: classpath.resource.loader.class =>
    'org.codehaus.plexu
    .velocity.ContextClassLoaderResourceLoader'.
    [INFO] Setting property: velocimacro.messages.on => 'false'.
    [INFO] Setting property: resource.loader => 'classpath'.
    [INFO] Setting property: resource.manager.logwhenfound => 'false'.
    [INFO] [archetype:create]
    [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
    [INFO] Defaulting package to group ID: com.mycompany.myportlet
    [INFO] We are using command line specified remote repositories:
    http://people.a
    ache.org/repo/m2-snapshot-repository
    [INFO] snapshot
    org.apache.struts:struts2-archetype-portlet:2.0.9-SNAPSHOT: che
    king for updates from id0
    Downloading:
    http://people.apache.org/repo/m2-snapshot-repository/org/apache/st

    uts/struts2-archetype-portlet/2.0.9-SNAPSHOT/struts2-archetype-portlet-2.0.9-SN
    PSHOT.jar
    [INFO]
    - ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Error creating from archetype

    Embedded error: OldArchetype does not exist.
    Unable to download the artifact from any repository
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Total time: 10 seconds
    [INFO] Finished at: Fri Aug 08 17:33:37 EST 2008
    [INFO] Final Memory: 8M/15M
    [INFO]
    - ------------------------------------------------------------------------
    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • David Smith at Aug 8, 2008 at 2:04 pm
    Might also want to try putting the whole command on the same line
    instead of trying to do the continuation '\' operator which may not work
    on Windows. That last '\' character is being interpreted by mvn as a
    parameter.

    --David

    Christopher Schultz wrote:
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Sam,

    This is probably a question best asked on the Maven mailing list.

    - -chris

    Sam Wun wrote:
    Hi,

    I am wondering how to fix the following attached error (mvn command run)?
    I tried to follow the instruction shown in the following website, but
    got error.

    http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html

    =========== attached mvn command run ===========
    Maven version: 2.0.9
    Java version: 1.6.0_10-beta
    OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let \
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    -
    ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO]
    -
    ------------------------------------------------------------------------
    [INFO] Invalid task '\': 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 Aug 08 17:32:51 EST 2008
    [INFO] Final Memory: 2M/4M
    [INFO]
    -
    ------------------------------------------------------------------------
    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let -DartifactId=myportlet -DarchetypeGroupId=org.apache.struts
    - -DarchetypeAr
    ifactId=struts2-archetype-portlet -DarchetypeVersion=2.0.9-SNAPSHOT -Dremote
    epositories=http://people.apache.org/repo/m2-snapshot-repository
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    -
    ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO] task-segment: [archetype:create] (aggregator-style)
    [INFO]
    -
    ------------------------------------------------------------------------
    [INFO] Setting property: classpath.resource.loader.class =>
    'org.codehaus.plexu
    .velocity.ContextClassLoaderResourceLoader'.
    [INFO] Setting property: velocimacro.messages.on => 'false'.
    [INFO] Setting property: resource.loader => 'classpath'.
    [INFO] Setting property: resource.manager.logwhenfound => 'false'.
    [INFO] [archetype:create]
    [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
    [INFO] Defaulting package to group ID: com.mycompany.myportlet
    [INFO] We are using command line specified remote repositories:
    http://people.a
    ache.org/repo/m2-snapshot-repository
    [INFO] snapshot
    org.apache.struts:struts2-archetype-portlet:2.0.9-SNAPSHOT: che
    king for updates from id0
    Downloading:
    http://people.apache.org/repo/m2-snapshot-repository/org/apache/st

    uts/struts2-archetype-portlet/2.0.9-SNAPSHOT/struts2-archetype-portlet-2.0.9-SN
    PSHOT.jar
    [INFO]
    -
    ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO]
    -
    ------------------------------------------------------------------------
    [INFO] Error creating from archetype

    Embedded error: OldArchetype does not exist.
    Unable to download the artifact from any repository
    [INFO]
    -
    ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO]
    -
    ------------------------------------------------------------------------
    [INFO] Total time: 10 seconds
    [INFO] Finished at: Fri Aug 08 17:33:37 EST 2008
    [INFO] Final Memory: 8M/15M
    [INFO]
    -
    ------------------------------------------------------------------------
    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (MingW32)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkicUCEACgkQ9CaO5/Lv0PD1DQCgliGUPwyRJEbjlt8C3IK2Kk+D
    IvAAoInN2BtRpEQNgJ62F8cs0oVyTiQm
    =JUG4
    -----END PGP SIGNATURE-----

    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • Sam Wun at Aug 8, 2008 at 2:07 pm
    Actually I tried that with what you said, this is the error message
    getting from that ONE command line. There is no \ at the end.

    Thanks

    On Sat, Aug 9, 2008 at 12:04 AM, David Smith wrote:
    Might also want to try putting the whole command on the same line instead of
    trying to do the continuation '\' operator which may not work on Windows.
    That last '\' character is being interpreted by mvn as a parameter.

    --David

    Christopher Schultz wrote:
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Sam,

    This is probably a question best asked on the Maven mailing list.

    - -chris

    Sam Wun wrote:
    Hi,

    I am wondering how to fix the following attached error (mvn command run)?
    I tried to follow the instruction shown in the following website, but
    got error.

    http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html

    =========== attached mvn command run ===========
    Maven version: 2.0.9
    Java version: 1.6.0_10-beta
    OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let \
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    - ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Invalid task '\': 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 Aug 08 17:32:51 EST 2008
    [INFO] Final Memory: 2M/4M
    [INFO]
    - ------------------------------------------------------------------------
    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let -DartifactId=myportlet -DarchetypeGroupId=org.apache.struts
    - -DarchetypeAr
    ifactId=struts2-archetype-portlet -DarchetypeVersion=2.0.9-SNAPSHOT -Dremote
    epositories=http://people.apache.org/repo/m2-snapshot-repository
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO] task-segment: [archetype:create] (aggregator-style)
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Setting property: classpath.resource.loader.class =>
    'org.codehaus.plexu
    .velocity.ContextClassLoaderResourceLoader'.
    [INFO] Setting property: velocimacro.messages.on => 'false'.
    [INFO] Setting property: resource.loader => 'classpath'.
    [INFO] Setting property: resource.manager.logwhenfound => 'false'.
    [INFO] [archetype:create]
    [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
    [INFO] Defaulting package to group ID: com.mycompany.myportlet
    [INFO] We are using command line specified remote repositories:
    http://people.a
    ache.org/repo/m2-snapshot-repository
    [INFO] snapshot
    org.apache.struts:struts2-archetype-portlet:2.0.9-SNAPSHOT: che
    king for updates from id0
    Downloading:
    http://people.apache.org/repo/m2-snapshot-repository/org/apache/st

    uts/struts2-archetype-portlet/2.0.9-SNAPSHOT/struts2-archetype-portlet-2.0.9-SN
    PSHOT.jar
    [INFO]
    - ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Error creating from archetype

    Embedded error: OldArchetype does not exist.
    Unable to download the artifact from any repository
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Total time: 10 seconds
    [INFO] Finished at: Fri Aug 08 17:33:37 EST 2008
    [INFO] Final Memory: 8M/15M
    [INFO]
    - ------------------------------------------------------------------------
    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (MingW32)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkicUCEACgkQ9CaO5/Lv0PD1DQCgliGUPwyRJEbjlt8C3IK2Kk+D
    IvAAoInN2BtRpEQNgJ62F8cs0oVyTiQm
    =JUG4
    -----END PGP SIGNATURE-----

    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
  • David Smith at Aug 8, 2008 at 2:19 pm
    That's not what I'm seeing in the command run you posted. You might
    also want to move this very off-topic discussion to a maven user list.

    --David

    Sam Wun wrote:
    Actually I tried that with what you said, this is the error message
    getting from that ONE command line. There is no \ at the end.

    Thanks

    On Sat, Aug 9, 2008 at 12:04 AM, David Smith wrote:

    Might also want to try putting the whole command on the same line instead of
    trying to do the continuation '\' operator which may not work on Windows.
    That last '\' character is being interpreted by mvn as a parameter.

    --David

    Christopher Schultz wrote:
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Sam,

    This is probably a question best asked on the Maven mailing list.

    - -chris

    Sam Wun wrote:
    Hi,

    I am wondering how to fix the following attached error (mvn command run)?
    I tried to follow the instruction shown in the following website, but
    got error.

    http://struts.apache.org/2.x/docs/developing-a-portlet-using-eclipse.html

    =========== attached mvn command run ===========
    Maven version: 2.0.9
    Java version: 1.6.0_10-beta
    OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"

    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let \
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    - ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Invalid task '\': 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 Aug 08 17:32:51 EST 2008
    [INFO] Final Memory: 2M/4M
    [INFO]
    - ------------------------------------------------------------------------
    D:\workspace\samples\portlet>mvn archetype:create
    - -DgroupId=com.mycompany.mypor
    let -DartifactId=myportlet -DarchetypeGroupId=org.apache.struts
    - -DarchetypeAr
    ifactId=struts2-archetype-portlet -DarchetypeVersion=2.0.9-SNAPSHOT -Dremote
    epositories=http://people.apache.org/repo/m2-snapshot-repository
    [INFO] Scanning for projects...
    [INFO] Searching repository for plugin with prefix: 'archetype'.
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Building Maven Default Project
    [INFO] task-segment: [archetype:create] (aggregator-style)
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Setting property: classpath.resource.loader.class =>
    'org.codehaus.plexu
    .velocity.ContextClassLoaderResourceLoader'.
    [INFO] Setting property: velocimacro.messages.on => 'false'.
    [INFO] Setting property: resource.loader => 'classpath'.
    [INFO] Setting property: resource.manager.logwhenfound => 'false'.
    [INFO] [archetype:create]
    [WARNING] This goal is deprecated. Please use mvn archetype:generate instead
    [INFO] Defaulting package to group ID: com.mycompany.myportlet
    [INFO] We are using command line specified remote repositories:
    http://people.a
    ache.org/repo/m2-snapshot-repository
    [INFO] snapshot
    org.apache.struts:struts2-archetype-portlet:2.0.9-SNAPSHOT: che
    king for updates from id0
    Downloading:
    http://people.apache.org/repo/m2-snapshot-repository/org/apache/st

    uts/struts2-archetype-portlet/2.0.9-SNAPSHOT/struts2-archetype-portlet-2.0.9-SN
    PSHOT.jar
    [INFO]
    - ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Error creating from archetype

    Embedded error: OldArchetype does not exist.
    Unable to download the artifact from any repository
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO]
    - ------------------------------------------------------------------------
    [INFO] Total time: 10 seconds
    [INFO] Finished at: Fri Aug 08 17:33:37 EST 2008
    [INFO] Final Memory: 8M/15M
    [INFO]
    - ------------------------------------------------------------------------
    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (MingW32)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iEYEARECAAYFAkicUCEACgkQ9CaO5/Lv0PD1DQCgliGUPwyRJEbjlt8C3IK2Kk+D
    IvAAoInN2BtRpEQNgJ62F8cs0oVyTiQm
    =JUG4
    -----END PGP SIGNATURE-----

    ---------------------------------------------------------------------
    To start a new topic, e-mail: users@tomcat.apache.org
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriestomcat
postedAug 8, '08 at 7:39a
activeAug 8, '08 at 2:19p
posts5
users3
websitetomcat.apache.org
irc#tomcat

People

Translate

site design / logo © 2018 Grokbase