Cargo + maven + jetty-env.xml

View: New views
5 Messages — Rating Filter:   Alert me  

Cargo + maven + jetty-env.xml

by nhajratw :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Folks -- I'm looking for a way to include a jetty-env.xml file in  
my maven/cargo configuration.

I can do it with the regular jetty plugin via:

<plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.6rc1</version>
        <configuration>
                <contextPath>/caps2</contextPath>
                <jettyEnvXml>
                        ${basedir}/../config/jetty/jetty-env.xml
                </jettyEnvXml>
        </configuration>
</plugin>


However, there doesn't seem to be a configuration or property setting  
to do this with cargo.

Currently, I have:

<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <executions>
                <execution>
                        <id>start-container</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                                <goal>start</goal>
                                <goal>deploy</goal>
                        </goals>
                </execution>
                <execution>
                        <id>stop-container</id>
                        <phase>post-integration-test</phase>
                        <goals>
                                <goal>stop</goal>
                        </goals>
                </execution>
        </executions>
        <configuration>
                <container>
                        <containerId>jetty6x</containerId>
                        <type>embedded</type>
                </container>
        </configuration>
</plugin>

Thanks!

---
Nayan Hajratwala
http://www.chikli.com  Chikli Consulting LLC







---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: Cargo + maven + jetty-env.xml

by Binil Thomas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Was anybody able to figure out a solution for this?

Jan Bartel suggests a workaround at http://www.nabble.com/Jetty-6x-Problem-td8059004.html#a8074899, but that did not work for me. I am using Cargo 1.0-SNAPSHOT with Jetty 6.1.11.

Thanks,
Binil

nhajratw wrote:
Hi Folks -- I'm looking for a way to include a jetty-env.xml file in  
my maven/cargo configuration.

I can do it with the regular jetty plugin via:

<plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.6rc1</version>
        <configuration>
                <contextPath>/caps2</contextPath>
                <jettyEnvXml>
                        ${basedir}/../config/jetty/jetty-env.xml
                </jettyEnvXml>
        </configuration>
</plugin>


However, there doesn't seem to be a configuration or property setting  
to do this with cargo.

Currently, I have:

<plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <executions>
                <execution>
                        <id>start-container</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                                <goal>start</goal>
                                <goal>deploy</goal>
                        </goals>
                </execution>
                <execution>
                        <id>stop-container</id>
                        <phase>post-integration-test</phase>
                        <goals>
                                <goal>stop</goal>
                        </goals>
                </execution>
        </executions>
        <configuration>
                <container>
                        <containerId>jetty6x</containerId>
                        <type>embedded</type>
                </container>
        </configuration>
</plugin>

Thanks!

---
Nayan Hajratwala
http://www.chikli.com  Chikli Consulting LLC







---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Re: Cargo + maven + jetty-env.xml

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, 2008-08-15 at 16:46 -0700, Binil Thomas wrote:
> Was anybody able to figure out a solution for this?

the embedded jetty dependency resolution thing is a bit messed up right
now and I believe its all hardcoded to be specific dependencies with
specific versions.

See http://jira.codehaus.org/browse/CARGO-571

I don't believe it would be too hard to fix this issue, we just need
someone to take up the task.

> Jan Bartel suggests a workaround at
> http://www.nabble.com/Jetty-6x-Problem-td8059004.html#a8074899, but that did
> not work for me. I am using Cargo 1.0-SNAPSHOT with Jetty 6.1.11.
>
> Thanks,
> Binil
>
>
> nhajratw wrote:
> >
> > Hi Folks -- I'm looking for a way to include a jetty-env.xml file in  
> > my maven/cargo configuration.
> >
> > I can do it with the regular jetty plugin via:
> >
> > <plugin>
> > <groupId>org.mortbay.jetty</groupId>
> > <artifactId>maven-jetty-plugin</artifactId>
> > <version>6.1.6rc1</version>
> > <configuration>
> > <contextPath>/caps2</contextPath>
> > <jettyEnvXml>
> > ${basedir}/../config/jetty/jetty-env.xml
> > </jettyEnvXml>
> > </configuration>
> > </plugin>
> >
> >
> > However, there doesn't seem to be a configuration or property setting  
> > to do this with cargo.
> >
> > Currently, I have:
> >
> > <plugin>
> > <groupId>org.codehaus.cargo</groupId>
> > <artifactId>cargo-maven2-plugin</artifactId>
> > <executions>
> > <execution>
> > <id>start-container</id>
> > <phase>pre-integration-test</phase>
> > <goals>
> > <goal>start</goal>
> > <goal>deploy</goal>
> > </goals>
> > </execution>
> > <execution>
> > <id>stop-container</id>
> > <phase>post-integration-test</phase>
> > <goals>
> > <goal>stop</goal>
> > </goals>
> > </execution>
> > </executions>
> > <configuration>
> > <container>
> > <containerId>jetty6x</containerId>
> > <type>embedded</type>
> > </container>
> > </configuration>
> > </plugin>
> >
> > Thanks!
> >
> > ---
> > Nayan Hajratwala
> > http://www.chikli.com  Chikli Consulting LLC
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Cargo + maven + jetty-env.xml

by Sahil S :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Just checking if we have a resolution on this. There is no update on http://jira.codehaus.org/browse/CARGO-571 after March '09.

Thanks.

Matt Wringe wrote:
On Fri, 2008-08-15 at 16:46 -0700, Binil Thomas wrote:
> Was anybody able to figure out a solution for this?

