<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: configure entire workspace as maven project in jenkins</title><link>https://answers.axonivy.com/questions/1629/configure-entire-workspace-as-maven-project-in-jenkins</link><description>&lt;p&gt;Hi everybody&lt;/p&gt;
&lt;p&gt;Does anyone have experience with configuring an entire workspace in as maven project in jenkins. I have no problem with setting up a single ivy project, but i would like to have multiple projects with dependencies to each other as a single maven project.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using ivy 5.1 projects&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Any help or hint is appreciated!&lt;/p&gt;
&lt;p&gt;Marcel&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1629/configure-entire-workspace-as-maven-project-in-jenkins" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 20 Jan 2016 16:34:57 -0500</lastBuildDate><item><title>Answer by Dominik Regli</title><link>https://answers.axonivy.com/questions/1629/configure-entire-workspace-as-maven-project-in-jenkins/1630</link><description>&lt;p&gt;I suggest to create a &lt;a href="https://maven.apache.org/pom.html#Aggregation"&gt;multi module maven project&lt;/a&gt; (see the attached link)&lt;/p&gt;
&lt;p&gt;In short, you do it as follows:
Create a project directory structure as follows&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;myRootFolder
 - myIvyProjectA
  -- pom.xml
 - myIvyProjectB
  -- pom.xml
 - myMavenAggregationProject
  -- pom.xml
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The pom.xml files of the ivy-projects are the same as before (including dependencies etc.).
The pom.xml of the aggregation-project is an aggregation or multi module pom. It contains a section, that defines all modules to aggregate like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;modules&amp;gt;
    &amp;lt;module&amp;gt;../myIvyProjectA&amp;lt;/module&amp;gt;
    &amp;lt;module&amp;gt;../myIvyProjectB&amp;lt;/module&amp;gt;
&amp;lt;/modules&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For building, you run Maven for the myMavenAggregationProject only. As a result, all defined modules are built as well. Maven (or better said the &lt;a href="https://maven.apache.org/plugins/maven-reactor-plugin/examples.html"&gt;reactor plugin&lt;/a&gt;) resolves inter-module-dependencies and controls the order of the modules to build accordingly.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dominik Regli</dc:creator><pubDate>Wed, 20 Jan 2016 16:34:57 -0500</pubDate><guid>https://answers.axonivy.com/questions/1629/configure-entire-workspace-as-maven-project-in-jenkins/1630</guid></item></channel></rss>