|
8 | 8 | <version>3.3.0</version>
|
9 | 9 | <relativePath/> <!-- lookup parent from repository -->
|
10 | 10 | </parent>
|
11 |
| - <groupId>cn.ipman</groupId> |
| 11 | + |
| 12 | + <groupId>io.github.ipipman</groupId> |
12 | 13 | <artifactId>cache-man</artifactId>
|
13 |
| - <version>0.0.1-SNAPSHOT</version> |
| 14 | + <version>0.0.1</version> |
| 15 | + |
14 | 16 | <name>cache-man</name>
|
15 | 17 | <description>cache-man</description>
|
| 18 | + <packaging>jar</packaging> |
| 19 | + |
16 | 20 | <properties>
|
17 | 21 | <java.version>17</java.version>
|
18 | 22 | </properties>
|
| 23 | + |
| 24 | + <url>https://github.com/ipipman/cache-man</url> |
| 25 | + |
| 26 | + <licenses> |
| 27 | + <license> |
| 28 | + <name>The Apache Software License, Version 2.0</name> |
| 29 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 30 | + <distribution>repo</distribution> |
| 31 | + </license> |
| 32 | + </licenses> |
| 33 | + |
| 34 | + <issueManagement> |
| 35 | + <system>github</system> |
| 36 | + <url>https://github.com/ipipman/cache-man/issues</url> |
| 37 | + </issueManagement> |
| 38 | + |
| 39 | + <scm> |
| 40 | + <connection>scm:git:https://github.com/ipipman/cache-man.git</connection> |
| 41 | + <developerConnection>scm:git:https://github.com/ipipman/cache-man.git</developerConnection> |
| 42 | + <url>https://github.com/ipipman/cache-man</url> |
| 43 | + </scm> |
| 44 | + |
| 45 | + <developers> |
| 46 | + <developer> |
| 47 | + <name>ipman</name> |
| 48 | + |
| 49 | + <url>https://github.com/ipipman</url> |
| 50 | + </developer> |
| 51 | + </developers> |
| 52 | + |
19 | 53 | <dependencies>
|
20 | 54 | <dependency>
|
21 | 55 | <groupId>org.springframework.boot</groupId>
|
|
102 | 136 | </plugin>
|
103 | 137 |
|
104 | 138 | <plugin>
|
105 |
| - <groupId>org.jacoco</groupId> |
106 |
| - <artifactId>jacoco-maven-plugin</artifactId> |
107 |
| - <version>0.8.7</version> |
| 139 | + <groupId>org.codehaus.mojo</groupId> |
| 140 | + <artifactId>flatten-maven-plugin</artifactId> |
| 141 | + <version>1.5.0</version> |
| 142 | + <configuration> |
| 143 | + <updatePomFile>true</updatePomFile> |
| 144 | + <flattenMode>oss</flattenMode> |
| 145 | + </configuration> |
108 | 146 | <executions>
|
109 | 147 | <execution>
|
| 148 | + <id>flatten</id> |
110 | 149 | <goals>
|
111 |
| - <goal>prepare-agent</goal> |
| 150 | + <goal>flatten</goal> |
112 | 151 | </goals>
|
| 152 | + <phase>process-resources</phase> |
113 | 153 | </execution>
|
114 | 154 | <execution>
|
115 |
| - <id>report</id> |
116 |
| - <phase>test</phase> |
| 155 | + <id>flatten.clean</id> |
117 | 156 | <goals>
|
118 |
| - <goal>report</goal> |
| 157 | + <goal>clean</goal> |
119 | 158 | </goals>
|
| 159 | + <phase>clean</phase> |
120 | 160 | </execution>
|
121 | 161 | </executions>
|
122 | 162 | </plugin>
|
| 163 | + |
| 164 | + <plugin> |
| 165 | + <groupId>org.apache.maven.plugins</groupId> |
| 166 | + <artifactId>maven-source-plugin</artifactId> |
| 167 | + <version>3.1.0</version> |
| 168 | + <inherited>true</inherited> |
| 169 | + <executions> |
| 170 | + <execution> |
| 171 | + <id>attach-sources</id> |
| 172 | + <goals> |
| 173 | + <goal>jar</goal> |
| 174 | + </goals> |
| 175 | + </execution> |
| 176 | + </executions> |
| 177 | + <configuration> |
| 178 | + <excludeResources>true</excludeResources> |
| 179 | + <useDefaultExcludes>true</useDefaultExcludes> |
| 180 | + </configuration> |
| 181 | + </plugin> |
| 182 | + |
| 183 | + <plugin> |
| 184 | + <groupId>org.apache.maven.plugins</groupId> |
| 185 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 186 | + <version>3.1.0</version> |
| 187 | + <inherited>true</inherited> |
| 188 | + <executions> |
| 189 | + <execution> |
| 190 | + <id>bundle-sources</id> |
| 191 | + <phase>package</phase> |
| 192 | + <goals> |
| 193 | + <goal>jar</goal> |
| 194 | + </goals> |
| 195 | + </execution> |
| 196 | + </executions> |
| 197 | + <configuration> |
| 198 | + <maxmemory>1024</maxmemory> |
| 199 | + <encoding>UTF-8</encoding> |
| 200 | + <show>protected</show> |
| 201 | + <notree>true</notree> |
| 202 | + |
| 203 | + <!-- Avoid running into Java 8's very restrictive doclint issues --> |
| 204 | + <failOnError>false</failOnError> |
| 205 | + <doclint>none</doclint> |
| 206 | + </configuration> |
| 207 | + </plugin> |
123 | 208 | </plugins>
|
124 | 209 | </build>
|
125 | 210 |
|
| 211 | + <profiles> |
| 212 | + <profile> |
| 213 | + <id>release</id> |
| 214 | + <build> |
| 215 | + <plugins> |
| 216 | + <plugin> |
| 217 | + <groupId>org.apache.maven.plugins</groupId> |
| 218 | + <artifactId>maven-gpg-plugin</artifactId> |
| 219 | + <version>1.6</version> |
| 220 | + <executions> |
| 221 | + <execution> |
| 222 | + <id>sign-artifacts</id> |
| 223 | + <phase>verify</phase> |
| 224 | + <goals> |
| 225 | + <goal>sign</goal> |
| 226 | + </goals> |
| 227 | + </execution> |
| 228 | + </executions> |
| 229 | + </plugin> |
| 230 | + |
| 231 | + <!-- 配置方式:https://central.sonatype.org/publish/publish-portal-maven/#deploymentname --> |
| 232 | + <!-- https://repo1.maven.org/maven2/io/github/ipipman/ --> |
| 233 | + <plugin> |
| 234 | + <groupId>org.sonatype.central</groupId> |
| 235 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 236 | + <version>0.4.0</version> |
| 237 | + <extensions>true</extensions> |
| 238 | + <configuration> |
| 239 | + <publishingServerId>central</publishingServerId> |
| 240 | + <tokenAuth>true</tokenAuth> |
| 241 | + <autoPublish>true</autoPublish> |
| 242 | + <excludeArtifacts> |
| 243 | +<!-- <excludeArtifact>cache-man</excludeArtifact>--> |
| 244 | + </excludeArtifacts> |
| 245 | + </configuration> |
| 246 | + </plugin> |
| 247 | + |
| 248 | + </plugins> |
| 249 | + </build> |
| 250 | + </profile> |
| 251 | + </profiles> |
126 | 252 | </project>
|
0 commit comments