java - maven-archetype-webapp directory structure using Eclipse Kepler -


until using eclipse indigo , m2eclipse. when wanted create new project chose new maven project > skip archetype selection > gave names > finish.

this result in directory structure : src/main/java src/main/resources src/test/java src/test/resources

and directory src/main/webapp including meta-inf --manifest.mf web-inf --web.xml

recently (yesterday) switched eclipse kepler. maven integrated, didn't download m2eclipse wtp.

when tried new project > maven project > skip archetype > naming > war packaging > finish , got correct structure in src directory src/main/java src/main/resources src/test/java src/test/resources

but directory webapp, empty! meta-inf , web-inf did not exist, no web.xml also. read using maven-archetype-webapp, got error: "could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:release failed resolve version org.apache.maven.archetypes:maven-archetype-webapp:pom:release: not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (c:\users\stef.m2\repository)"

with article failed resolve version org.apache.maven.archetypes

i found out had add remote maven catalog. did , able create project using maven-archetype-webapp version 1.0 . problem directory structure in new project was:

java resources --src/main/resources

and src/main/webapp --index.jsp --web-inf |--web.xml

i expected(and wanted) old directory structure , src/main/java src/main/resources src/test/java src/test/resources

and directory src/main/webapp including meta-inf --manifest.mf web-inf --web.xml

is there step missinng? changed in archetypes? maybe stupid question, research returned little results. please feel free comment can me , other same issue, in track

thanks!

after struggling going on archetype , reason didn't create usual structure...i decided -as productivity workaround- create new maven project , skip archetype creation. after copied old project directories of meta-inf , web-inf , working fine. suggest if reaches point same in order going , not waste anymore time.

if knows solution more welcome read :)


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -