You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Wim Deblauwe <wi...@gmail.com> on 2008/10/23 18:12:56 UTC

Dependencies and cargo plugin?

Hi,

It seems that I need to add all my dependencies in my pom.xml 2 times when I
use a war project with cargo. Is there a way to avoid this? This is very
annoying to try to find out all the dependencies (and their transitive
dependencies manually) and have to add those to the <dependencies/> section
of the cargo plugin. According to the documentation (
http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars)
this is only needed if you want to share between web projects, but I only
have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions.

This is my pom.xml (partially):

    <packaging>war</packaging>
    <build>
        <finalName>server-web</finalName>
        <plugins>
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <version>0.3</version>
                <configuration>
                    <container>
                        <containerId>tomcat5x</containerId>
                        <zipUrlInstaller>
                            <url>
http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
</url>
                            <installDir>${installDir}</installDir>
                        </zipUrlInstaller>
                        <systemProperties>

<java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
                        </systemProperties>
                        <dependencies>
                            LONG LIST OF DEPENDENCIES HERE


regards,

Wim

Re: Dependencies and cargo plugin?

Posted by Wim Deblauwe <wi...@gmail.com>.
It works!

It would be good if they would update the documentation to let this know.
There is no sign of any of those alpha or beta versions on the cargo
website.

regards & thank you again, you just made me very happy :)

Wim

2008/10/24 Nick Stolwijk <ni...@gmail.com>

> It can be found here:
> http://repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin
> beta 1 is also available.
>
> Hth,
>
> Nick Stolwijk
> ~Java Developer~
>
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
>
>
>
> On Fri, Oct 24, 2008 at 11:12 AM, Wim Deblauwe <wi...@gmail.com>
> wrote:
> > In what repo is that version?
> >
> > 2008/10/24 Marc Schneider <ma...@gmail.com>
> >
> >> Hello,
> >>
> >> I also use the cargo-maven2-plugin but don't need to specify all these
> >> dependencies.
> >>
> >> Btw I use cargo 1.0-alpha6.
> >>
> >> Here is my plugin configuration :
> >>
> >> <plugin>
> >>        <groupId>org.codehaus.cargo</groupId>
> >>        <artifactId>cargo-maven2-plugin</artifactId>
> >>         <configuration>
> >>                <wait>false</wait>
> >>                <container>
> >>                        <containerId>tomcat5x</containerId>
> >>                        <home>${tomcat.local.home}</home>
> >>                </container>
> >>                <configuration>
> >>                        <properties>
> >>                                <cargo.logging>high</cargo.logging>
> >>
> >>  <cargo.servlet.port>${servlet.port}</cargo.servlet.port>
> >>                        </properties>
> >>                </configuration>
> >>        </configuration>
> >>        <executions>
> >>                <execution>
> >>                        <id>start-container</id>
> >>                        <phase>pre-integration-test</phase>
> >>                        <goals>
> >>                                <goal>start</goal>
> >>                        </goals>
> >>                </execution>
> >>                <execution>
> >>                        <id>stop-container</id>
> >>                        <phase>post-integration-test</phase>
> >>                        <goals>
> >>                                <goal>stop</goal>
> >>                        </goals>
> >>                </execution>
> >>        </executions>
> >> </plugin>
> >>
> >> Marc.
> >>
> >>
> >> Wim Deblauwe a écrit :
> >> > Hi,
> >> >
> >> > It seems that I need to add all my dependencies in my pom.xml 2 times
> >> when I
> >> > use a war project with cargo. Is there a way to avoid this? This is
> very
> >> > annoying to try to find out all the dependencies (and their transitive
> >> > dependencies manually) and have to add those to the <dependencies/>
> >> section
> >> > of the cargo plugin. According to the documentation (
> >> >
> >>
> http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars
> >> )
> >> > this is only needed if you want to share between web projects, but I
> only
> >> > have 1 and I still have to do it, otherwise I get
> >> ClassNotFoundExceptions.
> >> >
> >> > This is my pom.xml (partially):
> >> >
> >> >     <packaging>war</packaging>
> >> >     <build>
> >> >         <finalName>server-web</finalName>
> >> >         <plugins>
> >> >             <plugin>
> >> >                 <groupId>org.codehaus.cargo</groupId>
> >> >                 <artifactId>cargo-maven2-plugin</artifactId>
> >> >                 <version>0.3</version>
> >> >                 <configuration>
> >> >                     <container>
> >> >                         <containerId>tomcat5x</containerId>
> >> >                         <zipUrlInstaller>
> >> >                             <url>
> >> >
> >>
> http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
> >> > </url>
> >> >                             <installDir>${installDir}</installDir>
> >> >                         </zipUrlInstaller>
> >> >                         <systemProperties>
> >> >
> >> > <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
> >> >                         </systemProperties>
> >> >                         <dependencies>
> >> >                             LONG LIST OF DEPENDENCIES HERE
> >> >
> >> >
> >> > regards,
> >> >
> >> > Wim
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
>

