发布源码及依赖到网络maven仓库_chichou9946的博客-程序员秘密

技术标签: java  开发工具  数据库  

 

目的:

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

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

 

 
  1. maven关键命令
  2. 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】保存。

 

稳定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...,弹出如下框,按下面填写,执行;

 

f)查看发布结果

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

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

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

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

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

 

下面是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>[email protected]</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>[email protected]</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>

 

 

 

 

 

来自为知笔记(Wiz)

 

转载于:https://my.oschina.net/u/1997676/blog/384063

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/chichou9946/article/details/100721055

智能推荐

docker报错Get https://registry-1.docker.io/v2/: x509: certificate has expired or is not yet valid_reg183的博客-程序员秘密

今天在拉取gitlab镜像的时候一直报这个错误Pulling gitlab (gitlab/gitlab-ce:latest)...ERROR: Get "https://registry-1.docker.io/v2/": x509: certificate has expired or is not yet valid: current time 2020-11-04T03:55:28-05:00 is before 2021-04-25T00:00:00Z原来是因为本地系统时间错误导致报错证书

vuescroll使用文档_weixin_30270561的博客-程序员秘密

vuescroll一个很不错的在vue上面使用的滚动条插件,但是之前使用的时候没有文档,官网打不开,现在更新了,文档也有了,好用多了,现在摘录一下主要的文档以便官网哪天又挂了。这篇文档发表时vuescroll的版本更新至4.9.0-beta.15,一些新特性可能需要更新版本才能正常使用。以下是一些主要的配置项。完整的全局配置:export default { /...

[Python] L1-023 输出GPLT (20分)_chen_zan_yu_的博客-程序员秘密

L1-023输出GPLT(20分)给定一个长度不超过10000的、仅由英文字母构成的字符串。请将字符重新调整顺序,按GPLTGPLT....这样的顺序输出,并忽略其它字符。当然,四种字符(不区分大小写)的个数不一定是一样多的,若某种字符已经输出完,则余下的字符仍按GPLT的顺序打印,直到所有字符都被输出。输入格式:输入在一行中给出一个长度不超过10000的、仅由英文字母构成的非空字...

平面分割,空间分割各种变形问题__小可爱的博客-程序员秘密

一、直线分割的变形问题1、直线分割的区域分为有界和无界的区域,那么nnn条直线最多将平面分为多少个有界的区域?解决分割问题的一个很有用的思想为就是动态分析,观察总结。 那么我们可以假设第nnn条直线交于k&gt;0k&gt;0k&gt;0个不同的点,那么观察就可以得到一个结论,那就是我们可以得到新的k−1k-1k−1个有界的区域和222个无界的区域。因此,最多的有界区域与最多区域解LnL_nLn​的差为2∗n2*n2∗n,所有可以得到:Tn=Sn−2=Ln−2∗n=(n−1)(n−2)2=∑i=1n−

Joplin + Typora + PicGo + Gitee_这个男人有点穷的博客-程序员秘密_joplin 图床

Joplin + Typora + PicGo + Gitee软件安装部分略, 百度google一下即可配置Jopin1. Jopin配合Typora才是最佳搭档, 配置如下工具–&gt;选项验证新建笔记, 然后ctrl + E快捷键调用Typora编辑器来使用编写完成后,关闭Typora创建, 还要记得关闭调用, 点击”停止“Typora​ Typora主要是关于图床的设置, 因为Typora的文档如果改变了位置, 很容易丢失本地的图片链接, 所以将图片上传到网上才是最佳

python网络编程报错socket.error: [Errno 9] Bad file descriptor_木子光宅的博客-程序员秘密

想学学python网络编程,按书上写了两个服务器和客户端小程序,结果发现报错:Traceback (most recent call last):  File "./tsTserv.py", line 20, in     data = tcpCliSock.recv(BUFSIZ)  File "/usr/lib/python2.6/socket.py", line 165,

随便推点

跨域问题_世外大帝的博客-程序员秘密

跨域问题,在后台写个过滤器就好了

经营成功的测试职业生涯 ---(James A. Whittaker)(一)_斜杠方子的博客-程序员秘密

参加ChinaTest大会期间,听到的最多的3个问题就是:测试行业的前景;测试人员的职业规划;KPI。对于第一个问题,我是充满信心的。现代的软硬件系统复杂程度正在呈几何速增长,越复杂的系统需要进行测试的强度就会越大,从近几年测试从业人数的猛增就能看出来。在《骇客帝国》那样由人工智能统治人类的世界到来以前,测试仍然是大有可为的。对于第三个问题,貌似不管是基层、中层还是高层,都会为此头疼,断念最后的闪...

Vim插件&插件管理_sanlelele的博客-程序员秘密_vim插件管理

Vim 插件选择插件管理工具vim 缺乏默认的插件管理器,所有插件的文件都散布在 ~/.vim 下的几个文件夹中,插件的安装与更新与删除都需要手动操作,容易出错,通常会选择第三方的插件管理,来统一管理 vim 插件plugin[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-g9ki0gwx-1615463011337)(https://s3.ax1x.com/2020/11/14/DCYEdI.gif)]vundle这里推荐选用的是 Plugin,Vundl

ESP32 ESP-IDF http_server_simple_晨之清风的博客-程序员秘密

陈拓 2021/12/14-2021/12/151. 简介官方文档https://docs.espressif.com/projects/esp-idf/zh_CN/latest/esp32/api-reference/protocols/esp_http_server.html官方例程https://gitee.com/EspressifSystems/esp-idf/tree/master/examples/protocols/http_server/simpleSimple HTT

AndroidStudio Jni 开发初识_Simple_Peng的博客-程序员秘密

NDK 是什么?NDK是一系列工具的集合,帮助开发者快速开发C(或C++)的动态库,并能自动将so和java应用一起打包成apk为什么使用NDK代码的保护。由于apk的java层代码很容易被反编译,而C/C++库反汇难度较大。提高程序的执行效率。将要求高性能的应用逻辑使用C开发,从而提高应用程序的执行效率。便于移植。用C/C++写得库可以方便在其他的嵌入式平台上再次使用。开始使用下载ndk环

推荐文章

热门文章

相关标签