generate java maven project artifacts with parent in Jenkins

0

I wonder if anyone has already generated an artifact package for a module by the parent project at Jenkins !? For I have tried in every way that I could think, but until now I only got errors! Remembering that in eclipse it runs normally.

    
asked by anonymous 24.04.2015 / 17:20

2 answers

0

For those who need it ... If the Project has all the modules inside the same folder, just go to the "Source Code Management" and there insert the address of your repository in the field "Repository URL"; If the modules are in separate folders also enter the address of each repository in a field "Repository URL" (to add click on "add module"); In each repository address choose the project you want and add the project name in "Local module directory" It will look like this: Parent         Repository URL: full / parent         Local module directory: parent Module 1 Repository URL: full / modulo1         Local module directory: modulo1

modulo2         Repository URL: full / modulo2         Local module directory: modulo2

in "build" add the address of the parent pom:

Pom Root: parent / pom.xml Goals and options: clean install (use whatever you want)

and click the next button to add settings.

    
07.05.2015 / 01:39
0

From the Jenkins menu - > Manage Jenkins - > Configuring the system - > configure JDK, maven, e-mail for notifications.

After that, create a Job in the New Job menu and choose "Build a project with Maven". Right after clicking Ok, select the configured JDK, select the CVS or Subversion option and fill in the Repository URL field pointing to the parent project. In the field pom root just put pom.xml. In the goals and options enter "clean install".

Click Save, and then click the "schedule a build" button.

    
25.09.2015 / 21:27