发布源码及依赖到网络maven仓库-程序员宅基地

技术标签: 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

智能推荐

Java ip地址查询,根据ip接口获得ip所在省市区,邮编,运营商等_java如何通过ip地址获得运营商的ldns-程序员宅基地

文章浏览阅读5.0k次。互联网有很多接口可以实现通过ip查询到具体的位置,如下:通过淘宝IP地址库获取IP位置1. 请求接口(GET):http://ip.taobao.com/service/getIpInfo.php?ip=[ip地址字串]2. 响应信息:(json格式的)国家 、省(自治区或直辖市)、市(县)、运营商3. 返回数据格式:{"code":0,"data":{"ip":"210.75..._java如何通过ip地址获得运营商的ldns

Ubuntu pycharm的一些问题_ubuntu your pycharm evaluation has-程序员宅基地

文章浏览阅读150次。Ubuntu pycharm 运行python时:import rospyNo module named rospy试了网上很多方法都不行,最后重装ROS解决。No module named rospkg从终端下载: sudo apt-get install python-rospkg 或者在pycharm的setting中安装。No module named cv2:在pycharm中下载opencv-python..._ubuntu your pycharm evaluation has

操作系统的概念(定义)_操作系统的定义是什么?地位是什么?有什么重要特征?结合实际生活,你是如何理解操作系统的?(5.0分)-程序员宅基地

文章浏览阅读4.1k次,点赞3次,收藏13次。操作系统的概念(定义)一台电脑的诞生~Step1:厂家组装一台裸机Step2:出售前安装操作系统Step3:用户安装应用程序(eg: QQ)Step4:使用QQ聊天操作系统(Operating System, OS)是指控制和管理整个计算机系统的*硬件和软件***(操作系统是系统资源的管理者)资源,并合理地组织调度计算机的工作和资源的分配;以提供给用户和其他软件方便的接口和环境(向上层提供方便易用的服务):它是计算机系统中最基本的系统软件(是最接近硬件的一层软件)直观的例子:打开 Win_操作系统的定义是什么?地位是什么?有什么重要特征?结合实际生活,你是如何理解操作系统的?(5.0分)请解释一下什么叫做多道批处理系统?

IDEA-插件开发踩坑记录-第一坑-创建gradle工程编译失败_an exception occurred applying plugin request [id:-程序员宅基地

文章浏览阅读2.3w次,点赞16次,收藏20次。IDEA插件开发,第一步编译就失败,可能原因与如何解决?_an exception occurred applying plugin request [id: 'org.jetbrains.intellij',

谷歌支付服务端服务账号订单校验_android google pay取消支付后 重新付款订单 状态不对-程序员宅基地

文章浏览阅读3.2k次,点赞3次,收藏10次。谷歌支付服务端服务账号订单校验整个开发背景是前端在调用完google play v3 支付流程后,需要后台验证支付结果以及在自己的服务生成订单相关信息。对于服务账号的文档搜了度娘对于这块的资料少,无从下手,踩了不少坑。网上的搜出来的大多数是针对OAuth 2.0 客户端 ID的验证,需要使用到refreshAccess,但是服务账号不一样,那不需要验签通过后直接能请求查询订单。用到的 maven 依赖jar包登录校验订单创建订单成功校验整个开发背景是前端在调用完google play v3 支付流程后,需_android google pay取消支付后 重新付款订单 状态不对

解决 vue中props值无法赋值给data域的问题_vue 读取子组件的数据 能打印但不能赋值-程序员宅基地

文章浏览阅读1.6w次,点赞7次,收藏18次。vue 中父组件向子组件传递数据用 props, 但是子组件是无法修改它的。如果子组件需要动态修改它就只能自造一个对应的 data 域。比如&lt;!-- --&gt;&lt;template&gt; &lt;div&gt;这里是汇总信息 &lt;ul&gt; &lt;li&gt;{{total}}&lt;/li&gt; &l..._vue 读取子组件的数据 能打印但不能赋值

随便推点

前端之路从此启程____ _.-' \ / \ / \ / `.___ ( .--.)\/(,.--. `-. ,',-程序员宅基地

文章浏览阅读862次,点赞10次,收藏3次。一楼镇图## _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ...____ _.-' \ / \ / \ / `.___ ( .--.)\/(,.--. `-. ,',-. \ / ,-.`. ) ( / \ / \ )

模电(一)半导体基础_模电中va是什么-程序员宅基地

文章浏览阅读2k次,点赞9次,收藏25次。模拟电子电路之半导体基础【概念-本征半导体-杂质半导体-PN结】_模电中va是什么

python小作业4代码(简单循环语句的应用)_智力捕鱼python-程序员宅基地

文章浏览阅读1.6k次,点赞5次,收藏10次。任务一:水仙花数判断程序任务内容:水仙花数是一个三位整数,如153是一个水仙花数,是因为该数的百位的立方、十位的立方、个位的立方之和等于该数本身。程序编写要求:使用for语句完成;统计水仙花数个数的值请保存到变量中,并要求自动进行统计。代码:print("所有三位数中的水仙花数如下所示:")count=0for i in range(100,1000): a = i//10..._智力捕鱼python

大数据分析R语言RStudio使用教程_r包一项一项读取不是连续-程序员宅基地

文章浏览阅读8.8k次,点赞9次,收藏74次。  RStudio是用于R编程的开源工具。如果您对使用R编程感兴趣,则值得了解RStudio的功能。它是一种灵活的工具,可帮助您创建可读的分析,并将您的代码,图像,注释和图解保持在一起。  在此大数据分析R语言RStudio使用教程文章中,我们将介绍RStudio免费版本的一些最佳功能:RStudio Desktop。我们收集了一些RStudio的重要技巧,窍门和快捷方式,可快速将您变成RStudio高级用户!  1.在窗口窗格之间快速导航  RStudio窗格可让您访问有关项目的重要信息。知道_r包一项一项读取不是连续

主流爬虫框架的基本介绍_cdp4j和crawler4-程序员宅基地

文章浏览阅读1.3w次,点赞4次,收藏24次。1)、Scrapy:Scrapy,Python开发的一个快速、高层次的屏幕抓取和web抓取框架,用于抓取web站点并从页面中提取结构化的数据。Scrapy用途广泛,可以用于数据挖掘、监测和自动化测试.Scrapy吸引人的地方在于它是一个框架,任何人都可以根据需求方便的修改。它也提供了多种类型爬虫的基类,如BaseSpider、sitemap爬虫等,最新版本又提供了web2.0爬虫的支持。Scrap,是碎片的意思,这个Python的爬虫框架叫Scrapy。优点:1.极其灵活的定制化爬取。2.社区人_cdp4j和crawler4

Yolov4性能分析(上)_yolov4参数量-程序员宅基地

文章浏览阅读2.2k次。Yolov4性能分析(上)一.目录实验测试1) 测试介绍2) Test3) Train二.分析1.实验测试1实验测试方法Yolov4训练train实验方法(Darknet should becompiled with OpenCV):duration_run_detector:./darknet detector train cfg/coco.datacfg/yolov4.cfg data/yolov4.conv.137Yolov4测试test实验方法(Yolo _yolov4参数量

推荐文章

热门文章

相关标签