...
Alternatively, add the following Maven project dependency entries to your POM file. Note that
${carbon.commons.version}
refers to the version of the carbon-commons github repository - https://github.com/wso2/carbon-commons/. It is always recommended to use the dependency entry from the latest released version.
Code Block | ||||
---|---|---|---|---|
| ||||
<repositories> <repository> <id>wso2-nexus</id> <name>WSO2 internal Repository</name> <url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url> <releases> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> <checksumPolicy>ignore</checksumPolicy> </releases> </repository> <repository> <id>wso2.releases</id> <name>WSO2 internal Repository</name> <url>http://maven.wso2.org/nexus/content/repositories/releases/</url> <releases> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> <checksumPolicy>ignore</checksumPolicy> </releases> </repository> <repository> <id>wso2.snapshots</id> <name>Apache Snapshot Repository</name> <url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url> <snapshots> <enabled>true</enabled> <updatePolicy>daily</updatePolicy> </snapshots> <releases> <enabled>false</enabled> </releases> </repository> </repositories> |
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency> <groupId>org.apache.ws.commons.axiom.wso2</groupId> <artifactId>axiom</artifactId> <version>${orbit.version.axiom}<<version>1.2.11.wso2v6</version> </dependency> <dependency> <groupId>org.wso2.orbit.org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>${httpclient.wso2.version}<<version>4.3.1.wso2v2</version> </dependency> <dependency> <groupId>org.apache.httpcomponents.wso2</groupId> <artifactId>httpcore</artifactId> <version>${httpcore.wso2.version}<<version>4.3.3.wso2v1</version> </dependency> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>${gson.version}<<version>2.1</version> </dependency> |
HTTP REST publisher
...