Re: Dependencies and cargo plugin?

Posted by Nick Stolwijk <ni...@gmail.com>.
It can be found here:
http://repository.codehaus.org/org/codehaus/cargo/cargo-maven2-plugin
beta 1 is also available.

Hth,

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Fri, Oct 24, 2008 at 11:12 AM, Wim Deblauwe <wi...@gmail.com> wrote:
> In what repo is that version?
>
> 2008/10/24 Marc Schneider <ma...@gmail.com>
>
>> Hello,
>>
>> I also use the cargo-maven2-plugin but don't need to specify all these
>> dependencies.
>>
>> Btw I use cargo 1.0-alpha6.
>>
>> Here is my plugin configuration :
>>
>> <plugin>
>>        <groupId>org.codehaus.cargo</groupId>
>>        <artifactId>cargo-maven2-plugin</artifactId>
>>         <configuration>
>>                <wait>false</wait>
>>                <container>
>>                        <containerId>tomcat5x</containerId>
>>                        <home>${tomcat.local.home}</home>
>>                </container>
>>                <configuration>
>>                        <properties>
>>                                <cargo.logging>high</cargo.logging>
>>
>>  <cargo.servlet.port>${servlet.port}</cargo.servlet.port>
>>                        </properties>
>>                </configuration>
>>        </configuration>
>>        <executions>
>>                <execution>
>>                        <id>start-container</id>
>>                        <phase>pre-integration-test</phase>
>>                        <goals>
>>                                <goal>start</goal>
>>                        </goals>
>>                </execution>
>>                <execution>
>>                        <id>stop-container</id>
>>                        <phase>post-integration-test</phase>
>>                        <goals>
>>                                <goal>stop</goal>
>>                        </goals>
>>                </execution>
>>        </executions>
>> </plugin>
>>
>> Marc.
>>
>>
>> Wim Deblauwe a écrit :
>> > Hi,
>> >
>> > It seems that I need to add all my dependencies in my pom.xml 2 times
>> when I
>> > use a war project with cargo. Is there a way to avoid this? This is very
>> > annoying to try to find out all the dependencies (and their transitive
>> > dependencies manually) and have to add those to the <dependencies/>
>> section
>> > of the cargo plugin. According to the documentation (
>> >
>> http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars
>> )
>> > this is only needed if you want to share between web projects, but I only
>> > have 1 and I still have to do it, otherwise I get
>> ClassNotFoundExceptions.
>> >
>> > This is my pom.xml (partially):
>> >
>> >     <packaging>war</packaging>
>> >     <build>
>> >         <finalName>server-web</finalName>
>> >         <plugins>
>> >             <plugin>
>> >                 <groupId>org.codehaus.cargo</groupId>
>> >                 <artifactId>cargo-maven2-plugin</artifactId>
>> >                 <version>0.3</version>
>> >                 <configuration>
>> >                     <container>
>> >                         <containerId>tomcat5x</containerId>
>> >                         <zipUrlInstaller>
>> >                             <url>
>> >
>> http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
>> > </url>
>> >                             <installDir>${installDir}</installDir>
>> >                         </zipUrlInstaller>
>> >                         <systemProperties>
>> >
>> > <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
>> >                         </systemProperties>
>> >                         <dependencies>
>> >                             LONG LIST OF DEPENDENCIES HERE
>> >
>> >
>> > regards,
>> >
>> > Wim
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

Re: Dependencies and cargo plugin?

