mirror of https://github.com/dapr/java-sdk.git
Merge pull request #6 from dapr/pkg
Add java-sdk package instructions for nexus repo manager
This commit is contained in:
commit
ad544136f0
14
README.md
14
README.md
|
@ -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
|
||||
|
|
|
@ -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
12
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue