You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dave Newton (JIRA)" <ji...@apache.org> on 2009/01/24 22:21:45 UTC

[jira] Closed: (WW-2965) Maven archetype produces malformed Java code when dashes occur in groupId

     [ https://issues.apache.org/struts/browse/WW-2965?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Newton closed WW-2965.
---------------------------

    Resolution: Not A Problem

AFAIK groupId's are expected to be valid reverse-URI/package-style IDs.

While I don't consider this an issue, if it is, it's a Maven thing.

> Maven archetype produces malformed Java code when dashes occur in groupId
> -------------------------------------------------------------------------
>
>                 Key: WW-2965
>                 URL: https://issues.apache.org/struts/browse/WW-2965
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.0.11.2
>         Environment: Windows XP, mvn 2.0.9
>            Reporter: Tomasz Nurkiewicz
>            Priority: Minor
>
> In Struts2 maven archetype, using dash in groupId like in example below:
> mvn archetype:create -DgroupId=org.foo-bar -DartifactId=war -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.11.2-SNAPSHOT -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository
> will create packages based on groupId as follows:
> package org.foo-bar;
> which is obviously wrong as Java prohibits dashes in identifiers. Don't know whether this is Struts2 archetype problem or maven archetype plugins as whole.

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