Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Urgent: Problems with Maven Jetty Plugin

jetty-6.1.19 should be the latest stable version in jetty6....

but your saying that hardcoding that version in your plugin
declaration is downloading jetty7 artifacts?

jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx



On Wed, Jul 22, 2009 at 15:39, Marco Tedone<marco.tedone@xxxxxxxxxxxxxx> wrote:
> Dear all,
>
> Since last week I was happily running my project using the Maven Jetty
> Plugin. I had the following configuration:
>
> <build>
> ...
>        <dependency>
>                <groupId>org.mortbay.jetty</groupId>
>                <artifactId>jetty</artifactId>
>                <version>6.0.0rc4</version>
>                <scope>provided</scope>
>        </dependency>
> </build>
>
> ...
>
> <profile>
>                        <id>jetty-test</id>
>                        <build>
>                                <plugins>
>                                        <plugin>
>
> <groupId>org.mortbay.jetty</groupId>
>
> <artifactId>maven-jetty-plugin</artifactId>
>
>                                                <configuration>
>
> <scanIntervalSeconds>10</scanIntervalSeconds>
>
>
>                                                        <!-- configure the
> container                 -->
>
> <jettyConfig>src/test/resources/jetty.xml</jettyConfig>
>
>                                                        <!-- configure the
> container-->
>                                                        <connectors>
>                                                                <connector
> implementation="org.mortbay.jetty.nio.SelectChannelConnector">
>
> <port>8787</port>
>
> <maxIdleTime>60000</maxIdleTime>
>                                                                </connector>
>                                                        </connectors>
>
>                                                        <userRealms>
>                                                                <userRealm
> implementation="org.mortbay.jetty.security.HashUserRealm">
>
> <name>fido-secure</name>
>
> <config>src/test/resources/realm.properties</config>
>                                                                </userRealm>
>                                                        </userRealms>
>
>                                                </configuration>
>
>                                        </plugin>
>                                </plugins>
>                        </build>
> </profile>
>
> Everything was working brilliantly. I launched mvn jetty:run -P jetty-test
> and Jetty started on port 8787 with the application context fido-web.
> Yesterday I re-launched the application and I saw Maven downloading loads of
> org.eclipse.jetty.* stuff, especially for version 7.0.0.M4. Since then the
> Maven Jetty Plugin doesn't work any more. Please note that even if I
> indicate version 6.1.10 (the stable one) when running Jetty it still
> downloads version 7.0.0.M4.
>
> I guess that the default maven-jetty-plugin on the repository redirects to
> the new Jetty 7 hosted at Eclipse. The problem is that when running the
> plugin the following don't work anymore:
>
> 1) The context is not recognised
> 2) The port is not recognised
> 3) The Security realm is not recognised
>
> I have also tried to run the instructions at the following page:
> http://wiki.eclipse.org/Jetty/Starting/Upgrade_from_Jetty_6_to_Jetty_7
> (followed the suggestions, which indicated to use version 7.0.0.M1) but I
> couldn't find that version on the repository.
>
> I'm documenting my MSc project (where I'm using the Maven Jetty Plugin) and
> I would need to get Jetty up and running pronto. Could someone who has
> fiddled with the new version of the Maven Jetty Plugin tell me how to
> configure it so that it works? Alternatively, could you tell me how to force
> Maven to use the stable version 6.1.10?
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>

Back to the top