Koray Tugay
Koray Tugay

Reputation: 23780

How can I use jetty 9 plug in in maven?

This works fine:

<plugin>                                                     
    <groupId>org.mortbay.jetty</groupId>                     
    <artifactId>jetty-maven-plugin</artifactId>              
    <version>8.1.16.v20140903</version>                      
    <configuration>                                          
        <webApp>                                             
            <contextPath>/${project.artifactId}</contextPath>
        </webApp>                                            
        <stopKey>STOP</stopKey>                              
        <stopPort>9999</stopPort>                            
        <scanIntervalSeconds>5</scanIntervalSeconds>         
    </configuration>                                         
</plugin> 

But I need to use Servlet 3.1 so I need jetty 9. But I can not find it in maven repository. How can I acquire it? I am using IntelliJ as IDE.

Upvotes: 0

Views: 942

Answers (2)

Piotr Oktaba
Piotr Oktaba

Reputation: 775

The project has been moved to Eclipse Foundation. Now it has different groupId:

<plugin>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>9.2.3.v20140905</version>
    ...
</plugin>

Upvotes: 1

mani_nz
mani_nz

Reputation: 5592

Try including the 'version' tag in your pom dependency like,

 <dependency>
    <groupId>org.eclipse.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>9.2.3.v20140905</version>
</dependency>

And I don't know why you cant find it in maven repo. It right here,

http://mvnrepository.com/artifact/org.eclipse.jetty/jetty-maven-plugin/9.2.3.v20140905

Hope it helps!!

Upvotes: 0

Related Questions