Maven Tutorial 05 - archetype HELP

262 views
Skip to first unread message

Jonathan Sandusky

unread,
Jul 3, 2013, 8:21:27 PM7/3/13
to java-bra...@googlegroups.com
When I run >> mvn archetype:generate

I do not see:
     269: remote -> webapp - j2ee14 (-)

I searched the whole repository that was generated and could not find, webapp j2ee14.

Do you have a simple command that genearates a webapp without searching the repo?

Thanks

Jonathan Sandusky

unread,
Jul 3, 2013, 8:27:43 PM7/3/13
to java-bra...@googlegroups.com
I found a possible fix. Just use this repo archetype.  It seems to be a copy of the one in the video.

493: remote -> org.codehaus.mojo.archetypes:webapp-j2ee14 (-)

Ashok Madishetti

unread,
Jul 5, 2013, 7:54:45 PM7/5/13
to java-bra...@googlegroups.com
You can use the filter to find the required webapp number. For example, if you would like to see the webapp-j2ee, below command helps you to filter the repository startiing with webapp-j2ee.

mvn archetype:generate -Dfilter=webapp-j2ee

Hope this helps you.

Koushik Kothagal

unread,
Jul 22, 2013, 5:51:48 PM7/22/13
to java-bra...@googlegroups.com
The numbers aren't constant. They keep changing between versions.

The best way to narrow down archetypes is to use filters as Ashok mentioned. Another no-fuss approach is to use Eclipse's Maven plugin (m2eclipse). The "New Maven Project" wizard lets you type in filters, search and scroll in Eclipse itself.
Message has been deleted

jal...@gmail.com

unread,
Jul 27, 2013, 9:25:38 AM7/27/13
to java-bra...@googlegroups.com
Not sure if my prior question reached you. Do you mean that by using filters we will be able to use the same archetypes as you're using in the tutorial? Thanks, J
Reply all
Reply to author
Forward
0 new messages