You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Johannes Geppert (Created) (JIRA)" <ji...@apache.org> on 2012/01/05 14:21:39 UTC

[jira] [Created] (WW-3738) Struts2 Maven Archetypes are broken

Struts2 Maven Archetypes are broken
-----------------------------------

                 Key: WW-3738
                 URL: https://issues.apache.org/jira/browse/WW-3738
             Project: Struts 2
          Issue Type: Bug
          Components: Example Applications
    Affects Versions: 2.3.1
            Reporter: Johannes Geppert
             Fix For: 2.3.2


The generated archetype jars are missing some importend files like the META-INF/archetype.xml.

{quote}
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
{quote}

See Mailing-List Thread:
http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190353#comment-13190353 ] 

Maurizio Cucchiara commented on WW-3738:
----------------------------------------

Is this fixed on trunk?
my 2.3.2-SNAPSHOT inside the repository contains the beforementioned missing files.
                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Johannes Geppert (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206288#comment-13206288 ] 

Johannes Geppert commented on WW-3738:
--------------------------------------

I've made a commit who should solve the problem with the missing archetype.xml .

The first Problem was that the archetype.xml was located in the META-INF folder and not in the META-INF/maven folder, like described here.

http://maven.apache.org/guides/mini/guide-creating-archetypes.html

The second problem was the resources plugin. I changed it from

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/pom.xml</include>
                </includes>
            </resource>
        </resources>

to

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/pom.xml</include>
                    <include>**/archetype.xml</include>
                </includes>
            </resource>
        </resources>

Now the archetype.xml exists inside of the generated JAR file.
Hope that's all and with version 2.3.2 the archtypes are working again.
                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Johannes Geppert (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190454#comment-13190454 ] 

Johannes Geppert commented on WW-3738:
--------------------------------------

I think the problem still exists. After building the current struts2 trunk version, 
the archetype.xml in the META-INF folder is still missing.

Are there any maven plugins version changes since version 2.2.1.1? 
                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209285#comment-13209285 ] 

Hudson commented on WW-3738:
----------------------------

Integrated in Struts2 #414 (See [https://builds.apache.org/job/Struts2/414/])
    WW-3738: Struts2 Maven Archetypes are broken (Revision 1244929)

     Result = SUCCESS
jogep : 
Files : 
* /struts/struts2/trunk/archetypes/struts2-archetype-blank/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-blank/src/main/resources/archetype-resources/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-blank/src/main/resources/archetype-resources/src/main/resources/example/package_es.properties
* /struts/struts2/trunk/archetypes/struts2-archetype-convention/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-convention/src/main/resources/archetype-resources/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-convention/src/main/resources/archetype-resources/src/main/resources/package_es.properties
* /struts/struts2/trunk/archetypes/struts2-archetype-dbportlet/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-dbportlet/src/main/resources/archetype-resources/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-plugin/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-plugin/src/main/resources/archetype-resources/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-portlet/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-portlet/src/main/resources/archetype-resources/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-starter/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-starter/src/main/resources/archetype-resources/pom.xml

                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>            Assignee: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190738#comment-13190738 ] 

Lukasz Lenart commented on WW-3738:
-----------------------------------

I have no clue what has changed, I've tried to use new <packaging/> but that didn't help. Descriptor is there, looks ok, but when I've tried to launch mvn package archetype:jar I got NPE :/
                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Johannes Geppert (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Geppert resolved WW-3738.
----------------------------------

    Resolution: Fixed
      Assignee: Johannes Geppert
    
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>            Assignee: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Maurizio Cucchiara (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190350#comment-13190350 ] 

Maurizio Cucchiara commented on WW-3738:
----------------------------------------

Is [this|http://goo.gl/x4HlS] a temporary possible workaround? 
                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Johannes Geppert (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206288#comment-13206288 ] 

Johannes Geppert edited comment on WW-3738 at 2/11/12 10:40 PM:
----------------------------------------------------------------

I've made a commit who should solve the problem with the missing archetype.xml .

The first Problem was that the archetype.xml was located in the META-INF folder and not in the META-INF/maven folder, like described here.

http://maven.apache.org/guides/mini/guide-creating-archetypes.html

The second problem was the resources plugin. I changed it from

{code}
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/pom.xml</include>
                </includes>
            </resource>
        </resources>
{code}

to

{code}
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/pom.xml</include>
                    <include>**/archetype.xml</include>
                </includes>
            </resource>
        </resources>
{code}

Now the archetype.xml exists inside of the generated JAR file.
Hope that's all and with version 2.3.2 the archtypes are working again.
                
      was (Author: jogep):
    I've made a commit who should solve the problem with the missing archetype.xml .

The first Problem was that the archetype.xml was located in the META-INF folder and not in the META-INF/maven folder, like described here.

http://maven.apache.org/guides/mini/guide-creating-archetypes.html

The second problem was the resources plugin. I changed it from

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/pom.xml</include>
                </includes>
            </resource>
        </resources>

to

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/pom.xml</include>
                    <include>**/archetype.xml</include>
                </includes>
            </resource>
        </resources>

Now the archetype.xml exists inside of the generated JAR file.
Hope that's all and with version 2.3.2 the archtypes are working again.
                  
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3738) Struts2 Maven Archetypes are broken

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206643#comment-13206643 ] 

Hudson commented on WW-3738:
----------------------------

Integrated in Struts2 #413 (See [https://builds.apache.org/job/Struts2/413/])
    WW-3738: Struts2 Maven Archetypes are broken (Revision 1243174)

     Result = SUCCESS
jogep : 
Files : 
* /struts/struts2/trunk/archetypes/struts2-archetype-blank/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-blank/src/main/resources/META-INF/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-blank/src/main/resources/META-INF/maven/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-convention/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-convention/src/main/resources/META-INF/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-convention/src/main/resources/META-INF/maven/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-dbportlet/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-dbportlet/src/main/resources/META-INF/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-plugin/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-plugin/src/main/resources/META-INF/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-portlet/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-portlet/src/main/resources/META-INF/archetype.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-starter/pom.xml
* /struts/struts2/trunk/archetypes/struts2-archetype-starter/src/main/resources/META-INF/archetype.xml

                
> Struts2 Maven Archetypes are broken
> -----------------------------------
>
>                 Key: WW-3738
>                 URL: https://issues.apache.org/jira/browse/WW-3738
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Example Applications
>    Affects Versions: 2.3.1
>            Reporter: Johannes Geppert
>              Labels: archetype
>             Fix For: 2.3.2
>
>
> The generated archetype jars are missing some importend files like the META-INF/archetype.xml.
> {quote}
> 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
> {quote}
> See Mailing-List Thread:
> http://struts.1045723.n5.nabble.com/Create-struts2-portlet-webapp-from-archetype-td5119466.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira