Skip to content

Commit

Permalink
fix for wrong resource path in generated subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
ctomc authored and kabir committed Jun 6, 2012
1 parent 9f01a20 commit 4a7b293
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jboss-as-subsystem-archetype/create-archetype.sh
Expand Up @@ -37,7 +37,7 @@ cp -f archetype-metadata.xml $ARCHETYPE_DIR/src/main/resources/META-INF/maven/ar
touch $ARCHETYPE_DIR/src/main/resources/META-INF/maven/archetype-metadata.xml
cp archetype-test.properties $ARCHETYPE_DIR/src/test/resources/projects/basic/archetype.properties

mv $ARCHETYPE_RESOURCES_DIR/src/main/resources/com/mycompany/subsystem $ARCHETYPE_RESOURCES_DIR/src/main/resources/
mv $ARCHETYPE_RESOURCES_DIR/src/main/resources/com/mycompany/subsystem/* $ARCHETYPE_RESOURCES_DIR/src/main/resources/

#rsync -az --exclude .svn eclipse-dot-files/ $ARCHETYPE_RESOURCES_DIR/
# fix the archetype plugin being an idiot
Expand All @@ -56,6 +56,7 @@ if [ ! -z $1 ] && [ "$1" = "generate" ]; then
echo Generating project from archetype...
cd target
mvn archetype:generate -B -DarchetypeCatalog=local \
-DarchetypeArtifactId=jboss-javaee6-webapp -DarchetypeGroupId=org.jboss.spec.archetypes -DarchetypeVersion=7.1.1.Final \
-DartifactId=example-project -DgroupId=com.acme -Dpackage=com.acme.example -Dversion=1.0.0-SNAPSHOT -Dname="Java EE 6 subsystem project"
-DarchetypeArtifactId=jboss-as-subsystem -DarchetypeGroupId=org.jboss.as.archetypes -DarchetypeVersion=7.1.1.Final \
-DartifactId=example-project -DgroupId=com.acme -Dpackage=com.acme.example -Dversion=1.0.0-SNAPSHOT -Dname="Java EE 6 subsystem project" \
-Dmodule=org.test.subsystem
fi

0 comments on commit 4a7b293

Please sign in to comment.