Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Commit

Permalink
Add JAXB as a default module to undertow-centric deployments. Not sur…
Browse files Browse the repository at this point in the history
…e if the best route.
  • Loading branch information
bobmcwhirter committed Dec 16, 2015
1 parent 74542ca commit 890b169
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions undertow/modules/pom.xml
Expand Up @@ -86,6 +86,18 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-feature-pack</artifactId>
<type>zip</type>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

</project>
Expand Up @@ -8,9 +8,12 @@
<module name="org.wildfly.swarm.container"/>
<module name="org.wildfly.swarm.container" slot="runtime"/>
<module name="org.wildfly.swarm.configuration"/>
<module name="org.jboss.shrinkwrap"/>

<module name="org.wildfly.extension.undertow"/>
<module name="io.undertow.core"/>
<module name="org.jboss.modules"/>

<module name="javax.xml.bind.api"/>
</dependencies>
</module>
Expand Up @@ -19,7 +19,9 @@
import java.util.List;

import org.jboss.dmr.ModelNode;
import org.jboss.shrinkwrap.api.Archive;
import org.wildfly.swarm.config.runtime.invocation.Marshaller;
import org.wildfly.swarm.container.JARArchive;
import org.wildfly.swarm.container.runtime.AbstractServerConfiguration;
import org.wildfly.swarm.undertow.UndertowFraction;

Expand All @@ -43,6 +45,11 @@ public UndertowFraction defaultFraction() {
return UndertowFraction.createDefaultFraction();
}

@Override
public void prepareArchive(Archive a) {
a.as(JARArchive.class).addModule( "javax.xml.bind.api");
}

@Override
public List<ModelNode> getList(UndertowFraction fraction) throws Exception {
List<ModelNode> list = new ArrayList<>();
Expand Down

0 comments on commit 890b169

Please sign in to comment.