From 39b6566782713371c31aa2eb20c4df8a7a58bc1a Mon Sep 17 00:00:00 2001 From: Shalabh Mohan Shrivastava Date: Wed, 16 Oct 2019 01:24:36 -0700 Subject: [PATCH 1/2] Add java-sdk package instructions for nexus repo manager Add java-sdk package instructions for nexus repo manager --- README.md | 15 +++++++++++++++ examples/pom.xml | 6 +++--- pom.xml | 12 ++++++++++-- 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 73f8ad74e..3f414e461 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This is the Dapr SDK for Java, based on the auto-generated proto client.
For more info on Dapr and gRPC, visit [this link](https://github.com/dapr/docs/tree/master/howto/create-grpc-app). +## Usage +Dapr java sdk package can be installed as: ### Installing ```sh @@ -17,3 +19,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 diff --git a/examples/pom.xml b/examples/pom.xml index 959cfc1ec..22a4dbbc8 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -4,9 +4,9 @@ io.dapr examples jar - 0.0.1 + 0.1.0-preview dapr-client - https://github.com/dapr/dapr-client + https://dapr.io UTF-8 @@ -33,7 +33,7 @@ io.dapr client - 0.0.1 + 0.1.0-preview io.grpc diff --git a/pom.xml b/pom.xml index 0c1369db0..17159bf4d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,9 +4,17 @@ io.dapr client jar - 0.0.1 + 0.1.0-preview dapr-client - https://github.com/dapr/dapr-client + https://dapr.io + + + + MIT License + http://www.opensource.org/licenses/mit-license.php + repo + + UTF-8 From 0135c949d71505da4eb628a036af4dca8d137c35 Mon Sep 17 00:00:00 2001 From: Shalabh Mohan Shrivastava Date: Wed, 16 Oct 2019 01:46:50 -0700 Subject: [PATCH 2/2] revert back the usage section revert back the usage section --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 3f414e461..d7fa64022 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,6 @@ This is the Dapr SDK for Java, based on the auto-generated proto client.
For more info on Dapr and gRPC, visit [this link](https://github.com/dapr/docs/tree/master/howto/create-grpc-app). -## Usage -Dapr java sdk package can be installed as: - ### Installing ```sh # make sure you are in the `java-sdk` directory.