3030
3131 <groupId >de.triology.cb</groupId >
3232 <artifactId >command-bus</artifactId >
33+ <name >command-bus</name >
34+ <description >CDI enabled Java Command-Bus</description >
3335 <version >0.2.1-SNAPSHOT</version >
3436 <url >https://github.com/triologygmbh/command-bus</url >
3537
7173 <url >https://github.com/triologygmbh/command-bus/issues</url >
7274 </issueManagement >
7375
76+ <distributionManagement >
77+ <snapshotRepository >
78+ <id >ossrh</id >
79+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
80+ </snapshotRepository >
81+ <repository >
82+ <id >ossrh</id >
83+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
84+ </repository >
85+ </distributionManagement >
86+
7487 <dependencies >
7588
7689 <dependency >
196209 <configuration >
197210 <!-- Make our tags look like e.g. "1.0.1" -->
198211 <tagNameFormat >@{project.version}</tagNameFormat >
212+ <!-- During release:perform, enable the "release" profile -->
213+ <releaseProfiles >release</releaseProfiles >
199214 </configuration >
200215 </plugin >
201216
202217 <plugin >
203218 <groupId >org.apache.maven.plugins</groupId >
204219 <artifactId >maven-deploy-plugin</artifactId >
205220 <version >2.8.2</version >
206- <configuration >
207- <!-- Deploy to local directory only for now -->
208- <altDeploymentRepository >internal.repo::default::file://${project.build.directory} /release</altDeploymentRepository >
209- </configuration >
210221 </plugin >
211222
212223 <plugin >
219230 </configuration >
220231 </plugin >
221232
222- <plugin >
223- <groupId >org.apache.maven.plugins</groupId >
224- <artifactId >maven-source-plugin</artifactId >
225- <version >3.0.1</version >
226- <executions >
227- <execution >
228- <id >attach-sources</id >
229- <goals >
230- <goal >jar</goal >
231- </goals >
232- </execution >
233- </executions >
234- </plugin >
235-
236233 <plugin >
237234 <!-- Automatically apply license headers to files and fails build if one is missing: -->
238235 <groupId >com.mycila</groupId >
328325 </plugins >
329326 </build >
330327 </profile >
328+
329+ <profile >
330+ <id >release</id >
331+ <build >
332+ <plugins >
333+
334+ <plugin >
335+ <groupId >org.apache.maven.plugins</groupId >
336+ <artifactId >maven-source-plugin</artifactId >
337+ <version >3.0.1</version >
338+ <executions >
339+ <execution >
340+ <id >attach-sources</id >
341+ <goals >
342+ <goal >jar-no-fork</goal >
343+ </goals >
344+ </execution >
345+ </executions >
346+ </plugin >
347+
348+ <plugin >
349+ <groupId >org.apache.maven.plugins</groupId >
350+ <artifactId >maven-javadoc-plugin</artifactId >
351+ <version >2.10.4</version >
352+ <executions >
353+ <execution >
354+ <id >attach-javadocs</id >
355+ <goals >
356+ <goal >jar</goal >
357+ </goals >
358+ </execution >
359+ </executions >
360+ </plugin >
361+
362+ <plugin >
363+ <groupId >org.sonatype.plugins</groupId >
364+ <artifactId >nexus-staging-maven-plugin</artifactId >
365+ <version >1.6.8</version >
366+ <extensions >true</extensions >
367+ <configuration >
368+ <serverId >ossrh</serverId >
369+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
370+ <autoReleaseAfterClose >true</autoReleaseAfterClose >
371+ </configuration >
372+ </plugin >
373+
374+ <plugin >
375+ <groupId >org.apache.maven.plugins</groupId >
376+ <artifactId >maven-gpg-plugin</artifactId >
377+ <version >1.6</version >
378+ <executions >
379+ <execution >
380+ <id >sign-artifacts</id >
381+ <phase >verify</phase >
382+ <goals >
383+ <goal >sign</goal >
384+ </goals >
385+ </execution >
386+ </executions >
387+ </plugin >
388+ </plugins >
389+ </build >
390+ </profile >
331391 </profiles >
332392
333393</project >
0 commit comments