Skip to content

Commit d8af177

Browse files
committed
Update pom.xml to include dependencies in generated jar
1 parent e23c893 commit d8af177

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

pom.xml

+12-11
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,30 @@
2929
<configuration>
3030
<source>1.8</source>
3131
<target>1.8</target>
32+
3233
</configuration>
3334
</plugin>
3435
<plugin>
3536
<artifactId>maven-assembly-plugin</artifactId>
37+
<executions>
38+
<execution>
39+
<phase>package</phase>
40+
<goals>
41+
<goal>single</goal>
42+
</goals>
43+
</execution>
44+
</executions>
3645
<configuration>
3746
<archive>
3847
<manifest>
3948
<mainClass>ud.binmonkey.prog3_proyecto_server.Server</mainClass>
4049
</manifest>
4150
</archive>
51+
4252
<descriptorRefs>
43-
<descriptorRef>Executable jar</descriptorRef>
53+
<descriptorRef>jar-with-dependencies</descriptorRef>
4454
</descriptorRefs>
4555
</configuration>
46-
<executions>
47-
<execution>
48-
<id>make-assembly</id> <!-- this is used for inheritance merges -->
49-
<phase>package</phase> <!-- bind to the packaging phase -->
50-
<goals>
51-
<goal>single</goal>
52-
</goals>
53-
</execution>
54-
</executions>
5556
</plugin>
5657
</plugins>
5758
</build>
@@ -308,4 +309,4 @@
308309
</dependency>
309310
</dependencies>
310311

311-
</project>
312+
</project>

0 commit comments

Comments
 (0)