Create struts2 portlet webapp from archetype

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Create struts2 portlet webapp from archetype

Johannes Geppert
I like to update the existing Struts2 Portlet Tutorial.
https://cwiki.apache.org/confluence/display/WW/Struts+2+Portlet+Tutorial

But I run into Failure when executing following maven command to create the Webapp from archetype.

mvn archetype:generate -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-portlet -DarchetypeVersion=2.3.1.1 -DartifactId=bookmark-portlet -DarchetypeCatalog=http://struts.apache.org/

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
[INFO] Archetype repository missing. Using the one from [org.apache.struts:struts2-archetype-portlet:2.3.1 -> http://repo1.maven.org/maven2/] found in catalog http://struts.apache.org/
Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
Downloaded: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar (8 KB at 15.6 KB/sec)
Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
Downloaded: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom (3 KB at 5.0 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.032s
[INFO] Finished at: Wed Jan 04 13:26:49 CET 2012
[INFO] Final Memory: 6M/61M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli) on project standalone-pom: The defined artifact is not an archetype -> [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/MojoFailureException


Is my maven comand wrong? Any Suggestions?

Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Łukasz Lenart
It's ok, the repo [1] has changed :/
I'll update the archetype-catalog.xml in few minutes

[1] http://repo1.maven.org/maven2/

Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

2012/1/4 Johannes Geppert <[hidden email]>:

> I like to update the existing Struts2 Portlet Tutorial.
> https://cwiki.apache.org/confluence/display/WW/Struts+2+Portlet+Tutorial
>
> But I run into Failure when executing following maven command to create the
> Webapp from archetype.
>
> /mvn archetype:generate -DarchetypeGroupId=org.apache.struts
> -DarchetypeArtifactId=struts2-archetype-portlet -DarchetypeVersion=2.3.1.1
> -DartifactId=bookmark-portlet -DarchetypeCatalog=http://struts.apache.org/
>
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Stub Project (No POM) 1
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @
> standalone-pom >>>
> [INFO]
> [INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @
> standalone-pom <<<
> [INFO]
> [INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @
> standalone-pom ---
> [INFO] Generating project in Interactive mode
> [INFO] Archetype repository missing. Using the one from
> [org.apache.struts:struts2-archetype-portlet:2.3.1 ->
> http://repo1.maven.org/maven2/] found in catalog http://struts.apache.org/
> Downloading:
> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
> (8 KB at 15.6 KB/sec)
> Downloading:
> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
> Downloaded:
> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
> (3 KB at 5.0 KB/sec)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4.032s
> [INFO] Finished at: Wed Jan 04 13:26:49 CET 2012
> [INFO] Final Memory: 6M/61M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli)
> on project standalone-pom: The defined artifact is not an archetype -> [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/MojoFailureException/
>
> Is my maven comand wrong? Any Suggestions?
>
> Johannes
>
>
> -----
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
> --
> View this message in context: http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-tp5119466p5119466.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Łukasz Lenart
Done, just wait a bit - one hour ;-)

W dniu 4 stycznia 2012 13:47 użytkownik Łukasz Lenart
<[hidden email]> napisał:

> It's ok, the repo [1] has changed :/
> I'll update the archetype-catalog.xml in few minutes
>
> [1] http://repo1.maven.org/maven2/
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Warszawa JUG conference - Confitura http://confitura.pl/
>
> 2012/1/4 Johannes Geppert <[hidden email]>:
>> I like to update the existing Struts2 Portlet Tutorial.
>> https://cwiki.apache.org/confluence/display/WW/Struts+2+Portlet+Tutorial
>>
>> But I run into Failure when executing following maven command to create the
>> Webapp from archetype.
>>
>> /mvn archetype:generate -DarchetypeGroupId=org.apache.struts
>> -DarchetypeArtifactId=struts2-archetype-portlet -DarchetypeVersion=2.3.1.1
>> -DartifactId=bookmark-portlet -DarchetypeCatalog=http://struts.apache.org/
>>
>> [INFO] Scanning for projects...
>> [INFO]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Maven Stub Project (No POM) 1
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> [INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @
>> standalone-pom >>>
>> [INFO]
>> [INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @
>> standalone-pom <<<
>> [INFO]
>> [INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @
>> standalone-pom ---
>> [INFO] Generating project in Interactive mode
>> [INFO] Archetype repository missing. Using the one from
>> [org.apache.struts:struts2-archetype-portlet:2.3.1 ->
>> http://repo1.maven.org/maven2/] found in catalog http://struts.apache.org/
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
>> (8 KB at 15.6 KB/sec)
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
>> Downloaded:
>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
>> (3 KB at 5.0 KB/sec)
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4.032s
>> [INFO] Finished at: Wed Jan 04 13:26:49 CET 2012
>> [INFO] Final Memory: 6M/61M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli)
>> on project standalone-pom: The defined artifact is not an archetype -> [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/MojoFailureException/
>>
>> Is my maven comand wrong? Any Suggestions?
>>
>> Johannes
>>
>>
>> -----
>> web: http://www.jgeppert.com
>> twitter: http://twitter.com/jogep
>> --
>> View this message in context: http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-tp5119466p5119466.html
>> Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Łukasz Lenart
All the archetypes are broken, don't know why :/ The jars are missing
important files.

W dniu 4 stycznia 2012 14:43 użytkownik Łukasz Lenart
<[hidden email]> napisał:

> Done, just wait a bit - one hour ;-)
>
> W dniu 4 stycznia 2012 13:47 użytkownik Łukasz Lenart
> <[hidden email]> napisał:
>> It's ok, the repo [1] has changed :/
>> I'll update the archetype-catalog.xml in few minutes
>>
>> [1] http://repo1.maven.org/maven2/
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>> Warszawa JUG conference - Confitura http://confitura.pl/
>>
>> 2012/1/4 Johannes Geppert <[hidden email]>:
>>> I like to update the existing Struts2 Portlet Tutorial.
>>> https://cwiki.apache.org/confluence/display/WW/Struts+2+Portlet+Tutorial
>>>
>>> But I run into Failure when executing following maven command to create the
>>> Webapp from archetype.
>>>
>>> /mvn archetype:generate -DarchetypeGroupId=org.apache.struts
>>> -DarchetypeArtifactId=struts2-archetype-portlet -DarchetypeVersion=2.3.1.1
>>> -DartifactId=bookmark-portlet -DarchetypeCatalog=http://struts.apache.org/
>>>
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building Maven Stub Project (No POM) 1
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO]
>>> [INFO] >>> maven-archetype-plugin:2.0:generate (default-cli) @
>>> standalone-pom >>>
>>> [INFO]
>>> [INFO] <<< maven-archetype-plugin:2.0:generate (default-cli) @
>>> standalone-pom <<<
>>> [INFO]
>>> [INFO] --- maven-archetype-plugin:2.0:generate (default-cli) @
>>> standalone-pom ---
>>> [INFO] Generating project in Interactive mode
>>> [INFO] Archetype repository missing. Using the one from
>>> [org.apache.struts:struts2-archetype-portlet:2.3.1 ->
>>> http://repo1.maven.org/maven2/] found in catalog http://struts.apache.org/
>>> Downloading:
>>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
>>> Downloaded:
>>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.jar
>>> (8 KB at 15.6 KB/sec)
>>> Downloading:
>>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
>>> Downloaded:
>>> http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-portlet/2.3.1/struts2-archetype-portlet-2.3.1.pom
>>> (3 KB at 5.0 KB/sec)
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 4.032s
>>> [INFO] Finished at: Wed Jan 04 13:26:49 CET 2012
>>> [INFO] Final Memory: 6M/61M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default-cli)
>>> on project standalone-pom: The defined artifact is not an archetype -> [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/MojoFailureException/
>>>
>>> Is my maven comand wrong? Any Suggestions?
>>>
>>> Johannes
>>>
>>>
>>> -----
>>> web: http://www.jgeppert.com
>>> twitter: http://twitter.com/jogep
>>> --
>>> View this message in context: http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-tp5119466p5119466.html
>>> Sent from the Struts - Dev mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Johannes Geppert
I am sure this happens because the archetype.xml in the META-INF folder inside of the struts2-archetype-portlet-2.3.1.1.jar is missing.

In the older release 2.2.1.1 this file exists.

Johannes

Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Łukasz Lenart
2012/1/5 Johannes Geppert <[hidden email]>:
> I am sure this happens because the archetype.xml in the META-INF folder
> inside of the struts2-archetype-portlet-2.3.1.1.jar is missing.

Not only, also archetype-resources are missing. Looks like archetype
descriptor changed in meanwhile ;-)

Could you register an issue ?


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Johannes Geppert
Łukasz Lenart wrote
Not only, also archetype-resources are missing. Looks like archetype
descriptor changed in meanwhile ;-)

Could you register an issue ?
Done:

https://issues.apache.org/jira/browse/WW-3738

Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Łukasz Lenart
2012/1/5 Johannes Geppert <[hidden email]>:
> Done:
>
> https://issues.apache.org/jira/browse/WW-3738

Thanks a lot :-)


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Johannes Geppert
I just try out the Archetype generation again with the latest 2.3.3 version.
But I run into an failure because the

http://struts.apache.org/2.3.3/archetype-catalog.xml

includes only version 2.3.1. Is this a bug or a missing release step?

Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Create struts2 portlet webapp from archetype

Łukasz Lenart
2012/5/8 Johannes Geppert <[hidden email]>:
> I just try out the Archetype generation again with the latest 2.3.3 version.
> But I run into an failure because the
>
> http://struts.apache.org/2.3.3/archetype-catalog.xml
>
> includes only version 2.3.1. Is this a bug or a missing release step?

Neither of both ;-) I had again separately deploy Struts 2 site and
missed out to update archetype-catalog.xml with current version, will
do it now!

Thanks Johannes!


Regards
--
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]