|
29 | 29 | < developerConnection>scm:git: [email protected]:zarr-developers/zarr-java.git</ developerConnection> |
30 | 30 | </scm> |
31 | 31 |
|
32 | | - |
33 | 32 | <properties> |
34 | 33 | <maven.compiler.source>8</maven.compiler.source> |
35 | 34 | <maven.compiler.target>8</maven.compiler.target> |
|
107 | 106 | </dependency> |
108 | 107 | </dependencies> |
109 | 108 |
|
110 | | - |
111 | 109 | <distributionManagement> |
112 | 110 | <repository> |
113 | 111 | <id>ossrh</id> |
114 | 112 | <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
115 | 113 | </repository> |
116 | 114 | </distributionManagement> |
| 115 | + |
117 | 116 | <!-- Repositories are not recommended (see https://maven.apache.org/repository/guide-central-repository-upload.html#faq-and-common-mistakes)--> |
118 | 117 | <repositories> |
119 | 118 | <repository> |
|
140 | 139 | <configuration> |
141 | 140 | <source>${maven.compiler.source}</source> |
142 | 141 | <target>${maven.compiler.target}</target> |
| 142 | + <encoding>UTF-8</encoding> |
| 143 | + <excludes> |
| 144 | + <exclude>.gitignore</exclude> |
| 145 | + <exclude>temp/**</exclude> |
| 146 | + </excludes> |
143 | 147 | </configuration> |
144 | | - |
145 | | - <groupId>org.sonatype.plugins</groupId> |
146 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
147 | | - <version>1.6.6</version> |
148 | | - <extensions>true</extensions> |
| 148 | + </plugin> |
| 149 | + <plugin> |
| 150 | + <groupId>org.apache.maven.plugins</groupId> |
| 151 | + <artifactId>maven-source-plugin</artifactId> |
| 152 | + <version>3.1.0</version> |
| 153 | + <executions> |
| 154 | + <execution> |
| 155 | + <phase>verify</phase> |
| 156 | + <goals> |
| 157 | + <goal>jar</goal> |
| 158 | + </goals> |
| 159 | + <configuration> |
| 160 | + <excludes> |
| 161 | + <exclude>temp.**</exclude> |
| 162 | + </excludes> |
| 163 | + </configuration> |
| 164 | + </execution> |
| 165 | + </executions> |
| 166 | + <configuration> |
| 167 | + <excludeResources>true</excludeResources> |
| 168 | + </configuration> |
| 169 | + </plugin> |
| 170 | + <plugin> |
| 171 | + <groupId>org.apache.maven.plugins</groupId> |
| 172 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 173 | + <version>3.5.0</version> |
| 174 | + <executions> |
| 175 | + <execution> |
| 176 | + <id>attach-javadoc</id> |
| 177 | + <goals> |
| 178 | + <goal>jar</goal> |
| 179 | + </goals> |
| 180 | + </execution> |
| 181 | + </executions> |
| 182 | + <configuration> |
| 183 | + <source>8</source> |
| 184 | + </configuration> |
| 185 | + </plugin> |
| 186 | + <plugin> |
| 187 | + <groupId>org.apache.maven.plugins</groupId> |
| 188 | + <artifactId>maven-resources-plugin</artifactId> |
| 189 | + <version>3.1.0</version> |
149 | 190 | <configuration> |
150 | | - <serverId>nexus</serverId> |
151 | | - <nexusUrl>http://localhost:8081/nexus/</nexusUrl> |
| 191 | + <encoding>UTF-8</encoding> |
152 | 192 | </configuration> |
153 | 193 | </plugin> |
| 194 | + <plugin> |
| 195 | + <groupId>org.codehaus.mojo</groupId> |
| 196 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 197 | + <version>1.10</version> |
| 198 | + </plugin> |
| 199 | + <plugin> |
| 200 | + <groupId>org.apache.maven.plugins</groupId> |
| 201 | + <artifactId>maven-gpg-plugin</artifactId> |
| 202 | + <version>1.6</version> |
| 203 | + <executions> |
| 204 | + <execution> |
| 205 | + <id>sign-artifacts</id> |
| 206 | + <phase>verify</phase> |
| 207 | + <goals> |
| 208 | + <goal>sign</goal> |
| 209 | + </goals> |
| 210 | + <configuration> |
| 211 | + <!-- TODO: Add GPG key name here --> |
| 212 | + <keyname>TODO</keyname> |
| 213 | + </configuration> |
| 214 | + </execution> |
| 215 | + </executions> |
| 216 | + </plugin> |
154 | 217 | </plugins> |
155 | 218 | </build> |
156 | 219 | </project> |
0 commit comments