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

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

    [ 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.