the embedded jetty dependency resolution thing is a bit messed up right
now and I believe its all hardcoded to be specific dependencies with
specific versions.

See http://jira.codehaus.org/browse/CARGO-571

I don't believe it would be too hard to fix this issue, we just need
someone to take up the task.

> Jan Bartel suggests a workaround at
> http://www.nabble.com/Jetty-6x-Problem-td8059004.html#a8074899, but that did
> not work for me. I am using Cargo 1.0-SNAPSHOT with Jetty 6.1.11.
>
> Thanks,
> Binil
>
>
> nhajratw wrote:
> >
> > Hi Folks -- I'm looking for a way to include a jetty-env.xml file in  
> > my maven/cargo configuration.
> >
> > I can do it with the regular jetty plugin via:
> >
> > <plugin>
> > <groupId>org.mortbay.jetty</groupId>
> > <artifactId>maven-jetty-plugin</artifactId>
> > <version>6.1.6rc1</version>
> > <configuration>
> > <contextPath>/caps2</contextPath>
> > <jettyEnvXml>
> > ${basedir}/../config/jetty/jetty-env.xml
> > </jettyEnvXml>
> > </configuration>
> > </plugin>
> >
> >
> > However, there doesn't seem to be a configuration or property setting  
> > to do this with cargo.
> >
> > Currently, I have:
> >
> > <plugin>
> > <groupId>org.codehaus.cargo</groupId>
> > <artifactId>cargo-maven2-plugin</artifactId>
> > <executions>
> > <execution>
> > <id>start-container</id>
> > <phase>pre-integration-test</phase>
> > <goals>
> > <goal>start</goal>
> > <goal>deploy</goal>
> > </goals>
> > </execution>
> > <execution>
> > <id>stop-container</id>
> > <phase>post-integration-test</phase>
> > <goals>
> > <goal>stop</goal>
> > </goals>
> > </execution>
> > </executions>
> > <configuration>
> > <container>
> > <containerId>jetty6x</containerId>
> > <type>embedded</type>
> > </container>
> > </configuration>
> > </plugin>
> >
> > Thanks!
> >
> > ---
> > Nayan Hajratwala
> > http://www.chikli.com  Chikli Consulting LLC
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Re: Cargo + maven + jetty-env.xml

by Matt Wringe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 2009-07-19 at 02:06 -0700, linuxdev wrote:
> Hi,
>
> Just checking if we have a resolution on this. There is no update on
> http://jira.codehaus.org/browse/CARGO-571 after March '09.

There hasn't been any progress on this and I don't think anyone is
working on it right now.

If someone wants to take a look at it, patches are welcome :)

>
> Matt Wringe wrote:
> >
> >
> > On Fri, 2008-08-15 at 16:46 -0700, Binil Thomas wrote:
> >> Was anybody able to figure out a solution for this?
> >
> > the embedded jetty dependency resolution thing is a bit messed up right
> > now and I believe its all hardcoded to be specific dependencies with
> > specific versions.
> >
> > See http://jira.codehaus.org/browse/CARGO-571
> >
> > I don't believe it would be too hard to fix this issue, we just need
> > someone to take up the task.
> >
> >> Jan Bartel suggests a workaround at
> >> http://www.nabble.com/Jetty-6x-Problem-td8059004.html#a8074899, but that
> >> did
> >> not work for me. I am using Cargo 1.0-SNAPSHOT with Jetty 6.1.11.
> >>
> >> Thanks,
> >> Binil
> >>
> >>
> >> nhajratw wrote:
> >> >
> >> > Hi Folks -- I'm looking for a way to include a jetty-env.xml file in  
> >> > my maven/cargo configuration.
> >> >
> >> > I can do it with the regular jetty plugin via:
> >> >
> >> > <plugin>
> >> > <groupId>org.mortbay.jetty</groupId>
> >> > <artifactId>maven-jetty-plugin</artifactId>
> >> > <version>6.1.6rc1</version>
> >> > <configuration>
> >> > <contextPath>/caps2</contextPath>
> >> > <jettyEnvXml>
> >> > ${basedir}/../config/jetty/jetty-env.xml
> >> > </jettyEnvXml>
> >> > </configuration>
> >> > </plugin>
> >> >
> >> >
> >> > However, there doesn't seem to be a configuration or property setting  
> >> > to do this with cargo.
> >> >
> >> > Currently, I have:
> >> >
> >> > <plugin>
> >> > <groupId>org.codehaus.cargo</groupId>
> >> > <artifactId>cargo-maven2-plugin</artifactId>
> >> > <executions>
> >> > <execution>
> >> > <id>start-container</id>
> >> > <phase>pre-integration-test</phase>
> >> > <goals>
> >> > <goal>start</goal>
> >> > <goal>deploy</goal>
> >> > </goals>
> >> > </execution>
> >> > <execution>
> >> > <id>stop-container</id>
> >> > <phase>post-integration-test</phase>
> >> > <goals>
> >> > <goal>stop</goal>
> >> > </goals>
> >> > </execution>
> >> > </executions>
> >> > <configuration>
> >> > <container>
> >> > <containerId>jetty6x</containerId>
> >> > <type>embedded</type>
> >> > </container>
> >> > </configuration>
> >> > </plugin>
> >> >
> >> > Thanks!
> >> >
> >> > ---
> >> > Nayan Hajratwala
> >> > http://www.chikli.com  Chikli Consulting LLC
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe from this list please visit:
> >> >
> >> >     http://xircles.codehaus.org/manage_email
> >> >
> >> >
> >> >
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
> >
> >
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email