This is a template of pom.xml file used when registering a stray (?) Jar file that is not in the Maven repository in the local repository.
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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><!-- TODO:Appropriately--></groupId>
<artifactId><!-- TODO:Appropriately--></artifactId>
<version><!-- TODO:Appropriately--></version>
<packaging>pom</packaging>
<properties>
<groupId><!-- TODO:Replace with the groupId you want to register-->p</groupId>
<artifactId><!-- TODO:Replace with the artifactId you want to register--></artifactId>
<version><!-- TODO:Replace with the version you want to register--></version>
<packaging>jar</packaging>
<file><!-- TODO:Replace with the name of the jar file--></file>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>default-install</id>
<phase>none</phase>
</execution>
<execution>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Maidomaido mvn command ʻinstall: install-file` It's a hassle to go around how to use the target
It is troublesome to teach command to group members
Please use it in such a case.
Recommended Posts