[英]MyEclipse does not deploy jars into WEB-INF/lib directory
I import an existing Maven project into Eclipse,and i deployed it into tomcat.When I took a glance at the folder /WEB-INF/lib I have found no JAR files. 我将现有的Maven项目导入Eclipse,并将其部署到tomcat。当我浏览/ WEB-INF / lib文件夹时,没有发现JAR文件。
pom.xml 的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bookshop.main</groupId>
<artifactId>BookShop</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<properties>
<spring.version>4.0.5.RELEASE</spring.version>
<junit.version>4.11</junit.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-websocket</artifactId>
<version>4.0.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
<version>4.0.1.RELEASE</version>
</dependency>
</dependencies>
<build>
<finalName>BookShop</finalName>
</build>
</project>
quote "eclipse project right click -> Properties -> Deployment Assembly -> Add -> Java Build Path",it's not help. 引用“ Eclipse项目右键单击->属性->部署程序集->添加-> Java构建路径”,这没有帮助。
Do you have an idea?Thanks. 你有个主意吗?
btw:i also got the following error messages when i redeploy it: btw:我重新部署它时还收到以下错误消息:
could not be redeployed because it could not be completely removed in the undeployment phase. 无法重新部署,因为无法在取消部署阶段将其完全删除。
the Error is: 错误是:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
I don't see such an artifact in a maven repository.Sorry. 我在Maven存储库中没有看到这样的工件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.