Merge pull request #6 from dapr/pkg

Add java-sdk package instructions for nexus repo manager
This commit is contained in:
Shalabh Mohan Shrivastava 2019-10-16 09:30:46 -07:00 committed by GitHub
commit ad544136f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 6 deletions

View File

@ -4,7 +4,6 @@ This is the Dapr SDK for Java, based on the auto-generated proto client.<br>
For more info on Dapr and gRPC, visit [this link](https://github.com/dapr/docs/tree/master/howto/create-grpc-app).
### Installing
```sh
# make sure you are in the `java-sdk` directory.
@ -17,3 +16,16 @@ cd examples/
mvn compile
dapr run --protocol grpc --grpc-port 50001 -- mvn exec:java -Dexec.mainClass=io.dapr.examples.Example
```
### Creating and publishing the artifacts to Nexus Repository
From the root directory:
```
mvn package
mvn deploy:deploy-file -DgeneratePom=false -DrepositoryId=nexus -Durl=http://localhost:8081/repository/maven-releases -DpomFile=pom.xml -Dfile=target/client-0.1.0-preview.jar
```
For more documentation reference :
https://maven.apache.org/plugins/maven-deploy-plugin
https://help.sonatype.com/repomanager3/user-interface/uploading-components

View File

@ -4,9 +4,9 @@
<groupId>io.dapr</groupId>
<artifactId>examples</artifactId>
<packaging>jar</packaging>
<version>0.0.1</version>
<version>0.1.0-preview</version>
<name>dapr-client</name>
<url>https://github.com/dapr/dapr-client</url>
<url>https://dapr.io</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -33,7 +33,7 @@
<dependency>
<groupId>io.dapr</groupId>
<artifactId>client</artifactId>
<version>0.0.1</version>
<version>0.1.0-preview</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>

12
pom.xml
View File

@ -4,9 +4,17 @@
<groupId>io.dapr</groupId>
<artifactId>client</artifactId>
<packaging>jar</packaging>
<version>0.0.1</version>
<version>0.1.0-preview</version>
<name>dapr-client</name>
<url>https://github.com/dapr/dapr-client</url>
<url>https://dapr.io</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>