Hi everybody

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.

  • Using ivy 5.1 projects

Any help or hint is appreciated!

Marcel

asked 18.01.2016 at 10:51

Marcel%20von%20Wyl's gravatar image

Marcel von Wyl
1668
accept rate: 100%


I suggest to create a multi module maven project (see the attached link)

In short, you do it as follows: Create a project directory structure as follows

myRootFolder
 - myIvyProjectA
  -- pom.xml
 - myIvyProjectB
  -- pom.xml
 - myMavenAggregationProject
  -- pom.xml

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:

<modules>
    <module>../myIvyProjectA</module>
    <module>../myIvyProjectB</module>
</modules>

For building, you run Maven for the myMavenAggregationProject only. As a result, all defined modules are built as well. Maven (or better said the reactor plugin) resolves inter-module-dependencies and controls the order of the modules to build accordingly.

link

answered 20.01.2016 at 16:34

Dominik%20Regli's gravatar image

Dominik Regli ♦
9013518
accept rate: 85%

edited 20.01.2016 at 16:35

There exists a sample for ivy 6.0 where multi module aggregation pom.xml uses child ivy projects.

https://github.com/axonivy/project-build-examples/tree/6.0/compile-test

(25.01.2016 at 16:07) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×2

Asked: 18.01.2016 at 10:51

Seen: 1,011 times

Last updated: 25.01.2016 at 16:07

Related questions