maven-ear-plugin and JBoss AS 7

前端 未结 1 1671
青春惊慌失措
青春惊慌失措 2021-01-19 22:26

I am in the process of migrating to JBoss AS 7, and using maven build, seems to me the maven-ear-plugin does not support JBoss AS 7 yet. By default it uses JBoss AS 4.

1条回答
  •  佛祖请我去吃肉
    2021-01-19 22:39

    I don't think the maven-ear-plugin is JBoss specific. But you have to specify the JavaEE 6 in your configuration:

    
      org.apache.maven.plugins
      maven-ear-plugin
      2.6
      
        6
        lib
        
          
            my.group
            my-web
            /my
        
      
    
    

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

    0 讨论(0)
提交回复
热议问题