How to configure Maven build for Java project with external dependencies? -
i'm trying create automated solution building maven. vision have maven build, creates jar file project , copies dependencies jars sub-directory in "target" folder.
i not want utilize shade or assembly (so not want extract content of other jars , include in 1 "super-jar", because project more complicated , breaks when i'm including jars in 1 file).
how can such build pom?
i don't see here problem. create maven pom.xml <packaging>jar</packaging>
default should not pack jar dependent libraries.
<plugin> <artifactid>maven-dependency-plugin</artifactid> <executions> <execution> <phase>install</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputdirectory>${project.build.directory}/lib</outputdirectory> </configuration> </execution> </executions> </plugin>
java maven build jar
No comments:
Post a Comment