[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] Dumb newbie archetype question
|
Well, I can see the archetype jar on Maven Central:
http://search.maven.org/#browse%7C1710771789
If your Nexus instance claims it does not exist, something is amiss there.
Also note that Nexus maintains archetype-catalog.xml metadata file at
the root of each Maven2 repository. Have you looked at it? If it's empty
/ missing a rebuild can be requested from Nexus administrative UI.
Cheers,
Rafał
On 09/13/2011 11:29 PM, Steve Cohen wrote:
Thanks, but that's exactly the problem. I thought I'd see the webapp
archetype under org.apache.maven.archetypes - but I don't! Where is
it? Does this simply mean that my company's Nexus is missing
something this basic? Hard to believe but possible, I guess.
Browsing the Nexus, I see a pom for
/org/apache/maven/archetypes:maven-archetype-webapp but nothing else.
How is an archetype supposed to be implemented? Are we missing
something?
On 09/13/2011 04:13 PM, Jason van Zyl wrote:
Watch this:
http://m2eclipse.sonatype.org/creating-a-simple-project-in-m2eclipse.html
And pick the webapp archteype.
On Sep 13, 2011, at 4:42 PM, Steve Cohen wrote:
Pardon the dumb newbie question but I'm new to archetypes and am
being driven crazy by this device that is supposed to make my life
simple.
OK, I've upgraded to Eclipse 3.7. I've gotten the latest m2e and
m2e-wtp. I want to play with a simple tutorial example first. OK,
this looks like a good one: http://www.insaneprogramming.be/?p=140
First step the author recommends:
We're going to start with a basic web application, which in my case
means firing up Maven's mvn archetype:generate and choosing the
simple webapp archetype. So now we have this:
.
|-- pom.xml
`-- src
`-- main
|-- resources
`-- webapp
|-- WEB-INF
| `-- web.xml
`-- index.jsp
Evidently, the author thought it was too simple to provide the name
of this simple webapp archetype, but doing a little googling, I find
that he must mean maven-archetype-webapp from
org.apache.maven.archetypes, which is documented to produce the
structure he's aiming for.
But lo and behold, I don't find this archetype in the list brought
up by m2e. My company's Nexus repository supposedly mirrors maven
central. So what gives? Why can't I find this SIMPLE archetype to
build this SIMPLE project? Why is this SIMPLE thing taking me all day?
<end-of-rant>
Seriously, I'd appreciate any help. Has this thing been deprecated,
removed, or something? How SHOULD I create a simple webapp from an
archetype using m2e?
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
Selfish deeds are the shortest path to self destruction.
-- The Seven Samuari, Akira Kurosawa
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------
A language that doesn’t affect the way you think about programming is
not worth knowing.
-— Alan Perlis
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users