|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (CARGO-730) Stopping Cargo with additional JARs in the container's classpath failsStopping Cargo with additional JARs in the container's classpath fails
---------------------------------------------------------------------- Key: CARGO-730 URL: http://jira.codehaus.org/browse/CARGO-730 Project: Cargo Issue Type: Bug Components: JBoss, Maven2 Affects Versions: 1.0.1 Environment: Cargo 1.0.1-SNAPSHOT, Maven 2.2.1, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux 5.0 Reporter: Clemens Fuchslocher Attachments: cargo-classpath.tar.gz Adding JARs to the container's classpath is described in "[Adding JARs to the container's classpath|http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars]". The archive cargo-classpath.tar.gz contains a simple test case. The test case will download and install JBoss 5.1 into the directory /tmp/jboss-5.1. Log files are also written to this directory. {noformat} $ tar -zxvf cargo-classpath.tar.gz $ cd cargo-classpath $ export MAVEN_OPTS=-Djboss-5.1.home=/tmp/jboss-5.1 $ mvn cargo:start & ... $ mvn cargo:stop [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Cargo Classpath [INFO] task-segment: [cargo:stop] [INFO] ------------------------------------------------------------------------ [INFO] [cargo:stop {execution: default-cli}] [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Artifact [commons-lang:commons-lang:jar] is not a dependency of the project. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 seconds [INFO] Finished at: Thu Sep 17 17:54:53 GMT 2009 [INFO] Final Memory: 7M/81M [INFO] ------------------------------------------------------------------------ {noformat} The start goal works fine. The container is started correctly and the JAR is also added to the classpath. But the stop goal fails with "Artifact [commons-lang:commons-lang:jar] is not a dependency of the project". Relevant parts of the POM: {noformat} ... <project ...> ... <dependencies> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.4</version> </dependency> </dependencies> ... <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss51x</containerId> <dependencies> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> </dependency> </dependencies> ... </container> ... </configuration> </plugin> </plugins> </build> </project> {noformat} Everything works without the dependencies element inside the plugin configuration. So something must be wrong. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
[jira] Commented: (CARGO-730) Stopping Cargo with additional JARs in the container's classpath fails[ http://jira.codehaus.org/browse/CARGO-730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=191464#action_191464 ] Clemens Fuchslocher commented on CARGO-730: ------------------------------------------- Same problem with Maven 2.0.10 and 2.1.0. > Stopping Cargo with additional JARs in the container's classpath fails > ---------------------------------------------------------------------- > > Key: CARGO-730 > URL: http://jira.codehaus.org/browse/CARGO-730 > Project: Cargo > Issue Type: Bug > Components: JBoss, Maven2 > Affects Versions: 1.0.1 > Environment: Cargo 1.0.1-SNAPSHOT, Maven 2.2.1, JBoss 5.1.0, Java 1.6.0, Debian GNU/Linux 5.0 > Reporter: Clemens Fuchslocher > Attachments: cargo-classpath.tar.gz > > > Adding JARs to the container's classpath is described in "[Adding JARs to the container's classpath|http://cargo.codehaus.org/Starting+and+stopping+a+container#Startingandstoppingacontainer-extrajars]". > The archive cargo-classpath.tar.gz contains a simple test case. > The test case will download and install JBoss 5.1 into the directory /tmp/jboss-5.1. Log files are also written to this directory. > {noformat} > $ tar -zxvf cargo-classpath.tar.gz > $ cd cargo-classpath > $ export MAVEN_OPTS=-Djboss-5.1.home=/tmp/jboss-5.1 > $ mvn cargo:start & > ... > $ mvn cargo:stop > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building Cargo Classpath > [INFO] task-segment: [cargo:stop] > [INFO] ------------------------------------------------------------------------ > [INFO] [cargo:stop {execution: default-cli}] > [INFO] ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] ------------------------------------------------------------------------ > [INFO] Artifact [commons-lang:commons-lang:jar] is not a dependency of the project. > [INFO] ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 3 seconds > [INFO] Finished at: Thu Sep 17 17:54:53 GMT 2009 > [INFO] Final Memory: 7M/81M > [INFO] ------------------------------------------------------------------------ > {noformat} > The start goal works fine. The container is started correctly and the JAR is also added to the classpath. But the stop goal fails with "Artifact [commons-lang:commons-lang:jar] is not a dependency of the project". > Relevant parts of the POM: > {noformat} > ... > <project ...> > ... > <dependencies> > <dependency> > <groupId>commons-lang</groupId> > <artifactId>commons-lang</artifactId> > <version>2.4</version> > </dependency> > </dependencies> > ... > <build> > <plugins> > <plugin> > <groupId>org.codehaus.cargo</groupId> > <artifactId>cargo-maven2-plugin</artifactId> > <version>1.0.1-SNAPSHOT</version> > <configuration> > <container> > <containerId>jboss51x</containerId> > <dependencies> > <dependency> > <groupId>commons-lang</groupId> > <artifactId>commons-lang</artifactId> > </dependency> > </dependencies> > ... > </container> > ... > </configuration> > </plugin> > </plugins> > </build> > </project> > {noformat} > Everything works without the dependencies element inside the plugin configuration. > So something must be wrong. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |