目的:

    通过eclipse工具,使用maven命令,将maven工程编译后的jar、源码、依赖环境,都发布到网络maven仓库;

    方便其他工程引用,查看源码,及自动下载依赖环境;

 



 


maven关键命令deploy -- 发布到远程仓库

 

具体步骤如下:

 

1、发布源码及jar到远程仓库

---------------------------------------------

a)在工程pom文件中添加源码支持插件

<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-source-plugin</artifactId>
 <version>2.3</version>
 <configuration>
 	<attach>true</attach>
 </configuration>
 <executions>
	 <execution>
		 <phase>compile</phase>
		 <goals>
		 	<goal>jar</goal>
		 </goals>
	 </execution>
 </executions>
</plugin>

b)有必要添加插件deploy的配置

同样是在pom文件中添加

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-deploy-plugin</artifactId>
	<version>2.8.1</version>
</plugin>

c)设置远程仓库提交地址及提交用户信息

在pom文件中设置远程仓库的地址信息

<repositories>
<repository>
<id>nexus</id>
<name>nexus public mirror</name>
<url>http://10.31.44.6:8081/nexus/content/groups/public</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>thirdparty</id>
<name>3rd party</name>
<url>http://10.31.44.6:8081/nexus/content/repositories/thirdparty</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>

<distributionManagement>
<repository>
<id>releases</id>
<name>Releases</name>
<url>http://10.31.44.6:8081/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://10.31.44.6:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>

</distributionManagement>

同时,需要在maven的setting.xml中设置提交的用户信息

这些用户信息,可以在jar仓库web界面的左侧Security中选择Users,右面的列表中呈现了当前的用户,可另行设置密码;

<servers>
<server>
<id>releases</id>
<username>deployment</username>
<password>deploy</password>
</server>
</servers>

d)设置提交的远程仓库允许重复提交

后提交的覆盖之前的,在远程仓库web界面中,按照如下步骤操作,完成后点击按钮【save】保存。

maven编译自增体现发布版本号 maven发布源码_java

 

稳定jar发布到仓库中

    备注:这里主要是发布到第三方库中

i)修改maven工具的setting.xml

修改apache-maven工具的配置setting.xml,如下

<!-- 稳定发布目录上传 -->
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server>

这里配置的id( thirdparty ),必须要和项目中pom文件里配置的一致,否则上传会出错;

 

ii)修改项目的pom

<distributionManagement>
<repository>
<id>thirdparty</id>
<name>thirdparty</name>
<url>http://10.31.44.6:8081/nexus/content/repositories/thirdparty</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://10.31.44.6:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>

</distributionManagement>

主要是下面3个节点的修改,id、name的值,从nexus上可以查看到

<id>thirdparty</id>
<name>thirdparty</name>
<url>http://10.31.44.6:8081/nexus/content/repositories/thirdparty</url>

 

e)发布到网络maven仓库

在eclipse中,点击 工程的pom.xml文件,右键选择Run As >> Maven build...,弹出如下框,按下面填写,执行;

maven编译自增体现发布版本号 maven发布源码_maven编译自增体现发布版本号_02

 

f)查看发布结果

完成后可到网络maven仓库中查看发布的结果;

下面是amserver工程的子模块module-message远程发布的情况,这个里面包含了三部分

源代码    -- 方便其他工程引用时查看源实现逻辑;

pom描述   -- 包含此工程的依赖

编译后的jar  -- 编译、引用需要

maven编译自增体现发布版本号 maven发布源码_开发工具_03

 

下面是pom文件内容,在这里,会引用父工程amserver的pom文件

-- module-message-1.0.3.pom

