Maven父级pom.xml配置文件
<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.zfull.pay</groupId> <artifactId>pay-parents</artifactId> <version>1.0.1</version> <packaging>pom</packaging> <name>pay-parents</name> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <repositories> <repository> <id>nexus</id> <name>Nexus Repositoy</name> <!-- <url>http://113.98.101.189:8082/nexus/content/groups/public/</url> --> <url>http://10.252.1.165:8082/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <distributionManagement> <repository> <id>SmartPay-Releases</id> <!-- <url>http://113.98.101.189:8082/nexus/content/repositories/SmartPay-Releases</url> --> <url>http://10.252.1.165:8082/nexus/content/repositories/SmartPay-Releases</url> </repository> <snapshotRepository> <id>SmartPay-Snapshots</id> <!-- <url>http://113.98.101.189:8082/nexus/content/repositories/SmartPay-Snapshots</url> --> <url>http://10.252.1.165:8082/nexus/content/repositories/SmartPay-Snapshots</url> </snapshotRepository> </distributionManagement> <!-- 配置Maven SonarQube --> <profiles> <profile> <id>sonar</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <!-- Example for MySQL --> <sonar.jdbc.url> jdbc:mysql://10.252.1.165:3306/sonarqube?useUnicode=true&characterEncoding=utf8 </sonar.jdbc.url> <sonar.jdbc.username>sonar</sonar.jdbc.username> <sonar.jdbc.password>sonar</sonar.jdbc.password> <sonar.host.url> http://10.252.1.165:9000 </sonar.host.url> </properties> </profile> </profiles> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.3</version> <configuration> <charset>UTF-8</charset> <encoding>UTF-8</encoding> <docencoding>UTF-8</docencoding> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <configuration> <attach>true</attach> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
What a meaningless sense if losing myself,though owning all of the world.