[ https://issues.apache.org/struts/browse/WW-2965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45517#action_45517 ]
Lukasz Lenart commented on WW-2965: ----------------------------------- It's a maven plugin issue, not Struts2 Archetype it self. > 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.