maven-ear-plugin 和 JBoss AS 7

发布于 2024-12-18 15:16:39 字数 174 浏览 6 评论 0原文

我正在迁移到 JBoss AS 7,并使用 maven 构建,在我看来,maven-ear-plugin 还不支持 JBoss AS 7。默认情况下它使用 JBoss AS 4。

这会导致问题吗?

我还在尝试弄清楚如何构建我的档案,现在遇到了与 JBoss AS 7 类加载器工作方式的变化相关的问题。

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.

Does this cause problem?

I am also still trying to figure out as I go along how to structure my archives, right now having issues related to the changes in the way JBoss AS 7 class loader works.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

¢好甜 2024-12-25 15:16:39

我不认为 maven-ear-plugin 是 JBoss 特定的。但您必须在配置中指定 JavaEE 6

<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>

要获得 JBoss7 EAR 的工作示例,您可以使用以下原型创建一个新项目:org.jboss.spec.archetypes:jboss-javaee6-ear-webapp:7.0.2.CR1
上面显示的示例取自此原型。

I don't think the maven-ear-plugin is JBoss specific. But you have to specify the 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 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文