WEB-INF/lib folder disappears when deploying on JBoss with Eclipse

I am trying to deploy a simple Seam 3 application on JBoss 7.1.1. The project uses Maven but is also a Dynamic web project so it can be run directly on my configured JBoss server. I am using Eclipse Juno for Java EE. The project structure is: - src/main/java - src/main/resources - src/main/webapp - src/test/java - src/test/resources - target - pom.xml The thing is, after I do a mvn:clean, mvn:package -> all the contents of the src/main/webapp/WEB-INF are copied to the "target/project/WEB-INF" folder. Also, there is a "lib" folder under WEB-INF as normal. The same contents appear in the project.war archive. But, after doing a "Run as..run on server" or a "Full publish" if the server is running, the whole WEB-INF/lib folder disappears from the war! I checked the exploded war in the JBoss deployments folder and everything is there, except for this folder.. If I try copying it manually, it works, but I want to have the possibility to debug and that's why I want to use the Eclipse approach. Any ideas of what is going on? Find below the pom.xml that I am using: 4.0.0 test.project test war alpha test 3.1.0.Final 5.4.0.Final 1.1.1.Final 3.3 1.0.1.Final 4.8.1 org.jboss.seam seam-bom ${seam.version} import pom org.jboss.arquillian arquillian-bom ${arquillian.version} import pom commons-lang commons-lang 2.6 commons-dbcp commons-dbcp 1.3 org.apache.openejb javaee-api 6.0-4 org.jboss.seam.international seam-international org.jboss.seam.mail seam-mail compile org.drools drools-core ${drools.version} org.drools drools-compiler ${drools.version} org.jboss.seam.security seam-security compile org.jboss.seam.persistence seam-persistence org.jboss.seam.transaction seam-transaction org.jboss.seam.faces seam-faces org.jboss.seam.faces seam-faces-api joda-time joda-time org.jboss.solder solder-impl javax.enterprise cdi-api provided org.hibernate.javax.persistence hibernate-jpa-2.0-api provided javax.validation validation-api provided org.hibernate hibernate-validator 4.0.0.GA provided org.jboss.spec.javax.faces jboss-jsf-api_2.0_spec provided org.primefaces primefaces 3.3 junit junit ${junit.version} test package vms org.apache.maven.plugins maven-eclipse-plugin org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5 org.apache.maven.plugins maven-ejb-plugin 3.0 org.apache.maven.plugins maven-compiler-plugin 2.3.2 maven-eclipse-plugin 2.8 org.jboss.tools.common.verification.verifybuilder .settings/org.maven.ide.eclipse.prefs eclipse.preferences.version=1 fullBuildGoals=process-test-resources includeModules=false resolveWorkspaceProjects=true resourceFilterGoals=process-resources resources\:testResources skipCompilerPlugin=true version=1 2.0 org.eclipse.wst.jsdt.core.jsNature org.jboss.tools.jsf.jsfnature JBossAS 2.0 maven-surefire-plugin 2.12 true distribution release org.apache.maven.plugins maven-assembly-plugin jboss-public-repository jboss-public-repository !false jboss-public-repository-group JBoss Public Maven Repository Group http://repository.jboss.org/nexus/content/groups/public true never false never prime-repo Prime Repo http://repository.primefaces.org jboss-public-repository-group JBoss Public Maven Repository Group http://repository.jboss.org/nexus/content/groups/public true never false never jbossas7 true arquillian jbossas-managed-7 org.apache.maven.plugins maven-war-plugin src/main/resources ftest arquillian org.apache.maven.plugins maven-failsafe-plugin **/ftest/*Test.java integration-test integration-test integration-test verify verify verify **Edit**: I have also tried the JBoss 7 plugin ([from here][1]) and now I can do a mvn:jboss-as:deploy. But, with no better results..WEB-INF/lib is still empty. [1]: http://docs.jboss.org/jbossas/7/plugins/maven/latest/
Please check if this question/answer helps you: [Maven dependencies not visible in WEB-INF/lib][1]. This looks a lot like the problem you're having. [1]: stackoverflow.com/questions/6083501/…

以上就是WEB-INF/lib folder disappears when deploying on JBoss with Eclipse的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