Created
December 14, 2020 19:34
-
-
Save eastlondoner/ecac8a5d78ab22e0b2b2ac53868a902f to your computer and use it in GitHub Desktop.
create a neo4j driver fat / uber jar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
| http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>org.neo4j.driver</groupId> | |
| <artifactId>fat-jar</artifactId> | |
| <version>1.0.0</version> | |
| <packaging>jar</packaging> | |
| <name>Neo4j Driver Fat Jar</name> | |
| <!-- Just run `mvn package` and the fat jar will be written to target/neo4j-driver-fat-jar-jar-with-dependencies.jar --> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.neo4j.driver</groupId> | |
| <artifactId>neo4j-java-driver</artifactId> | |
| <version>4.2.0</version> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <finalName>neo4j-driver-fat-jar</finalName> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-compiler-plugin</artifactId> | |
| <version>3.6.1</version> | |
| <configuration> | |
| <source>1.8</source> | |
| <target>1.8</target> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <version>3.1.1</version> | |
| <configuration> | |
| <descriptorRefs> | |
| <descriptorRef>jar-with-dependencies</descriptorRef> | |
| </descriptorRefs> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>make-assembly</id> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>single</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| </project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment