|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Doubt about how create archetypeI am trying to create an archetype with this structure:
ProjectName src/main/java es.test.model TestModel.java es.test.bean TestBean.java ResourceBundle_en.properties ResourceBundle_es.properties Src Main Webapp WEB-INF lib web.xml faces-config.xml META-INF Index.jsp Pom.xml My archetype structure is: Archetype Pom.xml Src/main/resources Archetype-resources Src Main Java App.java ResourceBundle_en.properties ResourceBundle_es.properties Webapp WEB-INF Lib Web.xml Faces-config.xml META-INF Index.jsp META-INF Maven Archetype.xml I can do it all but the ResourceBundle files. How can I place them in the correct place? When I create a new project from this archetype, the App.java and both ResourceBundle files are generated in the same package. This package is created with the groupId and artifactId I write in the creation step. Thanks in advance. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Doubt about how create archetypeHi Francisco,
Can you please show the content of your META-INF/Maven/Archetype.xml Regards, Raphaël 2009/11/6 Exposito Aguilera, Francisco <francisco.exposito@...> > I am trying to create an archetype with this structure: > > ProjectName > src/main/java > es.test.model > TestModel.java > es.test.bean > TestBean.java > ResourceBundle_en.properties > ResourceBundle_es.properties > Src > Main > Webapp > WEB-INF > lib > web.xml > faces-config.xml > META-INF > Index.jsp > Pom.xml > > > > My archetype structure is: > > Archetype > Pom.xml > Src/main/resources > Archetype-resources > Src > Main > Java > App.java > ResourceBundle_en.properties > ResourceBundle_es.properties > Webapp > WEB-INF > Lib > Web.xml > Faces-config.xml > META-INF > Index.jsp > META-INF > Maven > Archetype.xml > > > I can do it all but the ResourceBundle files. How can I place them in the > correct place? > > When I create a new project from this archetype, the App.java and both > ResourceBundle files are generated in the same package. This package is > created with the groupId and artifactId I write in the creation step. > > Thanks in advance. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
|
|
|
Re: Doubt about how create archetypeHi Francisco,
Try by creating the project you would like to have and call "mvn archetype:create-from-project" on it. You will get the archetype project in target/generated-sources/archetype. In that directory you will find the src/main/resources/META-INT/maven/archetype-metadata.xml file that describe your archetype. Hope this helps. Regards, Raphaël 2009/11/10 Exposito Aguilera, Francisco <francisco.exposito@...> > Any help please? > > -----Mensaje original----- > De: Exposito Aguilera, Francisco > Enviado el: viernes, 06 de noviembre de 2009 12:54 > Para: 'Maven Users List' > Asunto: Doubt about how create archetype > > I am trying to create an archetype with this structure: > > ProjectName > src/main/java > es.test.model > TestModel.java > es.test.bean > TestBean.java > ResourceBundle_en.properties > ResourceBundle_es.properties > Src > Main > Webapp > WEB-INF > lib > web.xml > faces-config.xml > META-INF > Index.jsp > Pom.xml > > > > My archetype structure is: > > Archetype > Pom.xml > Src/main/resources > Archetype-resources > Src > Main > Java > App.java > ResourceBundle_en.properties > ResourceBundle_es.properties > Webapp > WEB-INF > Lib > Web.xml > Faces-config.xml > META-INF > Index.jsp > META-INF > Maven > Archetype.xml > > > I can do it all but the ResourceBundle files. How can I place them in the > correct place? > > When I create a new project from this archetype, the App.java and both > ResourceBundle files are generated in the same package. This package is > created with the groupId and artifactId I write in the creation step. > > Thanks in advance. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |