We're updating the issue view to help you get more done. 

Module names in JBoss must not contain any periods.

Description

In my project I have the following maven config:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... <container> <containerId>jboss71x</containerId> <zipUrlInstaller>...</zipUrlInstaller> <dependencies> <dependency> <groupId>com.mygroup</groupId> <artifactId>my.artifact</artifactId> <version>x.y.z</version> <classifier>some.classifier</classifier> </dependency> </dependencies> </container> ...

maven defines an artifact name for the above dependency according to the schema {artifactId}{version}{classifier}

cargo creates a module folder with the artifact name:
modules/org/codehause/cargo/classpath/my.artifact-x.y.z-some.classifier

the corresponding module name in JBoss7x is
org.codehause.cargo.classpath.my.artifact-x.y.z-some.classifier

but since JBoss uses the period as a path separator, it is looking for the following directory:
modules/org/codehause/cargo/classpath/my/artifact-x/y/z-some/classifier

I propose to use the artifact name as a module slot to fix the handling of periods in the artifact name

the folder would stay the same, except that it would not contain a subfolder called "main" but directly the module.xml and all required jars
the module would become: org.codehause.cargo.classpath:my.artifact-x.y.z-some.classifier

Status

Assignee

Savas Ali Tokmen

Reporter

Stephan Classen

Components

Fix versions

Affects versions

1.2.0

Priority

Major