Can maven treat WEB-INF\lib the way eclipse (and m2e) does? -



Can maven treat WEB-INF\lib the way eclipse (and m2e) does? -

i have servlet/jsp web project runs fine on eclipse , exported war fine (once clean is). mavenized project deleting of dependencies web-inf\lib folder except homebrew jar (the output of project in workspace). when run package maven goal messages missing classes jar:

[error] compilation error : [info] ------------------------------------------------------------- #..... notice comes custom jar [error] /c:/path/dataservlet.java:[3,30] bundle xxx.java.helpers not exist

now has been asked before , rigorous solution appears to create local repo: can add together jars maven 2 build classpath without installing them? (nb: @ maven 3).

i avoid - there way maven stuff jar web-inf\lib in war ?

solutions utilize maven plugin cp contents of web-inf\lib in war welcome - although have feeling there should solution takes business relationship "special" nature of folder.

observations:

alt+f5 removes line:

<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>

which corresponds "web app libraries" in java build path. not maven refuses take business relationship web-inf\lib - breaks build path of eclipse completely.

related:

maven: how include jars in eclipse, not available in repository? uses maven eclipse plugin : update classpath eclipse user library via maven eclipse plugin - not compatible m2e how m2e eclipse plugin interact eclipse? - apparently m2e checks pom calls eclipse builders (hence .classpath read) eclipse maven-enabled web app references workspace projects, not deployed when running tomcat server deploying maven project dependencies tomcat or jboss running within eclipse

did add together jar web-inf\lib dependency this:

<dependency> <groupid>somegroupid</groupid> <artifactid>someartifactid</artifactid> <version>1.0.0</version> <scope>system</scope> <systempath>${basedir}/src/main/webapp/web-inf/lib/homebrew jar</systempath> </dependency>

eclipse maven maven-3 m2e m2e-wtp

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -