Passed a jar that is not in the Maven central repository or in-house repository, "Use this jar to solidify the war!" What to do if you are ordered to.
mvn install: install-file
command to register it in the local repository (usually C: \ Users \ users \ .m2 \ repository
on Windows).In particular,
C: \ lib \ sample.jar
jp.co.nannany
sample
2.5.0
If, type the following command.
mvn install:install-file -Dfile=/lib/sample1.jar -DgroupId=jp.co.nannany -DartifactId=sample -Dversion=2.5.0 -Dpackaging=jar
Also, modify the pom.xml settings to refer to the files registered in the local repository.
<dependency>
<groupId>jp.co.nannany</groupId>
<artifactId>sample</artifactId>
<version>2.5.0</version>
</dependency>
The war file that is hardened after doing these depends on the corresponding jar.
http://www.ne.jp/asahi/hishidama/home/tech/apache/maven/local.html
https://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html