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]

Reply via email to