Also, this is very explicitly mentioned on the webpage: Don't forget to include the version of your archetype (if you don't include the version, you archetype creation may fail with a message that version:RELEASE was not found)
http://maven.apache.org/guides/mini/guide-creating-archetypes.html You might want to ask the provider of the jpa-maven-plugin to update his documentation, to include the artifactVersion element in the call to mvn. Wayne On 1/29/08, Wayne Fay <[EMAIL PROTECTED]> wrote: > You failed to include: > -DarchetypeVersion=<archetype-version> > > Try again, adding that parameter, and it will probably work. > > Wayne > > On 1/29/08, Vikas Hazrati <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am using the jpa-maven-archetype for generating my project structure. > > > > If I use the following command the execution is fine and I get my projet > > structure > > > > mvn archetype:create \ > > -DgroupId=com.my-company.my-project \ > > -DartifactId=my-project-domain \ > > -DpackageName=com.company.project.domain \ > > -DarchetypeGroupId=com.rfc.maven.archetypes \ > > -DarchetypeArtifactId=jpa-maven-archetype \ > > -DremoteRepositories=http://maven.rodcoffin.com/repo > > > > > > However if I try to install the jpa-maven-archetype in my local repository > > using the command > > > > mvn install:install-file -DgroupId=com.rfc.maven.archetypes > > -DartifactId=jpa-maven-archetype -Dversion=1.0.0 -Dpackaging=jar > > -Dfile=/home/vhazrati/downloads/jpa-maven-archetype-1.0.0.jar > > > > and then try to create the project structure with > > > > mvn archetype:create \ > > -DgroupId=com.my-company.my-project \ > > -DartifactId=my-project-domain \ > > -DpackageName=com.company.project.domain \ > > -DarchetypeGroupId=com.rfc.maven.archetypes \ > > -DarchetypeArtifactId=jpa-maven-archetype > > > > I get > > > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Error creating from archetype > > > > Embedded error: Archetype does not exist. > > Unable to determine the release version > > > > Try downloading the file manually from the project website. > > > > Then, install it using the command: > > mvn install:install-file -DgroupId=com.rfc.maven.archetypes > > -DartifactId=jpa-maven-archetype \ > > -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > > there: mvn deploy:deploy-file -DgroupId=com.rfc.maven.archetypes > > -DartifactId=jpa-maven-archetype \ > > -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \ > > -Durl=[url] -DrepositoryId=[id] > > > > What am I doing wrong? > > > > Regards | Vikas > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
