|
113 | 113 | </plugin> |
114 | 114 | </plugins> |
115 | 115 | </build> |
| 116 | + <profiles> |
| 117 | + <!-- plugins needed to deploy to Maven Central --> |
| 118 | + <profile> |
| 119 | + <id>central-deploy</id> |
| 120 | + <build> |
| 121 | + <plugins> |
| 122 | + <plugin> |
| 123 | + <artifactId>maven-gpg-plugin</artifactId> |
| 124 | + <version>${maven-gpg-plugin.version}</version> |
| 125 | + <executions> |
| 126 | + <execution> |
| 127 | + <id>sign-artifacts</id> |
| 128 | + <phase>verify</phase> |
| 129 | + <goals> |
| 130 | + <goal>sign</goal> |
| 131 | + </goals> |
| 132 | + <configuration> |
| 133 | + <!-- This is necessary for gpg to not try to use the pinentry programs --> |
| 134 | + <gpgArguments> |
| 135 | + <arg>--pinentry-mode</arg> |
| 136 | + <arg>loopback</arg> |
| 137 | + </gpgArguments> |
| 138 | + </configuration> |
| 139 | + </execution> |
| 140 | + </executions> |
| 141 | + </plugin> |
| 142 | + <plugin> |
| 143 | + <groupId>org.codehaus.mojo</groupId> |
| 144 | + <artifactId>versions-maven-plugin</artifactId> |
| 145 | + <version>${versions-maven-plugin.version}</version> |
| 146 | + <configuration> |
| 147 | + <generateBackupPoms>false</generateBackupPoms> |
| 148 | + </configuration> |
| 149 | + </plugin> |
| 150 | + <plugin> |
| 151 | + <artifactId>maven-deploy-plugin</artifactId> |
| 152 | + <version>${maven-deploy-plugin.version}</version> |
| 153 | + <configuration> |
| 154 | + <skip>true</skip> |
| 155 | + </configuration> |
| 156 | + </plugin> |
| 157 | + <plugin> |
| 158 | + <groupId>org.apache.maven.plugins</groupId> |
| 159 | + <artifactId>maven-source-plugin</artifactId> |
| 160 | + <version>${maven-source-plugin.version}</version> |
| 161 | + <executions> |
| 162 | + <execution> |
| 163 | + <id>attach-sources</id> |
| 164 | + <goals> |
| 165 | + <goal>jar</goal> |
| 166 | + </goals> |
| 167 | + </execution> |
| 168 | + </executions> |
| 169 | + </plugin> |
| 170 | + <plugin> |
| 171 | + <groupId>org.apache.maven.plugins</groupId> |
| 172 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 173 | + <version>${maven-javadoc-plugin.version}</version> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <id>attach-javadocs</id> |
| 177 | + <goals> |
| 178 | + <goal>jar</goal> |
| 179 | + </goals> |
| 180 | + </execution> |
| 181 | + </executions> |
| 182 | + </plugin> |
| 183 | + <plugin> |
| 184 | + <groupId>org.sonatype.plugins</groupId> |
| 185 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 186 | + <version>${nexus-staging-maven-plugin.version}</version> |
| 187 | + <extensions>true</extensions> |
| 188 | + <configuration> |
| 189 | + <serverId>oss.sonatype.org</serverId> |
| 190 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 191 | + <description>${project.version}</description> |
| 192 | + </configuration> |
| 193 | + <executions> |
| 194 | + <execution> |
| 195 | + <id>deploy-to-sonatype</id> |
| 196 | + <phase>deploy</phase> |
| 197 | + <goals> |
| 198 | + <goal>deploy</goal> |
| 199 | + <goal>release</goal> |
| 200 | + </goals> |
| 201 | + </execution> |
| 202 | + </executions> |
| 203 | + </plugin> |
| 204 | + </plugins> |
| 205 | + </build> |
| 206 | + </profile> |
| 207 | + </profiles> |
116 | 208 | </project> |
0 commit comments