Posted by Marc Schneider <ma...@gmail.com>.
See here : http://repo1.maven.org/maven2/org/codehaus/cargo/cargo-maven-plugin/

Wim Deblauwe a écrit :
> In what repo is that version?
> 
> 2008/10/24 Marc Schneider <ma...@gmail.com>
> 
>> Hello,
>>
>> I also use the cargo-maven2-plugin but don't need to specify all these
>> dependencies.
>>
>> Btw I use cargo 1.0-alpha6.
>>
>> Here is my plugin configuration :
>>
>> <plugin>
>>        <groupId>org.codehaus.cargo</groupId>
>>        <artifactId>cargo-maven2-plugin</artifactId>
>>         <configuration>
>>                <wait>false</wait>
>>                <container>
>>                        <containerId>tomcat5x</containerId>
>>                        <home>${tomcat.local.home}</home>
>>                </container>
>>                <configuration>
>>                        <properties>
>>                                <cargo.logging>high</cargo.logging>
>>
>>  <cargo.servlet.port>${servlet.port}</cargo.servlet.port>
>>                        </properties>
>>                </configuration>
>>        </configuration>
>>        <executions>
>>                <execution>
>>                        <id>start-container</id>
>>                        <phase>pre-integration-test</phase>
>>                        <goals>
>>                                <goal>start</goal>
>>                        </goals>
>>                </execution>
>>                <execution>
>>                        <id>stop-container</id>
>>                        <phase>post-integration-test</phase>
>>                        <goals>
>>                                <goal>stop</goal>
>>                        </goals>
>>                </execution>
>>        </executions>
>> </plugin>
>>
>> Marc.
>>
>>
>> Wim Deblauwe a écrit :
>>> Hi,
>>>
>>> It seems that I need to add all my dependencies in my pom.xml 2 times
>> when I
>>> use a war project with cargo. Is there a way to avoid this? This is very
>>> annoying to try to find out all the dependencies (and their transitive
>>> dependencies manually) and have to add those to the <dependencies/>
>> section
>>> of the cargo plugin. According to the documentation (
>>>
>> http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars
>> )
>>> this is only needed if you want to share between web projects, but I only
>>> have 1 and I still have to do it, otherwise I get
>> ClassNotFoundExceptions.
>>> This is my pom.xml (partially):
>>>
>>>     <packaging>war</packaging>
>>>     <build>
>>>         <finalName>server-web</finalName>
>>>         <plugins>
>>>             <plugin>
>>>                 <groupId>org.codehaus.cargo</groupId>
>>>                 <artifactId>cargo-maven2-plugin</artifactId>
>>>                 <version>0.3</version>
>>>                 <configuration>
>>>                     <container>
>>>                         <containerId>tomcat5x</containerId>
>>>                         <zipUrlInstaller>
>>>                             <url>
>>>
>> http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
>>> </url>
>>>                             <installDir>${installDir}</installDir>
>>>                         </zipUrlInstaller>
>>>                         <systemProperties>
>>>
>>> <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
>>>                         </systemProperties>
>>>                         <dependencies>
>>>                             LONG LIST OF DEPENDENCIES HERE
>>>
>>>
>>> regards,
>>>
>>> Wim
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Dependencies and cargo plugin?

Posted by Wim Deblauwe <wi...@gmail.com>.
In what repo is that version?

2008/10/24 Marc Schneider <ma...@gmail.com>

