Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Dumb newbie archetype question

Thanks! Wish I'd paid more attention to this sooner. Wouldn't have wasted so many hours. Failure to get this archetype right was causing the many problems I've had yesterday and today. With the fix, I now have an app that at least loads.


On 09/13/2011 04:39 PM, Igor Fedorenko wrote:
You may be seeing [1], which should be fixed in Indigo SR1. You can get
fixed m2e version as part of Indigo "for java developers" SR1 RC build
or install it from m2e 1.0.x milestone repository [2]



On 11-09-13 5: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:

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

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:

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.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?


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



Jason van Zyl
Founder, Apache Maven

Selfish deeds are the shortest path to self destruction.

-- The Seven Samuari, Akira Kurosawa



Jason van Zyl
Founder, Apache Maven

A language that doesn’t affect the way you think about programming is
not worth knowing.

-— Alan Perlis

m2e-users mailing list

m2e-users mailing list
m2e-users mailing list

Back to the top