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

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

问题描述

我是Maven和jboss的新手,所以我很想从他们之间的合作中受益.我在Eclipse中有一个Maven项目.该项目具有许多依赖关系,我希望在运行时从jboss作为模块提供这些依赖关系,否则我的EAR将会很大.我还为我的依赖项使用了一个关系仓库.我的问题是:有没有一种方法可以将我在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.

此博客文章可能为您提供基本的思想,以判断这是否是解决问题的正确方法:

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

您可以在插件的网站上找到有关该插件(以及项目博客)的更多信息. /a>.

You'll find more information on the plugin (and the project blog) on the plugin's site.

该项目可在GitHub上获得.

The project is available on GitHub.

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

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

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

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