Last active
August 29, 2015 13:57
-
-
Save tjayr/9818840 to your computer and use it in GitHub Desktop.
Module name contains invalid characters, or empty segments (JBoss 7, EAP 6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I encountered this when deploying an ear file into JBoss 7.1 (EAP 6.1.1). | |
Googling revealed no concrete answers, so hopefully this help someone else. | |
The ear file is built with Maven and notably specifies several manifest entries. | |
A carriage return in the Dependencies element of the maven pom caused this problem. | |
The Eclipse code formatter reformatted the code and wrapped the line. | |
Ensuring the manifest entry is on one line will resolve this problem. | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-ear-plugin</artifactId> | |
<configuration> | |
<generateApplicationXml>true</generateApplicationXml> | |
<defaultLibBundleDir>lib</defaultLibBundleDir> | |
<filtering>true</filtering> | |
<applicationName>${project.parent.artifactId}</applicationName> | |
<finalName>appservice-${project.parent.version}</finalName> | |
<archive> | |
<manifestEntries> | |
<!-- The dependencies line must be on 1 single line, no wrapping no carriage return. Exercise caution with automatic IDE code formatters! --> | |
<Dependencies>${project.ear.Dependencies},com.abc.api:${version.abc.api},com.xyz.api export,com.efg.api export</Dependencies> | |
</manifestEntries> | |
</archive> | |
<modules> | |
<ejbModule> | |
<groupId>${project.parent.groupId}</groupId> | |
<artifactId>app-service-engine</artifactId> | |
</ejbModule> | |
</modules> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment