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.
Asked
Active
Viewed 48 times
2 Answers
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 thepom.xml
ofNameLayer
andthe
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.
-
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