I've created a web dynamic Project with eclipse. Then I've gone to MSDOS
window and inside the project folder I've executed
mvn archetype:create-from-project
But I receive the error:
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-archetype-plugin
Reason: Error getting POM for
'org.apache.maven.plugins:maven-archetype-plugin'
from the repository: Failed to resolve artifact, possibly due to a
repository li
st that is not appropriately equipped for this artifact's metadata.
org.apache.maven.plugins:maven-archetype-plugin:pom:2.0-alpha-5-SNAPSHOT
from the specified remote repositories:
nexus (
http://localhost:8081/nexus/content/groups/public/)
for project org.apache.maven.plugins:maven-archetype-plugin
Where can I found this plugin?
-----Mensaje original-----
De:
[hidden email] [mailto:
[hidden email]] En nombre de
Raphaël Piéroni
Enviado el: martes, 10 de noviembre de 2009 8:38
Para: Maven Users List
Asunto: Re: Doubt about how create archetype
Hi 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 <
[hidden email]>
> 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:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
[hidden email]
> For additional commands, e-mail:
[hidden email]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]