You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Antonio Sánchez (JIRA)" <ji...@apache.org> on 2010/01/05 12:17:43 UTC

[jira] Created: (WW-3366) Documentarion error for maven archetype in 2.1.8.1

Documentarion error for maven archetype in 2.1.8.1
--------------------------------------------------

                 Key: WW-3366
                 URL: https://issues.apache.org/struts/browse/WW-3366
             Project: Struts 2
          Issue Type: Bug
          Components: Documentation
    Affects Versions: 2.1.8
         Environment: Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_16
Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
Default locale: es_ES, platform encoding: UTF-8
OS name: "linux" version: "2.6.31-16-generic" arch: "i386" Family: "unix"

            Reporter: Antonio Sánchez


Documentation page:

http://struts.apache.org/2.x/docs/struts-2-maven-archetypes.html#Struts2MavenArchetypes-CreatinganApplicationUsingaMavenArchetype

States:

mvn archetype:generate -B \
                       -DgroupId=tutorial \
                       -DartifactId=tutorial \
                       -DarchetypeGroupId=org.apache.struts \
                       -DarchetypeArtifactId=struts2-archetype-blank \
                       -DarchetypeVersion=2.1.8.1

But fails:

...
[WARNING] No archetype repository found. Falling back to central repository (http://repo1.maven.org/maven2). 
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
[INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository struts2-archetype-blank-repo (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
[INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The desired archetype does not exist (org.apache.struts:struts2-archetype-blank:2.1.8.1)
...

Related to bug: WW-3141

My comments:
1. Include maven archetypes for the corresponding version in each struts2 release, I mean, maven stuff should be in the release checklist: do not release until the corresponding maven stuff is developed, tested and uploaded to maven repositories.
2, Anyway, if it is valid to use a different archetype <version>, state it as part of the documentation. For instance, state tha version "-DarchetypeVersion=2.0.11.2" (or whatever) will also work for 2.1.8.1 (or whatever). This is useful to developers not familiar to maven.

Maven archetypes usage should be devoted more attention, they can be very useful specially if we bear in mind that struts2 ide plugins are not supported in struts2 project (but maybe I'm wrong).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3366) Documentarion error for maven archetype in 2.1.8.1

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

Lukasz Lenart commented on WW-3366:
-----------------------------------

Archetypes are ready to be released - the vote is in progress

You can try to use staging repo as below
mvn archetype:generate -DarchetypeCatalog=http://people.apache.org/builds/struts/2.1.8.1/m2-staging-repository/


Regards
--
Lukasz

> Documentarion error for maven archetype in 2.1.8.1
> --------------------------------------------------
>
>                 Key: WW-3366
>                 URL: https://issues.apache.org/struts/browse/WW-3366
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.1.8
>         Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: es_ES, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-16-generic" arch: "i386" Family: "unix"
>            Reporter: Antonio Sánchez
>
> Documentation page:
> http://struts.apache.org/2.x/docs/struts-2-maven-archetypes.html#Struts2MavenArchetypes-CreatinganApplicationUsingaMavenArchetype
> States:
> mvn archetype:generate -B \
>                        -DgroupId=tutorial \
>                        -DartifactId=tutorial \
>                        -DarchetypeGroupId=org.apache.struts \
>                        -DarchetypeArtifactId=struts2-archetype-blank \
>                        -DarchetypeVersion=2.1.8.1
> But fails:
> ...
> [WARNING] No archetype repository found. Falling back to central repository (http://repo1.maven.org/maven2). 
> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
> Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
> [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository struts2-archetype-blank-repo (http://repo1.maven.org/maven2)
> Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
> [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] The desired archetype does not exist (org.apache.struts:struts2-archetype-blank:2.1.8.1)
> ...
> Related to bug: WW-3141
> My comments:
> 1. Include maven archetypes for the corresponding version in each struts2 release, I mean, maven stuff should be in the release checklist: do not release until the corresponding maven stuff is developed, tested and uploaded to maven repositories.
> 2, Anyway, if it is valid to use a different archetype <version>, state it as part of the documentation. For instance, state tha version "-DarchetypeVersion=2.0.11.2" (or whatever) will also work for 2.1.8.1 (or whatever). This is useful to developers not familiar to maven.
> Maven archetypes usage should be devoted more attention, they can be very useful specially if we bear in mind that struts2 ide plugins are not supported in struts2 project (but maybe I'm wrong).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3366) Documentarion error for maven archetype in 2.1.8.1

Posted by "Antonio Sánchez (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3366?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47215#action_47215 ] 

Antonio Sánchez commented on WW-3366:
-------------------------------------

Lukasz:

In order to be considered the final comments in the report: should I request an Enhancement for them?

> Documentarion error for maven archetype in 2.1.8.1
> --------------------------------------------------
>
>                 Key: WW-3366
>                 URL: https://issues.apache.org/struts/browse/WW-3366
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.1.8
>         Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: es_ES, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-16-generic" arch: "i386" Family: "unix"
>            Reporter: Antonio Sánchez
>
> Documentation page:
> http://struts.apache.org/2.x/docs/struts-2-maven-archetypes.html#Struts2MavenArchetypes-CreatinganApplicationUsingaMavenArchetype
> States:
> mvn archetype:generate -B \
>                        -DgroupId=tutorial \
>                        -DartifactId=tutorial \
>                        -DarchetypeGroupId=org.apache.struts \
>                        -DarchetypeArtifactId=struts2-archetype-blank \
>                        -DarchetypeVersion=2.1.8.1
> But fails:
> ...
> [WARNING] No archetype repository found. Falling back to central repository (http://repo1.maven.org/maven2). 
> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
> Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
> [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository struts2-archetype-blank-repo (http://repo1.maven.org/maven2)
> Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
> [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] The desired archetype does not exist (org.apache.struts:struts2-archetype-blank:2.1.8.1)
> ...
> Related to bug: WW-3141
> My comments:
> 1. Include maven archetypes for the corresponding version in each struts2 release, I mean, maven stuff should be in the release checklist: do not release until the corresponding maven stuff is developed, tested and uploaded to maven repositories.
> 2, Anyway, if it is valid to use a different archetype <version>, state it as part of the documentation. For instance, state tha version "-DarchetypeVersion=2.0.11.2" (or whatever) will also work for 2.1.8.1 (or whatever). This is useful to developers not familiar to maven.
> Maven archetypes usage should be devoted more attention, they can be very useful specially if we bear in mind that struts2 ide plugins are not supported in struts2 project (but maybe I'm wrong).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-3366) Documentarion error for maven archetype in 2.1.8.1

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

Lukasz Lenart commented on WW-3366:
-----------------------------------

Ad.1
Yes, you are right and I will try to move Struts2 archetypes inside Struts2 project to be a submodule and included in release process of whole project

Ad.2
It isn't so obvious but there were only few archetypes released so far, so it will be better to put a list of available versions of archetypes


Regards
--
Lukasz

> Documentarion error for maven archetype in 2.1.8.1
> --------------------------------------------------
>
>                 Key: WW-3366
>                 URL: https://issues.apache.org/struts/browse/WW-3366
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 2.1.8
>         Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: es_ES, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-16-generic" arch: "i386" Family: "unix"
>            Reporter: Antonio Sánchez
>
> Documentation page:
> http://struts.apache.org/2.x/docs/struts-2-maven-archetypes.html#Struts2MavenArchetypes-CreatinganApplicationUsingaMavenArchetype
> States:
> mvn archetype:generate -B \
>                        -DgroupId=tutorial \
>                        -DartifactId=tutorial \
>                        -DarchetypeGroupId=org.apache.struts \
>                        -DarchetypeArtifactId=struts2-archetype-blank \
>                        -DarchetypeVersion=2.1.8.1
> But fails:
> ...
> [WARNING] No archetype repository found. Falling back to central repository (http://repo1.maven.org/maven2). 
> [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.
> Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
> [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository struts2-archetype-blank-repo (http://repo1.maven.org/maven2)
> Downloading: http://repo1.maven.org/maven2/org/apache/struts/struts2-archetype-blank/2.1.8.1/struts2-archetype-blank-2.1.8.1.jar
> [INFO] Unable to find resource 'org.apache.struts:struts2-archetype-blank:jar:2.1.8.1' in repository central (http://repo1.maven.org/maven2)
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] The desired archetype does not exist (org.apache.struts:struts2-archetype-blank:2.1.8.1)
> ...
> Related to bug: WW-3141
> My comments:
> 1. Include maven archetypes for the corresponding version in each struts2 release, I mean, maven stuff should be in the release checklist: do not release until the corresponding maven stuff is developed, tested and uploaded to maven repositories.
> 2, Anyway, if it is valid to use a different archetype <version>, state it as part of the documentation. For instance, state tha version "-DarchetypeVersion=2.0.11.2" (or whatever) will also work for 2.1.8.1 (or whatever). This is useful to developers not familiar to maven.
> Maven archetypes usage should be devoted more attention, they can be very useful specially if we bear in mind that struts2 ide plugins are not supported in struts2 project (but maybe I'm wrong).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.