|
45 | 45 | <developerConnection>scm:git:git@github.com:WASdev/ci.maven.tools.git</developerConnection> |
46 | 46 | <url>https://github.com/WASdev/ci.maven.tools</url> |
47 | 47 | </scm> |
48 | | - |
| 48 | + |
| 49 | + <distributionManagement> |
| 50 | + <repository> |
| 51 | + <id>sonatype-nexus-staging</id> |
| 52 | + <name>Nexus Release Repository</name> |
| 53 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 54 | + </repository> |
| 55 | + </distributionManagement> |
| 56 | + |
49 | 57 | <build> |
50 | 58 | <pluginManagement> |
51 | 59 | <plugins> |
| 60 | + <plugin> |
| 61 | + <groupId>org.apache.maven.plugins</groupId> |
| 62 | + <artifactId>maven-source-plugin</artifactId> |
| 63 | + <version>2.4</version> |
| 64 | + </plugin> |
| 65 | + <plugin> |
| 66 | + <groupId>org.apache.maven.plugins</groupId> |
| 67 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 68 | + <version>2.10.3</version> |
| 69 | + </plugin> |
| 70 | + <plugin> |
| 71 | + <groupId>org.apache.maven.plugins</groupId> |
| 72 | + <artifactId>maven-gpg-plugin</artifactId> |
| 73 | + <version>1.6</version> |
| 74 | + </plugin> |
| 75 | + <plugin> |
| 76 | + <groupId>org.apache.maven.plugins</groupId> |
| 77 | + <artifactId>maven-release-plugin</artifactId> |
| 78 | + <version>2.5.3</version> |
| 79 | + <configuration> |
| 80 | + <useReleaseProfile>false</useReleaseProfile> |
| 81 | + <releaseProfiles>sonatype-oss-release</releaseProfiles> |
| 82 | + <goals>deploy</goals> |
| 83 | + </configuration> |
| 84 | + </plugin> |
52 | 85 | <plugin> |
53 | 86 | <groupId>org.apache.maven.archetype</groupId> |
54 | 87 | <artifactId>archetype-packaging</artifactId> |
|
83 | 116 | </build> |
84 | 117 |
|
85 | 118 | <profiles> |
| 119 | + <profile> |
| 120 | + <id>sonatype-oss-release</id> |
| 121 | + <build> |
| 122 | + <plugins> |
| 123 | + <plugin> |
| 124 | + <groupId>org.apache.maven.plugins</groupId> |
| 125 | + <artifactId>maven-source-plugin</artifactId> |
| 126 | + <executions> |
| 127 | + <execution> |
| 128 | + <id>attach-sources</id> |
| 129 | + <goals> |
| 130 | + <goal>jar-no-fork</goal> |
| 131 | + </goals> |
| 132 | + </execution> |
| 133 | + </executions> |
| 134 | + </plugin> |
| 135 | + <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
| 137 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <id>attach-javadocs</id> |
| 141 | + <goals> |
| 142 | + <goal>jar</goal> |
| 143 | + </goals> |
| 144 | + </execution> |
| 145 | + </executions> |
| 146 | + </plugin> |
| 147 | + <plugin> |
| 148 | + <groupId>org.apache.maven.plugins</groupId> |
| 149 | + <artifactId>maven-gpg-plugin</artifactId> |
| 150 | + <executions> |
| 151 | + <execution> |
| 152 | + <id>sign-artifacts</id> |
| 153 | + <phase>verify</phase> |
| 154 | + <goals> |
| 155 | + <goal>sign</goal> |
| 156 | + </goals> |
| 157 | + </execution> |
| 158 | + </executions> |
| 159 | + </plugin> |
| 160 | + </plugins> |
| 161 | + </build> |
| 162 | + </profile> |
86 | 163 | <profile> |
87 | 164 | <id>skip-test</id> |
88 | 165 | <activation> |
|
0 commit comments