Skip to content

Instantly share code, notes, and snippets.

@sunilsoni
Last active December 8, 2019 14:02
Show Gist options
  • Save sunilsoni/65addefdbf5f09311a7f1189c201022e to your computer and use it in GitHub Desktop.
Save sunilsoni/65addefdbf5f09311a7f1189c201022e to your computer and use it in GitHub Desktop.
mvn install -DskipTests
Install Local Jar:
mvn install:install-file \
-Dfile="/Users/sunilsoni/Google Drive/Workspace/Jars/jrecord-base-0.90.2.jar" \
-DgroupId=net.sf \
-DartifactId=jrecord-base \
-Dversion=0.90.2 \
-Dpackaging=jar \
-DgeneratePom=true;
For Java 11 Compatability :
https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist:
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.3.0</version>
</dependency>
Surefire Plugin: https://maven.apache.org/surefire/maven-surefire-plugin/usage.html
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
</plugin>
</plugins>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment