|
137 | 137 | <target>${java.version}</target> |
138 | 138 | </configuration> |
139 | 139 | </plugin> |
140 | | - <plugin> |
141 | | - <groupId>org.sonatype.plugins</groupId> |
142 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
143 | | - <version>1.6.7</version> |
144 | | - <extensions>true</extensions> |
145 | | - <configuration> |
146 | | - <serverId>ossrh</serverId> |
147 | | - <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
148 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
149 | | - </configuration> |
150 | | - </plugin> |
151 | | - <plugin> |
152 | | - <groupId>org.apache.maven.plugins</groupId> |
153 | | - <artifactId>maven-source-plugin</artifactId> |
154 | | - <version>2.2.1</version> |
155 | | - <executions> |
156 | | - <execution> |
157 | | - <id>attach-sources</id> |
158 | | - <goals> |
159 | | - <goal>jar-no-fork</goal> |
160 | | - </goals> |
161 | | - </execution> |
162 | | - </executions> |
163 | | - </plugin> |
164 | | - <plugin> |
165 | | - <groupId>org.apache.maven.plugins</groupId> |
166 | | - <artifactId>maven-javadoc-plugin</artifactId> |
167 | | - <version>2.9.1</version> |
168 | | - <executions> |
169 | | - <execution> |
170 | | - <id>attach-javadocs</id> |
171 | | - <goals> |
172 | | - <goal>jar</goal> |
173 | | - </goals> |
174 | | - </execution> |
175 | | - </executions> |
176 | | - </plugin> |
177 | | - <plugin> |
178 | | - <groupId>org.apache.maven.plugins</groupId> |
179 | | - <artifactId>maven-gpg-plugin</artifactId> |
180 | | - <version>1.6</version> |
181 | | - <executions> |
182 | | - <execution> |
183 | | - <id>sign-artifacts</id> |
184 | | - <phase>verify</phase> |
185 | | - <goals> |
186 | | - <goal>sign</goal> |
187 | | - </goals> |
188 | | - </execution> |
189 | | - </executions> |
190 | | - </plugin> |
191 | 140 | </plugins> |
192 | 141 | </build> |
193 | 142 |
|
| 143 | + <profiles> |
| 144 | + <profile> |
| 145 | + <id>release</id> |
| 146 | + <build> |
| 147 | + <plugins> |
| 148 | + <plugin> |
| 149 | + <groupId>org.apache.maven.plugins</groupId> |
| 150 | + <artifactId>maven-source-plugin</artifactId> |
| 151 | + <version>2.2.1</version> |
| 152 | + <executions> |
| 153 | + <execution> |
| 154 | + <id>attach-sources</id> |
| 155 | + <goals> |
| 156 | + <goal>jar-no-fork</goal> |
| 157 | + </goals> |
| 158 | + </execution> |
| 159 | + </executions> |
| 160 | + </plugin> |
| 161 | + <plugin> |
| 162 | + <groupId>org.apache.maven.plugins</groupId> |
| 163 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 164 | + <version>2.9.1</version> |
| 165 | + <executions> |
| 166 | + <execution> |
| 167 | + <id>attach-javadocs</id> |
| 168 | + <goals> |
| 169 | + <goal>jar</goal> |
| 170 | + </goals> |
| 171 | + </execution> |
| 172 | + </executions> |
| 173 | + </plugin> |
| 174 | + <plugin> |
| 175 | + <groupId>org.sonatype.plugins</groupId> |
| 176 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 177 | + <version>1.6.7</version> |
| 178 | + <extensions>true</extensions> |
| 179 | + <configuration> |
| 180 | + <serverId>ossrh</serverId> |
| 181 | + <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> |
| 182 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 183 | + </configuration> |
| 184 | + </plugin> |
| 185 | + <plugin> |
| 186 | + <groupId>org.apache.maven.plugins</groupId> |
| 187 | + <artifactId>maven-gpg-plugin</artifactId> |
| 188 | + <version>1.6</version> |
| 189 | + <executions> |
| 190 | + <execution> |
| 191 | + <id>sign-artifacts</id> |
| 192 | + <phase>verify</phase> |
| 193 | + <goals> |
| 194 | + <goal>sign</goal> |
| 195 | + </goals> |
| 196 | + </execution> |
| 197 | + </executions> |
| 198 | + </plugin> |
| 199 | + </plugins> |
| 200 | + </build> |
| 201 | + </profile> |
| 202 | + </profiles> |
| 203 | + |
194 | 204 | <distributionManagement> |
195 | 205 | <snapshotRepository> |
196 | 206 | <id>ossrh</id> |
|
0 commit comments