<?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>
<parent>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>amserver</artifactId>
<version>1.0.3</version>
</parent>
<artifactId>module-message</artifactId>
<name>MessageFactory</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>GBK</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<configuration>
<includes>
<classesDirectory>com/**</classesDirectory>
<classesDirectory>tmpl/*.tmpl</classesDirectory>
</includes>
</configuration>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

-- amserver-1.0.3.pom

<?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>com.boco.wnms.dal</groupId>
<artifactId>amserver</artifactId>
<version>1.0.3</version>
<packaging>pom</packaging>
<name>amserver</name>
<url>http://maven.apache.org</url>
<organization>
<name>亿阳信通股份有限公司</name>
<url>http://www.boco.com.cn</url>
</organization>
<issueManagement>
<system>问题平台</system>
<url>http://124.127.106.14/flat</url>
</issueManagement>
<developers>
<developer>
<name>冯峰</name>
<id>fengfeng</id>
<email>fengfeng@boco.com.cn</email>
<organization>boco</organization>
<organizationUrl>http://www.boco.com.cn</organizationUrl>
<timezone>+8</timezone>
<roles>
<role>详细设计</role>
</roles>
</developer>
<developer>
<name>冯峰</name>
<id>fengfeng</id>
<email>fengfeng@boco.com.cn</email>
<organization>boco</organization>
<organizationUrl>http://www.boco.com.cn</organizationUrl>
<timezone>+8</timezone>
<roles>
<role>开发人员</role>
</roles>
</developer>
</developers>
<modules>
<module>module-message</module>
<module>module-mqoperator</module>
<module>module-kafka</module>
<module>amserver-build</module>
<module>amserver-main</module>
<module>amserver-business</module>
</modules>
<properties>
<project.build.sourceEncoding>GBK</project.build.sourceEncoding>
<log4j.version>1.2.14</log4j.version>
<junit.version>4.10</junit.version>
<commons-lang.version>2.6</commons-lang.version>
<commons-dbcp.version>1.3</commons-dbcp.version>
<org.springframework.version>4.0.2.RELEASE</org.springframework.version>
<informix.jdbc.version>3.50.JC9</informix.jdbc.version>
<proxool.version>0.9.1</proxool.version>
<ojdbc6.version>11.2.0.3</ojdbc6.version>
<com.boco.pwd>1.0</com.boco.pwd>
<mqApiWrapper.version>1.8</mqApiWrapper.version>
<org.slf4j.version>1.6.4</org.slf4j.version>
<ch.qos.logback.version>1.1.2</ch.qos.logback.version>
<ehcache-ee.version>2.8.1</ehcache-ee.version>
<jms-api.version>1.1-rev-1</jms-api.version>
<jbossmq-client.version>4.0.2</jbossmq-client.version>
<com.ibm.mq.version>7.0.1.8</com.ibm.mq.version>
<groovy-all.version>2.3.2</groovy-all.version>
<oro.version>2.0.8</oro.version>
<commons-beanutils.version>1.8.3</commons-beanutils.version>
<commons-net.version>3.1</commons-net.version>
<commons-pool.version>1.6</commons-pool.version>
<org.apache.tuscany.sdo.version>1.1.1</org.apache.tuscany.sdo.version>
<jdom.version>1.1</jdom.version>
<h2.version>1.3.172</h2.version>
<org.hibernate.version>4.3.0.Final</org.hibernate.version>
<quartz.version>2.2.1</quartz.version>
<javassist.version>3.12.1.GA</javassist.version>
<commons-chain.version>1.2</commons-chain.version>
<commons-io.version>2.1</commons-io.version>
<commons-digeste.version>2.1</commons-digeste.version>
<commons-logging.version>1.1.1</commons-logging.version>
<commonutils.version>0.1.0</commonutils.version>
<connector.version>1.0</connector.version>
<org.jdom.version>1.0-FCS</org.jdom.version>
<alarmlogapi.version>1.0.0</alarmlogapi.version>
<disruptor.version>3.2.0</disruptor.version>
<protobuf-java.version>2.4.1</protobuf-java.version>
<jyaml.version>1.3</jyaml.version>
<snakeyaml.version>1.13</snakeyaml.version>
<zookeeper.version>3.4.5</zookeeper.version>
<UCMPClient.version>0.2.7</UCMPClient.version>
<perf4j.version>0.9.16</perf4j.version>
<org.aspectj.version>1.6.12</org.aspectj.version>
<commons-jexl.version>1.1</commons-jexl.version>
<cglib.version>2.2.2</cglib.version>
<slf4j-log4j12.version>1.7.5</slf4j-log4j12.version>
<connector-api.version>1.5</connector-api.version>
<jfm.version>1.9.5</jfm.version>
<access.version>1.0.3</access.version>
<commons-collections.version>3.2.1</commons-collections.version>
<jdbc.oracle.version>10.2.0.1.0</jdbc.oracle.version>
<jackson.version>1.7.9</jackson.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${ch.qos.logback.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons-lang.version}</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>${commons-dbcp.version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons-collections.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>${groovy-all.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>${jdbc.oracle.version}</version>
</dependency>
<dependency>
<groupId>com.ibm</groupId>
<artifactId>ifxjdbc</artifactId>
<version>${informix.jdbc.version}</version>
</dependency>
<dependency>
<groupId>com.boco.zhjk.dal</groupId>
<artifactId>commonutils</artifactId>
<version>${commonutils.version}</version>
</dependency>
<dependency>
<groupId>com.boco</groupId>
<artifactId>mqApiWrapper</artifactId>
<version>${mqApiWrapper.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>jfmhandler-as-console</artifactId>
<version>${jfm.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>jfmhandler-as-dispatcher</artifactId>
<version>${jfm.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>jfmhandler-as-console</artifactId>
<version>${jfm.version}</version>
</dependency>
<dependency>
<groupId>com.boco.zhjk.dal</groupId>
<artifactId>access</artifactId>
<version>${access.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>module-message</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>module-mqoperator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>module-kafka</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>module-business</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
</dependency>
<dependency>
<groupId>com.ibm</groupId>
<artifactId>ifxjdbc</artifactId>
</dependency>
<dependency>
<groupId>com.boco.zhjk.dal</groupId>
<artifactId>commonutils</artifactId>
</dependency>
<dependency>
<groupId>com.boco</groupId>
<artifactId>mqApiWrapper</artifactId>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>jfmhandler-as-console</artifactId>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>jfmhandler-as-dispatcher</artifactId>
</dependency>
<dependency>
<groupId>com.boco.wnms.dal</groupId>
<artifactId>jfmhandler-as-console</artifactId>
</dependency>
<dependency>
<groupId>com.boco.zhjk.dal</groupId>
<artifactId>access</artifactId>
</dependency>
<dependency>
<groupId>BOCO</groupId>
<artifactId>UCMPClient</artifactId>
<version>0.2.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.1.4</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.1.4</version>
</dependency>
<dependency>
<groupId>com.101tec</groupId>
<artifactId>zkclient</artifactId>
<version>0.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
<version>3.4.5</version>
<exclusions>
<exclusion>
<artifactId>slf4j-log4j12</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>2.1.4</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>nexus</id>
<name>nexus public mirror</name>
<url>http://10.31.4.90:8081/nexus/content/groups/public</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
<repository>
<id>thirdparty</id>
<name>3rd party</name>
<url>http://10.31.4.90:8081/nexus/content/repositories/thirdparty</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</releases>
<snapshots>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>thirdparty</id>
<name>thirdparty</name>
<url>http://10.31.4.90:8081/nexus/content/repositories/thirdparty</url>
</repository>
<snapshotRepository>
<id>snapshots</id>
<url>http://10.31.4.90:8081/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.1</version>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<configuration>
<includes>
<classesDirectory>com/**</classesDirectory>
</includes>
</configuration>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<debug>true</debug>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.10</version>
</plugin>
<plugin>
<groupId>maven</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<configuration>
<locales>zh_CN</locales>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.8</version>
<configuration>
<outputEncoding>GBK</outputEncoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<check>
<haltOnFailure>false</haltOnFailure>
<totalLineRate>0</totalLineRate>
<totalBranchRate>0</totalBranchRate>
</check>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
<executions>
<execution>
<id>clean</id>
<goals>
<goal>clean</goal>
</goals>
</execution>
<execution>
<id>check</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.5</version>
<configuration>
<username>fengfeng</username>
<password>wcs</password>
<goals>compile</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.3</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-changelog-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.3</version>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
<inputEncoding>UTF-8</inputEncoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<aggregate>true</aggregate>
<charset>UTF16</charset>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.7.1</version>
<configuration>
<rulesets>
<ruleset>/rulesets/basic.xml</ruleset>
<ruleset>/rulesets/imports.xml</ruleset>
<ruleset>/rulesets/unusedcode.xml</ruleset>
<ruleset>/rulesets/finalizers.xml</ruleset>
</rulesets>
<outputEncoding>UTF-8</outputEncoding>
<linkXref>true</linkXref>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.8</version>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.4</version>
<configuration>
<tags>
<tag>TODO</tag>
<tag>@todo</tag>
<tag>FIXME</tag>
<tag>XXX</tag>
</tags>
<outputEncoding>UTF-8</outputEncoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<outputEncoding>UTF-8</outputEncoding>
<formats>
<format>xml</format>
<format>html</format>
</formats>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<xmlOutput>true</xmlOutput>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
</plugins>
</reporting>
</project>