1

So I'm working on a java project located here. I have it on a jenkins server and I want it to compile all the different modules under one jar. I tried copying what another project did but am unable to produce a jar so I believe it has something to do with how I need to configure jenkins in order for it to make the jar. The jar doesn't need to be executable.

rourke750
  • 15
  • 4

2 Answers2

0

The maven-assembly-plugin can create your jar: https://maven.apache.org/plugins/maven-assembly-plugin/usage.html

Laszlo Hirdi
  • 1,140
  • 12
  • 18
0

Your project has 4 JARs and they don't depend on each other. If NameLayer depends on NameLayer1_8_R1 you have to

  • add the dependency NameLayer1_8_R1 to the pom.xml of NameLayer and

  • the maven-assembly-plugin as descrbibed here to create a fat JAR (including all depending JARs).

    Do the first step for as many dependencies as you need.

Community
  • 1
  • 1
cahen
  • 15,807
  • 13
  • 47
  • 78
  • I got that far, now I'm at a point where it works when I build locally how I want it but jenkins sees that the project has modules but won't follow what the pom says. – rourke750 Dec 20 '15 at 23:01