简体   繁体   中英

maven-jetty-plugin for jetty 7.3 and forward

Where is maven-jetty-plugin for jetty 7 ?

Do you have a working pom?

Do I need another repo rather than default repo1 from maven ?

The maven-jetty-plugin was renamed to jetty-maven-plugin at version 7.0.0.pre5.

Maven coordinates for the old one: maven-jetty-plugin

Maven coordinates for the NEW one: jetty-maven-plugin

Both are available from the default maven repository.

NOTE: You need to use Maven 3 for jetty-7.5.3 and later releases.

In a Roo generated project, for Jetty 8.0, I've this in the build section of my pom.xml ( <project> <build> <plugins> <plugin> )

<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>8.0.1.v20110908</version>
    <configuration>
        <webAppConfig>
            <contextPath>/${project.name}</contextPath>
        </webAppConfig>
    </configuration>
</plugin>

I guess that other versions would work too. If it doesn't work, here is my full repository list. Maybe you can identify which one does the trick adding one at a time and share us back...

<repositories>
    <repository>
        <id>spring-maven-release</id>
        <name>Spring Maven Release Repository</name>
        <url>http://maven.springframework.org/release</url>
    </repository>
    <repository>
        <id>spring-maven-milestone</id>
        <name>Spring Maven Milestone Repository</name>
        <url>http://maven.springframework.org/milestone</url>
    </repository>
    <repository>
        <id>spring-roo-repository</id>
        <name>Spring Roo Repository</name>
        <url>http://spring-roo-repository.springsource.org/release</url>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>spring-maven-release</id>
        <name>Spring Maven Release Repository</name>
        <url>http://maven.springframework.org/release</url>
    </pluginRepository>
    <pluginRepository>
        <id>spring-maven-milestone</id>
        <name>Spring Maven Milestone Repository</name>
        <url>http://maven.springframework.org/milestone</url>
    </pluginRepository>
    <pluginRepository>
        <id>spring-roo-repository</id>
        <name>Spring Roo Repository</name>
        <url>http://spring-roo-repository.springsource.org/release</url>
    </pluginRepository>
</pluginRepositories>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM