English 中文(简体)
• 如何将Jenkins召集为一个多模块的马文项目
原标题:How to configure Jenkins for a multi-module maven project

I have a maven multi-modul project. The structure looks like:

-modulA         (Main project)
   - pom.xml
-parentModul    (Aggregator)
   - pom.xml
   - ModulB     (Integration Test Project)
       -pom.xml

一揽子定义类似:

<project ...>
<modules>
    <module>../modulA</module>
    <module>ModulB</module>
</modules>


One of the moduls (ModulA) has the same hierarchy level, The other is in the parent modul. I try to add a job in Jenkins to build all automatically. (clean package)..

如何安排父母的工作 改判了其他模块并建设了该项目?

问题回答

添加另一个聚合物。 同一目录中的模块A和括号,高于同一目录的1级,只是添加另一个om:

aggregator/
|- modulA/
|  |- pom.xml
|- parentModul/
|  |- modulB/
|  |  |- pom.xml
|  |- pom.xml
|- pom.xml

在聚合物/pom.xml中,模块部分如下:

<project ...>
    <modules>
        <module>modulA</module>
        <module>parentModul</module>
    </modules>
</project>

一种解决办法是利用SVN的外在器,从国内的SVN结构,甚至通过不同的vn服务器,汇集Sane Maven项目工作空间。 使用避风机并不是一种理想的解决办法,因为它会在某些组合中造成ven化释放金和 CISCM投票的问题。 他们告诉你: “你不应使用虚弱的外部因素”,因为生活更加困难。 但是,这确实是 leg和 cr,但当你打破了腿(或 s脏结构)时,你真心不会忘记不便。

根据您的特别生活空间结构和理想的工作空间结构,可以采取几种方式:

  1. svn co modulA
  2. cd modulA
  3. svn propedit svn:externals . NB: Note the (curdir) dot at the end of line!
  4. add following line: parentModul http://path.to.your.svn.location.of.parentModul
  5. svn ci -m "added externals for parent"
  6. svn up

以及你为跟踪工作空间结构而制定的密码

modulA/
|  |- pom.xml
parentModul/
|- modulB/
|  |- pom.xml
|- pom.xml
pom.xml

或者,你可以给特别志愿人员的工作场所增加新的目录,在其中增加新的om子,并且通过外在一级(或多级)获得你可能想要的所有单元。

在我的情况下,不可能增加另一个母子项目。 ModulA已经与他人独立在SVN接受检查。

这表明,在<代码><modules>节中,你可能会错过<代码>。 如果moduleA有不同的生命周期,那么你就应当把它列为一种依赖。





相关问题
Possible to sandbox Python configuration file?

I m thinking of implementing a configuration file written in Python syntax, not unlike what Django does. While I ve seen one or two SO questions about the merits of using executable code in ...

How to validate Java logging properties files?

I have a basic facility for allowing users to remotely apply changes to the logging files in my application. Some logs are configured using java.util.logging properties files, and some are configured ...

Where should I put this configuration setting?

I m designing a fairly small web application which will run on a Sun application server (v9.1). It only has a few pages, no database of its own, and will retrieve/update data via web services. There s ...

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

热门标签