Steps
- Go to http://www.oracle.com/technetwork/java/javaee/jta/index.html and download jta-1_0_1B-classes.zip
- Change directory to the download folder, from command-line
- Execute
mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
E:\>pushd E:\Downloads
E:\Downloads>mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing E:\Downloads\jta-1_0_1B-classes.zip to C:\Users\home\.m2\repository\javax\transaction\jta\1.0.1B\jta-1.0.1B.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.261 s
[INFO] Finished at: 2018-08-10T09:47:31+08:00
[INFO] ------------------------------------------------------------------------
Reference