> Hello,
>
> I also use the cargo-maven2-plugin but don't need to specify all these
> dependencies.
>
> Btw I use cargo 1.0-alpha6.
>
> Here is my plugin configuration :
>
> <plugin>
>        <groupId>org.codehaus.cargo</groupId>
>        <artifactId>cargo-maven2-plugin</artifactId>
>         <configuration>
>                <wait>false</wait>
>                <container>
>                        <containerId>tomcat5x</containerId>
>                        <home>${tomcat.local.home}</home>
>                </container>
>                <configuration>
>                        <properties>
>                                <cargo.logging>high</cargo.logging>
>
>  <cargo.servlet.port>${servlet.port}</cargo.servlet.port>
>                        </properties>
>                </configuration>
>        </configuration>
>        <executions>
>                <execution>
>                        <id>start-container</id>
>                        <phase>pre-integration-test</phase>
>                        <goals>
>                                <goal>start</goal>
>                        </goals>
>                </execution>
>                <execution>
>                        <id>stop-container</id>
>                        <phase>post-integration-test</phase>
>                        <goals>
>                                <goal>stop</goal>
>                        </goals>
>                </execution>
>        </executions>
> </plugin>
>
> Marc.
>
>
> Wim Deblauwe a écrit :
> > Hi,
> >
> > It seems that I need to add all my dependencies in my pom.xml 2 times
> when I
> > use a war project with cargo. Is there a way to avoid this? This is very
> > annoying to try to find out all the dependencies (and their transitive
> > dependencies manually) and have to add those to the <dependencies/>
> section
> > of the cargo plugin. According to the documentation (
> >
> http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars
> )
> > this is only needed if you want to share between web projects, but I only
> > have 1 and I still have to do it, otherwise I get
> ClassNotFoundExceptions.
> >
> > This is my pom.xml (partially):
> >
> >     <packaging>war</packaging>
> >     <build>
> >         <finalName>server-web</finalName>
> >         <plugins>
> >             <plugin>
> >                 <groupId>org.codehaus.cargo</groupId>
> >                 <artifactId>cargo-maven2-plugin</artifactId>
> >                 <version>0.3</version>
> >                 <configuration>
> >                     <container>
> >                         <containerId>tomcat5x</containerId>
> >                         <zipUrlInstaller>
> >                             <url>
> >
> http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
> > </url>
> >                             <installDir>${installDir}</installDir>
> >                         </zipUrlInstaller>
> >                         <systemProperties>
> >
> > <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
> >                         </systemProperties>
> >                         <dependencies>
> >                             LONG LIST OF DEPENDENCIES HERE
> >
> >
> > regards,
> >
> > Wim
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Dependencies and cargo plugin?

Posted by Marc Schneider <ma...@gmail.com>.
Hello,

I also use the cargo-maven2-plugin but don't need to specify all these
dependencies.

Btw I use cargo 1.0-alpha6.

Here is my plugin configuration :

<plugin>
	<groupId>org.codehaus.cargo</groupId>
	<artifactId>cargo-maven2-plugin</artifactId>
	<configuration>
		<wait>false</wait>
		<container>
			<containerId>tomcat5x</containerId>
			<home>${tomcat.local.home}</home>
		</container>
		<configuration>
			<properties>
				<cargo.logging>high</cargo.logging>
				<cargo.servlet.port>${servlet.port}</cargo.servlet.port>
			</properties>
		</configuration>
	</configuration>
	<executions>
		<execution>
			<id>start-container</id>
			<phase>pre-integration-test</phase>
			<goals>
				<goal>start</goal>
			</goals>
		</execution>
		<execution>
			<id>stop-container</id>
			<phase>post-integration-test</phase>
			<goals>
				<goal>stop</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Marc.


Wim Deblauwe a écrit :
> Hi,
> 
> It seems that I need to add all my dependencies in my pom.xml 2 times when I
> use a war project with cargo. Is there a way to avoid this? This is very
> annoying to try to find out all the dependencies (and their transitive
> dependencies manually) and have to add those to the <dependencies/> section
> of the cargo plugin. According to the documentation (
> http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars)
> this is only needed if you want to share between web projects, but I only
> have 1 and I still have to do it, otherwise I get ClassNotFoundExceptions.
> 
> This is my pom.xml (partially):
> 
>     <packaging>war</packaging>
>     <build>
>         <finalName>server-web</finalName>
>         <plugins>
>             <plugin>
>                 <groupId>org.codehaus.cargo</groupId>
>                 <artifactId>cargo-maven2-plugin</artifactId>
>                 <version>0.3</version>
>                 <configuration>
>                     <container>
>                         <containerId>tomcat5x</containerId>
>                         <zipUrlInstaller>
>                             <url>
> http://www.apache.org/dist/tomcat/tomcat-5/v5.5.27/bin/apache-tomcat-5.5.27.zip
> </url>
>                             <installDir>${installDir}</installDir>
>                         </zipUrlInstaller>
>                         <systemProperties>
> 
> <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
>                         </systemProperties>
>                         <dependencies>
>                             LONG LIST OF DEPENDENCIES HERE
> 
> 
> regards,
> 
> Wim
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org