Maven Install Plugin
This page provides a space for users to contribute examples, errata, tips and other useful information about the Maven Install Plugin. Everybody is invited to share his/her thoughts about the plugin to help the community to improve it.
Note: Please do not use this page to report bugs or feature requests. Instead, please fill in an issue in the issue tracking system listed in the official plugin documentation.
Thanks!
– The Maven Team
Examples
Doing this and that:
| Code Block | ||
|---|---|---|
| ||
<project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>install-library</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>${path_to_file}</file>
<classifier>${classifier_if_this_isnt_the_main_artifact_of_this_project}</classifier>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
<version>${version}</version>
<packaging>${packaging_basically_the_file_type_extension}</packaging>
<generatePom>${true_if_you_want_it_generated}</generatePom>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|
FAQ
How do I ...?
You need to ...
