Hi,
Haven't had any problems generating new maven projects until today. This
simple command line:
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
fails with:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.maven.archetype
ArtifactId: maven-archetype-quickstart
Version: RELEASE
Reason: 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=org.apache.maven.archetype-DartifactId=m
aven-archetype-quickstart \
-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=org.apache.maven.archetype-DartifactId=maven
-archetype-quickstart \
-Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
org.apache.maven.archetype:maven-archetype-quickstart:jar:RELEASE
I'm still a bit green with maven, is there something fundamental that I'm
missing or is this a transient error?
Cheers,
Craig