Geronimo - invalid datasource descriptor for datasource SNAPHSOT dependency

Description

I'm deploying to Geronimo. Problems occur when using SNAPSHOT dependency.

I'm getting error (the last one is relevant here):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 [INFO] [talledLocalContainer] Geronimo Application Server started [INFO] [talledLocalContainer] Installed org.codehaus.cargo.classpath/org.h2/1.3.173/jar [INFO] [talledLocalContainer] Installed org.codehaus.cargo.classpath/p6spy/2.0.0-SNAPSHOT/jar [INFO] [talledLocalContainer] Installed org.codehaus.cargo.classpath/log4j/1.2.17/jar [INFO] [talledLocalContainer] 2013-12-04 09:19:25,515 ERROR [DeployTool] Error: [INFO] [talledLocalContainer] org.apache.geronimo.common.DeploymentException: org.codehaus.cargo.datasource/p6spy/1.0/car does not appear to be a the name of a module available on the selected server. Perhap s it has already been stopped or undeployed? If you're trying to specify a TargetModuleID, use the syntax TargetName|ModuleName instead. If you're not sure what's running, try the list-modules command. [INFO] [talledLocalContainer] at org.apache.geronimo.deployment.plugin.ConfigIDExtractor.identifyTargetModuleIDs(ConfigIDExtractor.java:205) [INFO] [talledLocalContainer] at org.apache.geronimo.deployment.cli.CommandStart.execute(CommandStart.java:57) [INFO] [talledLocalContainer] at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:173) [INFO] [talledLocalContainer] at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) [INFO] [talledLocalContainer] at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67) [INFO] [talledLocalContainer] at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31) [INFO] [talledLocalContainer] 2013-12-04 09:19:28,326 ERROR [DeployTool] Error: [INFO] [talledLocalContainer] org.apache.geronimo.common.DeploymentException: Unable to deploy tranql-connector-ra-1.7.rar: Unable to create configuration for deployment [INFO] [talledLocalContainer] load of org.codehaus.cargo.datasource/p6spy/1.0/car failed [INFO] [talledLocalContainer] Error starting configuration gbean org.codehaus.cargo.datasource/p6spy/1.0/car [INFO] [talledLocalContainer] Missing dependency: org.codehaus.cargo.classpath/p6spy-2.0.0/SNAPSHOT/jar [INFO] [talledLocalContainer]

having following config:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.6-SNAPSHOT</version> <configuration> <container> <containerId>geronimo2x</containerId> <artifactInstaller> <groupId>org.apache.geronimo.assemblies</groupId> <artifactId>geronimo-tomcat6-javaee5</artifactId> <version>2.1.8</version> <classifier>bin</classifier> <type>tar.gz</type> </artifactInstaller> <dependencies> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.3.173</version> <scope>provided</scope> </dependency> <dependency> <groupId>p6spy</groupId> <artifactId>p6spy</artifactId> <version>2.0.0-SNAPSHOT</version> <type>jar</type> <scope>provided</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> <scope>provided</scope> </dependency> </dependencies> </container> ...

invalid datasource config gets generated for geronimo for snapshot dependency.

following is currently generated

1 2 3 4 5 6 <dep:dependency> <dep:groupId>org.codehaus.cargo.classpath</dep:groupId> <dep:artifactId>p6spy-2.0.0</dep:artifactId> <dep:version>SNAPSHOT</dep:version> <dep:type>jar</dep:type> </dep:dependency>

however expected one would be:

1 2 3 4 5 6 <dep:dependency> <dep:groupId>org.codehaus.cargo.classpath</dep:groupId> <dep:artifactId>p6spy</dep:artifactId> <dep:version>2.0.0-SNAPSHOT</dep:version> <dep:type>jar</dep:type> </dep:dependency>

Status

Assignee

Savas Ali Tokmen

Reporter

Peter Butkovic

Components

Fix versions

Affects versions

1.4.5

Priority

Major