用于org.mortbay.jetty的build.plugins.plugin.version':缺少jetty-maven-plugin

时间:2016-07-01 20:26:33

标签: maven

我使用了“使用Spring构建Restufl WEb服务”第2章项目。 我在eclipse中导入了maven项目,我进行了maven测试并得到以下错误:

[警告]在构建com.packtpub.rest-with-spring的有效模型时遇到了一些问题:rest-with-spring-all:war:1.0.0-SNAPSHOT [警告] org.mortbay.jetty的'build.plugins.plugin.version':缺少jetty-maven-plugin。 @ com.packtpub.rest-with-spring:rest-with-spring-all:[unknown-version],C:\ workspace_buildingRest \ B04788_02_code \ all \ pom.xml,第21行,第21列 [警告] [警告]强烈建议修复这些问题,因为它们会威胁到构建的稳定性。

这是我的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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
    <groupId>com.packtpub.rest-with-spring</groupId>
    <artifactId>rest-with-spring</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>rest-with-spring-all</artifactId>
<packaging>war</packaging>
<dependencies>
    <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>rest-with-spring-billing</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <classifier>classes</classifier>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-maven-plugin</artifactId>
            <configuration>
                <useTestScope>true</useTestScope>
                <stopPort>8005</stopPort>
                <stopKey>DIE!</stopKey>
                <systemProperties>
                    <systemProperty>
                        <name>jetty.port</name>
                        <value>8080</value>
                    </systemProperty>
                </systemProperties>
            </configuration>
        </plugin>
    </plugins>
</build>

任何帮助或提示都是非常明确的。

0 个答案:

没有答案