Skip to content

Commit e1b7048

Browse files
committed
Configure pom.xml for Central
1 parent 96d88df commit e1b7048

File tree

1 file changed

+134
-34
lines changed

1 file changed

+134
-34
lines changed

pom.xml

Lines changed: 134 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
3-
<groupId>com.microsoft.azure.documentdb</groupId>
4-
<artifactId>DocumentDB</artifactId>
5-
<version>0.9.0-preview</version>
6-
<name>DocumentDB</name>
7-
<description>DocumentDB</description>
4+
<groupId>com.microsoft.azure</groupId>
5+
<artifactId>azure-documentdb</artifactId>
6+
<version>0.9.0</version>
7+
<name>${project.groupId}:${project.artifactId}</name>
8+
<description>Java SDK for Microsoft Azure DocumentDB</description>
9+
<url>http://azure.microsoft.com/en-us/services/documentdb/</url>
10+
<licenses>
11+
<license>
12+
<name>MIT License</name>
13+
<url>http://www.opensource.org/licenses/mit-license.php</url>
14+
</license>
15+
</licenses>
16+
<developers>
17+
<developer>
18+
<name>Pu Shi</name>
19+
<email>[email protected]</email>
20+
<organization>Microsoft</organization>
21+
<organizationUrl>http://www.microsoft.com/</organizationUrl>
22+
</developer>
23+
<developer>
24+
<name>Ming Liu</name>
25+
<email>[email protected]</email>
26+
<organization>Microsoft</organization>
27+
<organizationUrl>http://www.microsoft.com/</organizationUrl>
28+
</developer>
29+
<developer>
30+
<name>Hussein Nomier</name>
31+
<email>[email protected]</email>
32+
<organization>Microsoft</organization>
33+
<organizationUrl>http://www.microsoft.com/</organizationUrl>
34+
</developer>
35+
<developer>
36+
<name>Andrew Liu</name>
37+
<email>[email protected]</email>
38+
<organization>Microsoft</organization>
39+
<organizationUrl>http://www.microsoft.com/</organizationUrl>
40+
</developer>
41+
</developers>
42+
<scm>
43+
<connection>scm:git:[email protected]:Azure/azure-documentdb-java.git</connection>
44+
<developerConnection>scm:git:[email protected]:Azure/azure-documentdb-java.git</developerConnection>
45+
<url>[email protected]:Azure/azure-documentdb-java.git</url>
46+
</scm>
847
<build>
948
<sourceDirectory>src</sourceDirectory>
1049
<plugins>
@@ -16,32 +55,83 @@
1655
<target>1.7</target>
1756
</configuration>
1857
</plugin>
19-
<plugin>
20-
<artifactId>maven-assembly-plugin</artifactId>
21-
<version>2.2</version>
22-
<configuration>
23-
<descriptorRefs>
24-
<descriptorRef>jar-with-dependencies</descriptorRef>
25-
</descriptorRefs>
26-
</configuration>
27-
<executions>
28-
<execution>
29-
<id>make-assembly</id>
30-
<phase>package</phase>
31-
<goals>
32-
<goal>single</goal>
33-
</goals>
34-
</execution>
35-
</executions>
36-
</plugin>
58+
<plugin>
59+
<artifactId>maven-assembly-plugin</artifactId>
60+
<version>2.2</version>
61+
<configuration>
62+
<descriptorRefs>
63+
<descriptorRef>jar-with-dependencies</descriptorRef>
64+
</descriptorRefs>
65+
</configuration>
66+
<executions>
67+
<execution>
68+
<id>make-assembly</id>
69+
<phase>package</phase>
70+
<goals>
71+
<goal>single</goal>
72+
</goals>
73+
</execution>
74+
</executions>
75+
</plugin>
76+
<plugin>
77+
<groupId>org.sonatype.plugins</groupId>
78+
<artifactId>nexus-staging-maven-plugin</artifactId>
79+
<version>1.6.3</version>
80+
<extensions>true</extensions>
81+
<configuration>
82+
<serverId>ossrh</serverId>
83+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
84+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
85+
</configuration>
86+
</plugin>
87+
<plugin>
88+
<groupId>org.apache.maven.plugins</groupId>
89+
<artifactId>maven-source-plugin</artifactId>
90+
<version>2.2.1</version>
91+
<executions>
92+
<execution>
93+
<id>attach-sources</id>
94+
<goals>
95+
<goal>jar-no-fork</goal>
96+
</goals>
97+
</execution>
98+
</executions>
99+
</plugin>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-javadoc-plugin</artifactId>
103+
<version>2.9.1</version>
104+
<executions>
105+
<execution>
106+
<id>attach-javadocs</id>
107+
<goals>
108+
<goal>jar</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-gpg-plugin</artifactId>
116+
<version>1.5</version>
117+
<executions>
118+
<execution>
119+
<id>sign-artifacts</id>
120+
<phase>verify</phase>
121+
<goals>
122+
<goal>sign</goal>
123+
</goals>
124+
</execution>
125+
</executions>
126+
</plugin>
37127
</plugins>
38128
</build>
39129
<dependencies>
40130
<dependency>
41-
<groupId>org.codehaus.jackson</groupId>
42-
<artifactId>jackson-mapper-asl</artifactId>
43-
<version>1.8.5</version>
44-
</dependency>
131+
<groupId>org.codehaus.jackson</groupId>
132+
<artifactId>jackson-mapper-asl</artifactId>
133+
<version>1.8.5</version>
134+
</dependency>
45135
<dependency>
46136
<groupId>org.json</groupId>
47137
<artifactId>json</artifactId>
@@ -58,14 +148,24 @@
58148
<version>4.11</version>
59149
</dependency>
60150
<dependency>
61-
<groupId>org.apache.httpcomponents</groupId>
62-
<artifactId>httpclient</artifactId>
63-
<version>4.2.5</version>
151+
<groupId>org.apache.httpcomponents</groupId>
152+
<artifactId>httpclient</artifactId>
153+
<version>4.2.5</version>
64154
</dependency>
65155
<dependency>
66-
<groupId>org.apache.httpcomponents</groupId>
67-
<artifactId>httpcore</artifactId>
68-
<version>4.2.5</version>
156+
<groupId>org.apache.httpcomponents</groupId>
157+
<artifactId>httpcore</artifactId>
158+
<version>4.2.5</version>
69159
</dependency>
70160
</dependencies>
161+
<distributionManagement>
162+
<snapshotRepository>
163+
<id>ossrh</id>
164+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
165+
</snapshotRepository>
166+
<repository>
167+
<id>ossrh</id>
168+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
169+
</repository>
170+
</distributionManagement>
71171
</project>

0 commit comments

Comments
 (0)