maven 和 jboss 模块 [英] maven and jboss modules

查看:22
本文介绍了maven 和 jboss 模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 maven 和 jboss 的新手,所以我想从他们之间的合作中获益.我在 Eclipse 中有一个 Maven 项目.该项目有许多依赖项,在运行时我想从 jboss 作为模块提供这些依赖项,否则我的 EAR 将非常大.我还为我的依赖项使用了 nexus 存储库.我的问题是:有没有办法将我在编译时在 pom.xml 中的依赖项与 jboss 上的模块同步?有没有办法根据我在 pom 中声明的依赖项创建 jboss 模块?

I'm new to maven and jboss so I'm tring to get benefit of cooperation between them. I have a maven project in eclipse. The project has many dependencies that at runtime I want to provide as module from jboss, otherwise my EAR will be very big. I also use a nexus repo for my dependencies. My question is: is there a way to sync the dependencies I have at compile time in my pom.xml with modules on jboss? Is there a way to create jboss modules according to dependencies I declared in pom?

可能我做错了什么,因为我浪费了很多时间在服务器上配置 jboos 模块并在 jboss-deplyment-structure.xml 中声明依赖项,它们正是在 pom 文件中.最佳做法是什么?

Probably I'm doing something wrong, because I'm loosing many time configuring jboos modules on the server and declaring dependencies in jboss-deplyment-structure.xml exactly they are in pom files. What's Is the best practice?

请记住,我的第一个要求是不要将所有 JAR 都放在 EAR 中.

Keep in mind that my first requirement is to not put all JAR in the EAR.

谢谢

推荐答案

smartics JBoss 模块 Maven 插件根据 POM 中声明的依赖关系创建模块结构.通常,您必须微调配置以满足您的要求.

The smartics JBoss Modules Maven Plugin creates the modules structure based on dependencies declared in your POM. Usually you have to fine tune the configuration to match your requirements.

这篇博客文章可能会给你一个基本的想法来判断这是否是解决你问题的正确方法:smartics-jboss-modules-maven-plugin的模块描述符

This blog article may give you the basic idea to judge if this is the right approach to tackle your problem: Modules Descriptor for smartics-jboss-modules-maven-plugin

您可以在 插件站点.

该项目可在 GitHub 上找到.

The project is available on GitHub.

免责声明:我是这个插件的作者之一.:)

Disclaimer: I'm one of the authors of this plugin. :)

这篇关于maven 和 jboss 模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