Skip to content

Commit e1157a6

Browse files
author
hewei
committed
提交中央库设置
1 parent 1e8d274 commit e1157a6

File tree

1 file changed

+35
-18
lines changed

1 file changed

+35
-18
lines changed

pom.xml

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.itfsw</groupId>
66
<artifactId>mybatis-generator-plugin</artifactId>
7-
<version>1.0.0</version>
7+
<version>1.0.0-SNAPSHOT</version>
88
<packaging>jar</packaging>
99

1010
<name>mybatis-generator-plugin</name>
@@ -65,7 +65,7 @@
6565
<execution>
6666
<id>attach-sources</id>
6767
<goals>
68-
<goal>jar</goal>
68+
<goal>jar-no-fork</goal>
6969
</goals>
7070
</execution>
7171
</executions>
@@ -74,21 +74,19 @@
7474
<groupId>org.apache.maven.plugins</groupId>
7575
<artifactId>maven-javadoc-plugin</artifactId>
7676
<version>2.10.4</version>
77-
<configuration>
78-
<charset>${project.build.sourceEncoding}</charset>
79-
<encoding>${project.build.sourceEncoding}</encoding>
80-
<docencoding>${project.build.sourceEncoding}</docencoding>
81-
</configuration>
8277
<executions>
8378
<execution>
8479
<id>attach-javadocs</id>
8580
<goals>
8681
<goal>jar</goal>
8782
</goals>
83+
<configuration>
84+
<additionalparam>${javadoc.opts}</additionalparam>
85+
</configuration>
8886
</execution>
8987
</executions>
9088
</plugin>
91-
<!-- gpg 签名 -->
89+
<!-- gpg 签名插件 -->
9290
<plugin>
9391
<groupId>org.apache.maven.plugins</groupId>
9492
<artifactId>maven-gpg-plugin</artifactId>
@@ -106,10 +104,34 @@
106104
</plugins>
107105
</build>
108106
</profile>
107+
<!-- java 8 以后 doclint 导致maven-javadoc-plugin报错 -->
108+
<profile>
109+
<id>java8-doclint-disabled</id>
110+
<activation>
111+
<jdk>[1.8,)</jdk>
112+
</activation>
113+
<properties>
114+
<javadoc.opts>-Xdoclint:none</javadoc.opts>
115+
</properties>
116+
</profile>
109117
</profiles>
110118

111119
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++build++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
112120
<build>
121+
<plugins>
122+
<!-- 发布中央仓库用 -->
123+
<plugin>
124+
<groupId>org.sonatype.plugins</groupId>
125+
<artifactId>nexus-staging-maven-plugin</artifactId>
126+
<version>1.6.7</version>
127+
<extensions>true</extensions>
128+
<configuration>
129+
<serverId>ossrh</serverId>
130+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
131+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
132+
</configuration>
133+
</plugin>
134+
</plugins>
113135
<!-- 配置java版本 不配置的话默认父类配置的是1.6-->
114136
<pluginManagement>
115137
<plugins>
@@ -138,25 +160,20 @@
138160

139161
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++scm++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
140162
<scm>
141-
<connection>
142-
scm:git:https://github.com/itfsw/mybatis-generator-plugin.git
143-
</connection>
144-
<developerConnection>
145-
scm:git:https://github.com/itfsw/mybatis-generator-plugin.git
146-
</developerConnection>
163+
<connection>scm:git:https://github.com/itfsw/mybatis-generator-plugin.git</connection>
164+
<developerConnection>scm:git:https://github.com/itfsw/mybatis-generator-plugin.git</developerConnection>
147165
<url>https://github.com/itfsw/mybatis-generator-plugin</url>
148-
<tag>v1.0.0</tag>
149166
</scm>
150167

151168
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++distribution++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
152169
<distributionManagement>
153170
<snapshotRepository>
154-
<id>sonatype</id>
171+
<id>ossrh</id>
155172
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
156173
</snapshotRepository>
157174
<repository>
158-
<id>sonatype</id>
159-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
175+
<id>ossrh</id>
176+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
160177
</repository>
161178
</distributionManagement>
162179
</project>

0 commit comments

Comments
 (0)