Maven Plugin
Release a Java project to a maven instance.
Installation
This plugin is not included with the auto
CLI installed via NPM. To install:
npm i --save-dev @auto-it/maven
# or
yarn add -D @auto-it/maven
Usage
{
"plugins": ["maven"]
}
Maven Project Configuration
Your project must be using the maven release plugin. Make sure the the latest maven-release-plugin
is in your pom.xml
.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<preparationGoals>initialize</preparationGoals>
<goals>deploy</goals>
</configuration>
</plugin
You will also need all of the following configuration blocks for all parts of auto
to function:
-
Author
<developers> <developer> <name>Andrew Lisowski</name> <email>test@email.com</email> </developer> </developers>
-
SCM
<scm> <connection>scm:git:https://github.com/Fuego-Tools/java-test-project.git</connection> <url>https://github.com/Fuego-Tools/java-test-project</url> <tag>HEAD</tag> </scm>
-
Version
<version>1.0.0-SNAPSHOT</version>