|
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | | - <parent> |
6 | | - <groupId>org.minbox.framework</groupId> |
7 | | - <artifactId>minbox-parent</artifactId> |
8 | | - <version>1.1.0</version> |
9 | | - <relativePath/> |
10 | | - </parent> |
11 | 5 | <packaging>pom</packaging> |
12 | 6 | <modules> |
13 | 7 | <module>api-boot-project</module> |
|
19 | 13 | <name>ApiBoot Build</name> |
20 | 14 | <properties> |
21 | 15 | <revision>2.3.12-SNAPSHOT</revision> |
22 | | - <jdk.version>1.8</jdk.version> |
| 16 | + <jdk.version>11</jdk.version> |
23 | 17 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
24 | 18 | <maven.compiler.encoding>UTF-8</maven.compiler.encoding> |
25 | 19 | <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version> |
| 20 | + <maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version> |
| 21 | + <maven.source.plugin.version>3.3.1</maven.source.plugin.version> |
| 22 | + <maven-javadoc-plugin.version>3.11.1</maven-javadoc-plugin.version> |
| 23 | + <flatten-maven-plugin.version>1.2.5</flatten-maven-plugin.version> |
| 24 | + <minbox-bom.version>1.1.0</minbox-bom.version> |
26 | 25 | </properties> |
27 | 26 | <description> |
28 | 27 | ApiBoot is a component service solution. |
|
43 | 42 | <email>hengboy@minbox.org</email> |
44 | 43 | </developer> |
45 | 44 | </developers> |
46 | | - <!--配置拉取仓库地址--> |
| 45 | + <dependencyManagement> |
| 46 | + <dependencies> |
| 47 | + <dependency> |
| 48 | + <groupId>org.minbox.framework</groupId> |
| 49 | + <artifactId>minbox-bom</artifactId> |
| 50 | + <version>${minbox-bom.version}</version> |
| 51 | + <type>pom</type> |
| 52 | + <scope>import</scope> |
| 53 | + </dependency> |
| 54 | + </dependencies> |
| 55 | + </dependencyManagement> |
47 | 56 | <repositories> |
48 | 57 | <repository> |
49 | | - <id>aliyun-central</id> |
50 | | - <url>https://maven.aliyun.com/repository/central</url> |
51 | | - <releases> |
52 | | - <enabled>true</enabled> |
53 | | - </releases> |
| 58 | + <id>central</id> |
| 59 | + <url>https://repo.maven.apache.org/maven2</url> |
54 | 60 | </repository> |
55 | 61 | <repository> |
56 | 62 | <id>snapshots</id> |
|
59 | 65 | <enabled>true</enabled> |
60 | 66 | </snapshots> |
61 | 67 | </repository> |
62 | | - <repository> |
63 | | - <id>yuqiyu-snapshots</id> |
64 | | - <url>http://maven.yuqiyu.com/repository/maven-snapshots/</url> |
65 | | - <snapshots> |
66 | | - <enabled>true</enabled> |
67 | | - </snapshots> |
68 | | - </repository> |
69 | 68 | </repositories> |
70 | 69 | <build> |
71 | 70 | <plugins> |
72 | | - <!--jdk version--> |
73 | 71 | <plugin> |
74 | 72 | <groupId>org.apache.maven.plugins</groupId> |
75 | 73 | <artifactId>maven-compiler-plugin</artifactId> |
76 | | - <version>3.10.1</version> |
| 74 | + <version>3.11.0</version> |
77 | 75 | <configuration> |
78 | 76 | <source>${jdk.version}</source> |
79 | 77 | <target>${jdk.version}</target> |
| 78 | + <encoding>${project.build.sourceEncoding}</encoding> |
80 | 79 | </configuration> |
81 | 80 | </plugin> |
82 | 81 | <plugin> |
83 | 82 | <groupId>org.codehaus.mojo</groupId> |
84 | | - <artifactId>cobertura-maven-plugin</artifactId> |
85 | | - <version>${cobertura-maven-plugin.version}</version> |
| 83 | + <artifactId>flatten-maven-plugin</artifactId> |
| 84 | + <version>${flatten-maven-plugin.version}</version> |
| 85 | + <configuration> |
| 86 | + <updatePomFile>true</updatePomFile> |
| 87 | + <flattenMode>resolveCiFriendliesOnly</flattenMode> |
| 88 | + </configuration> |
| 89 | + <executions> |
| 90 | + <execution> |
| 91 | + <id>flatten</id> |
| 92 | + <phase>process-resources</phase> |
| 93 | + <goals> |
| 94 | + <goal>flatten</goal> |
| 95 | + </goals> |
| 96 | + </execution> |
| 97 | + <execution> |
| 98 | + <id>flatten.clean</id> |
| 99 | + <phase>clean</phase> |
| 100 | + <goals> |
| 101 | + <goal>clean</goal> |
| 102 | + </goals> |
| 103 | + </execution> |
| 104 | + </executions> |
| 105 | + </plugin> |
| 106 | + <!--Source--> |
| 107 | + <plugin> |
| 108 | + <groupId>org.apache.maven.plugins</groupId> |
| 109 | + <artifactId>maven-source-plugin</artifactId> |
| 110 | + <version>${maven.source.plugin.version}</version> |
| 111 | + <executions> |
| 112 | + <execution> |
| 113 | + <id>package</id> |
| 114 | + <goals> |
| 115 | + <goal>jar-no-fork</goal> |
| 116 | + </goals> |
| 117 | + </execution> |
| 118 | + </executions> |
| 119 | + </plugin> |
| 120 | + <!--Javadoc--> |
| 121 | + <plugin> |
| 122 | + <groupId>org.apache.maven.plugins</groupId> |
| 123 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 124 | + <version>${maven-javadoc-plugin.version}</version> |
| 125 | + <configuration> |
| 126 | + <encoding>${project.build.sourceEncoding}</encoding> |
| 127 | + </configuration> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <id>package</id> |
| 131 | + <goals> |
| 132 | + <goal>jar</goal> |
| 133 | + </goals> |
| 134 | + </execution> |
| 135 | + </executions> |
| 136 | + </plugin> |
| 137 | + <plugin> |
| 138 | + <groupId>org.sonatype.central</groupId> |
| 139 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 140 | + <version>0.9.0</version> |
| 141 | + <extensions>true</extensions> |
86 | 142 | <configuration> |
87 | | - <formats> |
88 | | - <format>html</format> |
89 | | - <format>xml</format> |
90 | | - </formats> |
91 | | - <check /> |
| 143 | + <publishingServerId>hengyu</publishingServerId> |
92 | 144 | </configuration> |
93 | 145 | </plugin> |
| 146 | + <!--GPG--> |
| 147 | + <plugin> |
| 148 | + <artifactId>maven-gpg-plugin</artifactId> |
| 149 | + <version>${maven-gpg-plugin.version}</version> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <id>sign-artifacts</id> |
| 153 | + <phase>verify</phase> |
| 154 | + <goals> |
| 155 | + <goal>sign</goal> |
| 156 | + </goals> |
| 157 | + </execution> |
| 158 | + </executions> |
| 159 | + </plugin> |
94 | 160 | </plugins> |
95 | 161 | </build> |
96 | 162 | </project> |
0 commit comments