You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Craig Ching <cr...@gmail.com> on 2007/07/27 21:46:11 UTC
Problem with maven-archetype-quickstart
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
Re: Problem with maven-archetype-quickstart
Posted by Craig Ching <cr...@gmail.com>.
RIght, *you* didn't say that, that was the impression I got from the link.
;-)
But that got me to this page:
http://maven.apache.org/plugins/maven-archetype-plugin/usage.html
which showed me this:
mvn archetype:create
-DgroupId=sample.group.id \
-DartifactId=sample-artifact-id \
-Dversion=1.0-SNAPSHOT \
-DpackageName=sample.group.id \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DarchetypeVersion=1.0-SNAPSHOT
which appears to be what I was trying to do I guess. There are a few things
I wasn't aware of by executing the shortcut method. I wasn't aware that I
was in fact using the maven-archetype-quickstart archetype and I wasn't
aware that the archetype version is something I'd need to maintain, that's
something I view as one more detail that I'd rather not have to maintain. I
guess the right way to do this is to create scripts that wrap these
operations for my developers.
Thanks for the help!
Cheers,
Craig
On 8/3/07, Wayne Fay <wa...@gmail.com> wrote:
>
> There's no need to create your own archetype -- I'm not sure where you
> got the idea that I'm telling you that you must do this. You are
> welcome to use the ones that exist, that's what most people do.
>
> I was simply saying (suggesting) that you could/should fully specify
> the archetype (groupId, artifactId, and version) when creating a new
> project using an existing archetype.
>
> Wayne
>
> On 8/3/07, Craig Ching <cr...@gmail.com> wrote:
> > Thanks Wayne, I appreciate the help. Here I thought I was making good
> head
> > way on understanding maven and you throw this curve ball at me ;-)
> >
> > So, if I get what you're saying, I should first create my own archetype,
> > then I can create my projects based on that archetype by doing:
> >
> > mvn archetype:create \
> > -DarchetypeGroupId=<archetype-groupId> \
> > -DarchetypeArtifactId=<archetype-artifactId> \
> > -DarchetypeVersion=<archetype-version> \
> > -DgroupId=<my.groupid> \
> > -DartifactId=<my-artifactId>
> >
> >
> > What are the benefits of creating and maintaining my own archetype? I
> > haven't really seen a need for this to this point, things had been going
> so
> > well ;-)
> >
> > Thanks again!
> >
> > Cheers,
> > Craig
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Problem with maven-archetype-quickstart
Posted by Wayne Fay <wa...@gmail.com>.
There's no need to create your own archetype -- I'm not sure where you
got the idea that I'm telling you that you must do this. You are
welcome to use the ones that exist, that's what most people do.
I was simply saying (suggesting) that you could/should fully specify
the archetype (groupId, artifactId, and version) when creating a new
project using an existing archetype.
Wayne
On 8/3/07, Craig Ching <cr...@gmail.com> wrote:
> Thanks Wayne, I appreciate the help. Here I thought I was making good head
> way on understanding maven and you throw this curve ball at me ;-)
>
> So, if I get what you're saying, I should first create my own archetype,
> then I can create my projects based on that archetype by doing:
>
> mvn archetype:create \
> -DarchetypeGroupId=<archetype-groupId> \
> -DarchetypeArtifactId=<archetype-artifactId> \
> -DarchetypeVersion=<archetype-version> \
> -DgroupId=<my.groupid> \
> -DartifactId=<my-artifactId>
>
>
> What are the benefits of creating and maintaining my own archetype? I
> haven't really seen a need for this to this point, things had been going so
> well ;-)
>
> Thanks again!
>
> Cheers,
> Craig
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem with maven-archetype-quickstart
Posted by Craig Ching <cr...@gmail.com>.
Thanks Wayne, I appreciate the help. Here I thought I was making good head
way on understanding maven and you throw this curve ball at me ;-)
So, if I get what you're saying, I should first create my own archetype,
then I can create my projects based on that archetype by doing:
mvn archetype:create \
-DarchetypeGroupId=<archetype-groupId> \
-DarchetypeArtifactId=<archetype-artifactId> \
-DarchetypeVersion=<archetype-version> \
-DgroupId=<my.groupid> \
-DartifactId=<my-artifactId>
What are the benefits of creating and maintaining my own archetype? I
haven't really seen a need for this to this point, things had been going so
well ;-)
Thanks again!
Cheers,
Craig
On 8/3/07, Wayne Fay <wa...@gmail.com> wrote:
>
> That page is about creating your own archetype, and then using it. I
> simply sent you the "using it" directions. So these directions apply
> to your situation.
>
> Without specifying the "full details", archetype:create assumes you
> want to create your project using the "maven-archetype-quickstart"
> archetype, using the version RELEASE. (A note - quickstart is not a
> plugin, it is an archetype. The archetype plugin uses the quickstart
> archetype to create your new project directory etc. You can think of
> an archetype as being similar to a Powerpoint template.)
>
> Here's a list of available archetypes:
> http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
>
> While the shortcut "works" most of the time, sometimes it doesn't (as
> you experienced). I can't tell you why exactly it is breaking on your
> system. Perhaps next time you run into this, you should try "mvn -X
> ..." and see if you can either get more debugging info to help us
> figure out why it broke. Or even better would be "mvn -X -U ..." which
> will force an update of your artifacts and also provide the debugging
> info. If there's a problem with your repo, the -U should generally
> "fix" it.
>
> An even better alternative is to fully specify all parameters in the
> call to archetype:create -- this means passing in all the archetype
> params using -D including version etc. Its a bit more typing but it
> should "always work" barring other problems in your
> system/repo/Internet connection/etc.
>
> Wayne
>
> On 8/3/07, Craig Ching <cr...@gmail.com> wrote:
> > Hi Wayne,
> >
> > Thank you, though I'm not quite sure I understand. You, see, I was
> > following the directions here:
> >
> >
> http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
> >
> > Which say:
> >
> > mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> >
> >
> > where nothing was ever mentioned about an archetype version. I note
> that
> > your page is about creating archetypes, but I'm just trying to create a
> new
> > project. I apologize for being a bit of a newbie on maven, but I
> thought
> > that's what this list was for ;-)
> >
> > So, in the interest of learning something, is what I'm doing creating a
> new
> > archetype? If so, what am I supposed to use for the archetype version
> in
> > this case? I know nothing about the maven-archetype-quickstart plugin
> and
> > what release of it I should be using.
> >
> > One thing I will note, I have never, until recently, had this
> problem. I
> > think I've found a recipe that "fixes" the problem, if I delete my
> > repository, then go to a temp directory and do "maven archetype:create
> > -DgroupId=foo -DartifactId=foo", and *then* go back into my project and
> > create my new sub-project, it works. But maybe I always need to specify
> > some archetypeVersion as you're saying? If so, how have I been able to
> get
> > along without it before?
> >
> > Thanks for your help, I really do appreciate it!
> >
> >
> > Cheers,
> > Craig
> >
> >
> > On 8/2/07, Wayne Fay <wa...@gmail.com> wrote:
> > >
> > > This exact same problem (essentially) was posted a couple days ago,
> > > and I responded to it at the time, and I will give you the same
> > > answer. I imagine you're running into exactly the same problem... If
> > > this doesn't work for you, post back and we'll try to help more.
> > >
> > > to Maven Users List <us...@maven.apache.org>
> > > date Jul 31, 2007 9:36 AM
> > > subject Re: How to add dependencies in the POM.xml?
> > >
> > > You simply need to provide the archetypeVersion number as well.
> > >
> > > This exact error/issue is mentioned on the "guide creating archetypes"
> > > page:
> > > http://maven.apache.org/guides/mini/guide-creating-archetypes.html
> > >
> > > "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) "
> > >
> > > mvn archetype:create \
> > > -DarchetypeGroupId=<archetype-groupId> \
> > > -DarchetypeArtifactId=<archetype-artifactId> \
> > > -DarchetypeVersion=<archetype-version> \
> > > -DgroupId=<my.groupid> \
> > > -DartifactId=<my-artifactId>
> > >
> > > Wayne
> > >
> > > On 8/2/07, Craig Ching <cr...@gmail.com> wrote:
> > > > Well, I deleted my local repository cache and reissued the command
> and
> > > it
> > > > worked ... for a time. Now, I'm back at this point again and
> specifying
> > > the
> > > > version didn't help (and I've never had to do that before). This is
> > > very
> > > > frustrating, anyone have any ideas how I can troubleshoot this? I
> think
> > > > this part is the key, but I just don't know what it means:
> > > >
> > > > GroupId: org.apache.maven.archetype
> > > > ArtifactId: maven-archetype-quickstart
> > > > Version: RELEASE
> > > >
> > > > Reason: Unable to determine the release version
> > > >
> > > > Thanks for any help.
> > > >
> > > > Cheers,
> > > > Craig
> > > >
> > > >
> > > > On 7/29/07, Dave Hoffer <DH...@xrite.com> wrote:
> > > > >
> > > > > I think you want to specify the version of your new project, try:
> > > > >
> > > > > mvn archetype:create -DgroupId=com.mycompany.app-DartifactId=my-app
> > > > > -Dversion=1.0-SNAPSHOT
> > > > >
> > > > > -Dave
> > > > >
> > > > > -----Original Message-----
> > > > > From: Craig Ching [mailto:craigching@gmail.com]
> > > > > Sent: Friday, July 27, 2007 3:46 PM
> > > > > To: Maven Users List
> > > > > Subject: Problem with maven-archetype-quickstart
> > > > >
> > > > > 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
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > > For additional commands, e-mail: users-help@maven.apache.org
> > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Problem with maven-archetype-quickstart
Posted by Wayne Fay <wa...@gmail.com>.
That page is about creating your own archetype, and then using it. I
simply sent you the "using it" directions. So these directions apply
to your situation.
Without specifying the "full details", archetype:create assumes you
want to create your project using the "maven-archetype-quickstart"
archetype, using the version RELEASE. (A note - quickstart is not a
plugin, it is an archetype. The archetype plugin uses the quickstart
archetype to create your new project directory etc. You can think of
an archetype as being similar to a Powerpoint template.)
Here's a list of available archetypes:
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
While the shortcut "works" most of the time, sometimes it doesn't (as
you experienced). I can't tell you why exactly it is breaking on your
system. Perhaps next time you run into this, you should try "mvn -X
..." and see if you can either get more debugging info to help us
figure out why it broke. Or even better would be "mvn -X -U ..." which
will force an update of your artifacts and also provide the debugging
info. If there's a problem with your repo, the -U should generally
"fix" it.
An even better alternative is to fully specify all parameters in the
call to archetype:create -- this means passing in all the archetype
params using -D including version etc. Its a bit more typing but it
should "always work" barring other problems in your
system/repo/Internet connection/etc.
Wayne
On 8/3/07, Craig Ching <cr...@gmail.com> wrote:
> Hi Wayne,
>
> Thank you, though I'm not quite sure I understand. You, see, I was
> following the directions here:
>
> http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
>
> Which say:
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>
> where nothing was ever mentioned about an archetype version. I note that
> your page is about creating archetypes, but I'm just trying to create a new
> project. I apologize for being a bit of a newbie on maven, but I thought
> that's what this list was for ;-)
>
> So, in the interest of learning something, is what I'm doing creating a new
> archetype? If so, what am I supposed to use for the archetype version in
> this case? I know nothing about the maven-archetype-quickstart plugin and
> what release of it I should be using.
>
> One thing I will note, I have never, until recently, had this problem. I
> think I've found a recipe that "fixes" the problem, if I delete my
> repository, then go to a temp directory and do "maven archetype:create
> -DgroupId=foo -DartifactId=foo", and *then* go back into my project and
> create my new sub-project, it works. But maybe I always need to specify
> some archetypeVersion as you're saying? If so, how have I been able to get
> along without it before?
>
> Thanks for your help, I really do appreciate it!
>
>
> Cheers,
> Craig
>
>
> On 8/2/07, Wayne Fay <wa...@gmail.com> wrote:
> >
> > This exact same problem (essentially) was posted a couple days ago,
> > and I responded to it at the time, and I will give you the same
> > answer. I imagine you're running into exactly the same problem... If
> > this doesn't work for you, post back and we'll try to help more.
> >
> > to Maven Users List <us...@maven.apache.org>
> > date Jul 31, 2007 9:36 AM
> > subject Re: How to add dependencies in the POM.xml?
> >
> > You simply need to provide the archetypeVersion number as well.
> >
> > This exact error/issue is mentioned on the "guide creating archetypes"
> > page:
> > http://maven.apache.org/guides/mini/guide-creating-archetypes.html
> >
> > "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) "
> >
> > mvn archetype:create \
> > -DarchetypeGroupId=<archetype-groupId> \
> > -DarchetypeArtifactId=<archetype-artifactId> \
> > -DarchetypeVersion=<archetype-version> \
> > -DgroupId=<my.groupid> \
> > -DartifactId=<my-artifactId>
> >
> > Wayne
> >
> > On 8/2/07, Craig Ching <cr...@gmail.com> wrote:
> > > Well, I deleted my local repository cache and reissued the command and
> > it
> > > worked ... for a time. Now, I'm back at this point again and specifying
> > the
> > > version didn't help (and I've never had to do that before). This is
> > very
> > > frustrating, anyone have any ideas how I can troubleshoot this? I think
> > > this part is the key, but I just don't know what it means:
> > >
> > > GroupId: org.apache.maven.archetype
> > > ArtifactId: maven-archetype-quickstart
> > > Version: RELEASE
> > >
> > > Reason: Unable to determine the release version
> > >
> > > Thanks for any help.
> > >
> > > Cheers,
> > > Craig
> > >
> > >
> > > On 7/29/07, Dave Hoffer <DH...@xrite.com> wrote:
> > > >
> > > > I think you want to specify the version of your new project, try:
> > > >
> > > > mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> > > > -Dversion=1.0-SNAPSHOT
> > > >
> > > > -Dave
> > > >
> > > > -----Original Message-----
> > > > From: Craig Ching [mailto:craigching@gmail.com]
> > > > Sent: Friday, July 27, 2007 3:46 PM
> > > > To: Maven Users List
> > > > Subject: Problem with maven-archetype-quickstart
> > > >
> > > > 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
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem with maven-archetype-quickstart
Posted by Craig Ching <cr...@gmail.com>.
Hi Wayne,
Thank you, though I'm not quite sure I understand. You, see, I was
following the directions here:
http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
Which say:
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
where nothing was ever mentioned about an archetype version. I note that
your page is about creating archetypes, but I'm just trying to create a new
project. I apologize for being a bit of a newbie on maven, but I thought
that's what this list was for ;-)
So, in the interest of learning something, is what I'm doing creating a new
archetype? If so, what am I supposed to use for the archetype version in
this case? I know nothing about the maven-archetype-quickstart plugin and
what release of it I should be using.
One thing I will note, I have never, until recently, had this problem. I
think I've found a recipe that "fixes" the problem, if I delete my
repository, then go to a temp directory and do "maven archetype:create
-DgroupId=foo -DartifactId=foo", and *then* go back into my project and
create my new sub-project, it works. But maybe I always need to specify
some archetypeVersion as you're saying? If so, how have I been able to get
along without it before?
Thanks for your help, I really do appreciate it!
Cheers,
Craig
On 8/2/07, Wayne Fay <wa...@gmail.com> wrote:
>
> This exact same problem (essentially) was posted a couple days ago,
> and I responded to it at the time, and I will give you the same
> answer. I imagine you're running into exactly the same problem... If
> this doesn't work for you, post back and we'll try to help more.
>
> to Maven Users List <us...@maven.apache.org>
> date Jul 31, 2007 9:36 AM
> subject Re: How to add dependencies in the POM.xml?
>
> You simply need to provide the archetypeVersion number as well.
>
> This exact error/issue is mentioned on the "guide creating archetypes"
> page:
> http://maven.apache.org/guides/mini/guide-creating-archetypes.html
>
> "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) "
>
> mvn archetype:create \
> -DarchetypeGroupId=<archetype-groupId> \
> -DarchetypeArtifactId=<archetype-artifactId> \
> -DarchetypeVersion=<archetype-version> \
> -DgroupId=<my.groupid> \
> -DartifactId=<my-artifactId>
>
> Wayne
>
> On 8/2/07, Craig Ching <cr...@gmail.com> wrote:
> > Well, I deleted my local repository cache and reissued the command and
> it
> > worked ... for a time. Now, I'm back at this point again and specifying
> the
> > version didn't help (and I've never had to do that before). This is
> very
> > frustrating, anyone have any ideas how I can troubleshoot this? I think
> > this part is the key, but I just don't know what it means:
> >
> > GroupId: org.apache.maven.archetype
> > ArtifactId: maven-archetype-quickstart
> > Version: RELEASE
> >
> > Reason: Unable to determine the release version
> >
> > Thanks for any help.
> >
> > Cheers,
> > Craig
> >
> >
> > On 7/29/07, Dave Hoffer <DH...@xrite.com> wrote:
> > >
> > > I think you want to specify the version of your new project, try:
> > >
> > > mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> > > -Dversion=1.0-SNAPSHOT
> > >
> > > -Dave
> > >
> > > -----Original Message-----
> > > From: Craig Ching [mailto:craigching@gmail.com]
> > > Sent: Friday, July 27, 2007 3:46 PM
> > > To: Maven Users List
> > > Subject: Problem with maven-archetype-quickstart
> > >
> > > 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
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Problem with maven-archetype-quickstart
Posted by Wayne Fay <wa...@gmail.com>.
This exact same problem (essentially) was posted a couple days ago,
and I responded to it at the time, and I will give you the same
answer. I imagine you're running into exactly the same problem... If
this doesn't work for you, post back and we'll try to help more.
to Maven Users List <us...@maven.apache.org>
date Jul 31, 2007 9:36 AM
subject Re: How to add dependencies in the POM.xml?
You simply need to provide the archetypeVersion number as well.
This exact error/issue is mentioned on the "guide creating archetypes" page:
http://maven.apache.org/guides/mini/guide-creating-archetypes.html
"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) "
mvn archetype:create \
-DarchetypeGroupId=<archetype-groupId> \
-DarchetypeArtifactId=<archetype-artifactId> \
-DarchetypeVersion=<archetype-version> \
-DgroupId=<my.groupid> \
-DartifactId=<my-artifactId>
Wayne
On 8/2/07, Craig Ching <cr...@gmail.com> wrote:
> Well, I deleted my local repository cache and reissued the command and it
> worked ... for a time. Now, I'm back at this point again and specifying the
> version didn't help (and I've never had to do that before). This is very
> frustrating, anyone have any ideas how I can troubleshoot this? I think
> this part is the key, but I just don't know what it means:
>
> GroupId: org.apache.maven.archetype
> ArtifactId: maven-archetype-quickstart
> Version: RELEASE
>
> Reason: Unable to determine the release version
>
> Thanks for any help.
>
> Cheers,
> Craig
>
>
> On 7/29/07, Dave Hoffer <DH...@xrite.com> wrote:
> >
> > I think you want to specify the version of your new project, try:
> >
> > mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> > -Dversion=1.0-SNAPSHOT
> >
> > -Dave
> >
> > -----Original Message-----
> > From: Craig Ching [mailto:craigching@gmail.com]
> > Sent: Friday, July 27, 2007 3:46 PM
> > To: Maven Users List
> > Subject: Problem with maven-archetype-quickstart
> >
> > 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
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problem with maven-archetype-quickstart
Posted by Craig Ching <cr...@gmail.com>.
Well, I deleted my local repository cache and reissued the command and it
worked ... for a time. Now, I'm back at this point again and specifying the
version didn't help (and I've never had to do that before). This is very
frustrating, anyone have any ideas how I can troubleshoot this? I think
this part is the key, but I just don't know what it means:
GroupId: org.apache.maven.archetype
ArtifactId: maven-archetype-quickstart
Version: RELEASE
Reason: Unable to determine the release version
Thanks for any help.
Cheers,
Craig
On 7/29/07, Dave Hoffer <DH...@xrite.com> wrote:
>
> I think you want to specify the version of your new project, try:
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
> -Dversion=1.0-SNAPSHOT
>
> -Dave
>
> -----Original Message-----
> From: Craig Ching [mailto:craigching@gmail.com]
> Sent: Friday, July 27, 2007 3:46 PM
> To: Maven Users List
> Subject: Problem with maven-archetype-quickstart
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: Problem with maven-archetype-quickstart
Posted by Dave Hoffer <DH...@xrite.com>.
I think you want to specify the version of your new project, try:
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
-Dversion=1.0-SNAPSHOT
-Dave
-----Original Message-----
From: Craig Ching [mailto:craigching@gmail.com]
Sent: Friday, July 27, 2007 3:46 PM
To: Maven Users List
Subject: Problem with maven-archetype-quickstart
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org