|
4 | 4 |
|
5 | 5 | <groupId>com.itfsw</groupId> |
6 | 6 | <artifactId>mybatis-generator-plugin</artifactId> |
7 | | - <version>1.0.0</version> |
| 7 | + <version>1.0.0-SNAPSHOT</version> |
8 | 8 | <packaging>jar</packaging> |
9 | 9 |
|
10 | 10 | <name>mybatis-generator-plugin</name> |
|
65 | 65 | <execution> |
66 | 66 | <id>attach-sources</id> |
67 | 67 | <goals> |
68 | | - <goal>jar</goal> |
| 68 | + <goal>jar-no-fork</goal> |
69 | 69 | </goals> |
70 | 70 | </execution> |
71 | 71 | </executions> |
|
74 | 74 | <groupId>org.apache.maven.plugins</groupId> |
75 | 75 | <artifactId>maven-javadoc-plugin</artifactId> |
76 | 76 | <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> |
82 | 77 | <executions> |
83 | 78 | <execution> |
84 | 79 | <id>attach-javadocs</id> |
85 | 80 | <goals> |
86 | 81 | <goal>jar</goal> |
87 | 82 | </goals> |
| 83 | + <configuration> |
| 84 | + <additionalparam>${javadoc.opts}</additionalparam> |
| 85 | + </configuration> |
88 | 86 | </execution> |
89 | 87 | </executions> |
90 | 88 | </plugin> |
91 | | - <!-- gpg 签名 --> |
| 89 | + <!-- gpg 签名插件 --> |
92 | 90 | <plugin> |
93 | 91 | <groupId>org.apache.maven.plugins</groupId> |
94 | 92 | <artifactId>maven-gpg-plugin</artifactId> |
|
106 | 104 | </plugins> |
107 | 105 | </build> |
108 | 106 | </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> |
109 | 117 | </profiles> |
110 | 118 |
|
111 | 119 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++build++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
112 | 120 | <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> |
113 | 135 | <!-- 配置java版本 不配置的话默认父类配置的是1.6--> |
114 | 136 | <pluginManagement> |
115 | 137 | <plugins> |
|
138 | 160 |
|
139 | 161 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++scm++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
140 | 162 | <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> |
147 | 165 | <url>https://github.com/itfsw/mybatis-generator-plugin</url> |
148 | | - <tag>v1.0.0</tag> |
149 | 166 | </scm> |
150 | 167 |
|
151 | 168 | <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++distribution++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
152 | 169 | <distributionManagement> |
153 | 170 | <snapshotRepository> |
154 | | - <id>sonatype</id> |
| 171 | + <id>ossrh</id> |
155 | 172 | <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
156 | 173 | </snapshotRepository> |
157 | 174 | <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> |
160 | 177 | </repository> |
161 | 178 | </distributionManagement> |
162 | 179 | </project> |
0 commit comments