Maven-ear-plugin and JBoss AS 7

Now I'm moving on to JBoss AS 7, and using maven build, it seems to me that maven-ear-plugin does not support JBoss AS 7. By default, JBoss AS 4 is used.

Does this cause problems?

I am also still trying to figure out how I understand how to structure my archives, currently having problems related to changes in how the JBoss AS 7 class loader works.

+4
source share
1 answer

I don't think maven-ear-plugin specific to JBoss. But you must specify JavaEE <version>6</version> in your configuration:

 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ear-plugin</artifactId> <version>2.6</version> <configuration> <version>6</version><!-- Java EE 6 --> <defaultLibBundleDir>lib</defaultLibBundleDir> <modules> <webModule> <groupId>my.group</groupId> <artifactId>my-web</artifactId> <contextRoot>/my</contextRoot> </webModule> </modules> </configuration> 

To get a working JBoss7 EAR example, you can create a new project using the following archetype: org.jboss.spec.archetypes:jboss-javaee6-ear-webapp:7.0.2.CR1 example shown above is taken from this archetype.

+9
source

Source: https://habr.com/ru/post/1383980/


All Articles