You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2010/03/04 12:54:28 UTC
mvn jetty plugin not compatible with wicket
Apparently the mvn jetty plugin doesn't work if your pom already has a dependency on jetty.
I was curious if anybody else has a mechanism for stoping and starging a jetty instance from mvn.
D/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: mvn jetty plugin not compatible with wicket
Posted by vineet semwal <vi...@gmail.com>.
sorry ignore my post ..
On Thu, Mar 4, 2010 at 6:51 PM, vineet semwal <vi...@gmail.com>wrote:
> you have to edit your settings.xml ,
> take a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
>
>
> On Thu, Mar 4, 2010 at 5:24 PM, Douglas Ferguson <
> douglas@douglasferguson.us> wrote:
>
>> Apparently the mvn jetty plugin doesn't work if your pom already has a
>> dependency on jetty.
>>
>> I was curious if anybody else has a mechanism for stoping and starging a
>> jetty instance from mvn.
>>
>> D/
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> --
> regards,
> Vineet Semwal
>
--
regards,
Vineet Semwal
Re: mvn jetty plugin not compatible with wicket
Posted by vineet semwal <vi...@gmail.com>.
you have to edit your settings.xml ,
take a look at http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
On Thu, Mar 4, 2010 at 5:24 PM, Douglas Ferguson <douglas@douglasferguson.us
> wrote:
> Apparently the mvn jetty plugin doesn't work if your pom already has a
> dependency on jetty.
>
> I was curious if anybody else has a mechanism for stoping and starging a
> jetty instance from mvn.
>
> D/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
regards,
Vineet Semwal
Re: mvn jetty plugin not compatible with wicket
Posted by Jim Pinkham <pi...@gmail.com>.
This works for me, although if anyone can think of a better way to get the
filtered version of jetty-xml during mvn jetty:run, that would be cool -
seems a bit odd the way I've got it now:
<build>
<resources>
<resource>
<filtering>false</filtering>
<directory>src/main/resources</directory>
</resource>
<resource>
<filtering>true</filtering>
<directory>src/main/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<testResources>
<testResource>
<filtering>true</filtering>
<directory>src/test/java</directory>
<includes>
<include>**</include>
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<jettyEnvXml>${basedir}/target/${project.artifactId}-${version}/WEB-INF/jetty-env.xml</jettyEnvXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<downloadSources>true</downloadSources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<webResource>
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
<includes>
<include>jetty-env.xml</include>
<include>applicationContext.xml</include>
</includes>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
</webResource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
(Profile part not shown sets up the filters)
Hope this helps,
-- Jim P.
On Thu, Mar 4, 2010 at 2:15 PM, Douglas Ferguson <douglas@douglasferguson.us
> wrote:
> Well... Jetty starts but the wicket filter doesn't work.
>
> D/
>
> On Mar 4, 2010, at 6:08 AM, Martin Funk wrote:
>
> > it doesn't?
> >
> > svn checkout
> http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.7
> > cd wicket-1.4.7/
> > mvn install
> > cd wicket-quickstart/
> > mvn jetty:run
> >
> >
> > works fine on this machine.
> >
> > mf
> >
> > 2010/3/4 Douglas Ferguson <do...@douglasferguson.us>
> >
> >> Apparently the mvn jetty plugin doesn't work if your pom already has a
> >> dependency on jetty.
> >>
> >> I was curious if anybody else has a mechanism for stoping and starging a
> >> jetty instance from mvn.
> >>
> >> D/
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: mvn jetty plugin not compatible with wicket
Posted by Douglas Ferguson <do...@douglasferguson.us>.
Well... Jetty starts but the wicket filter doesn't work.
D/
On Mar 4, 2010, at 6:08 AM, Martin Funk wrote:
> it doesn't?
>
> svn checkout http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.7
> cd wicket-1.4.7/
> mvn install
> cd wicket-quickstart/
> mvn jetty:run
>
>
> works fine on this machine.
>
> mf
>
> 2010/3/4 Douglas Ferguson <do...@douglasferguson.us>
>
>> Apparently the mvn jetty plugin doesn't work if your pom already has a
>> dependency on jetty.
>>
>> I was curious if anybody else has a mechanism for stoping and starging a
>> jetty instance from mvn.
>>
>> D/
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: mvn jetty plugin not compatible with wicket
Posted by Martin Funk <ma...@googlemail.com>.
it doesn't?
svn checkout http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.7
cd wicket-1.4.7/
mvn install
cd wicket-quickstart/
mvn jetty:run
works fine on this machine.
mf
2010/3/4 Douglas Ferguson <do...@douglasferguson.us>
> Apparently the mvn jetty plugin doesn't work if your pom already has a
> dependency on jetty.
>
> I was curious if anybody else has a mechanism for stoping and starging a
> jetty instance from mvn.
>
> D/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>