Skip to content

Commit 0471432

Browse files
Merge pull request #266257 from ktimofejev-msft/patch-1
Java SDK Quickstart does not build in PowerShell
2 parents ff4205e + 29ff1ad commit 0471432

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

articles/communication-services/quickstarts/sms/includes/send-sms-java.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,18 @@ To set up an environment for sending messages, take the steps in the following s
4141

4242
Open your terminal or command window and navigate to the directory where you would like to create your Java application. Run the following command to generate the Java project from the maven-archetype-quickstart template.
4343

44+
- **Command Prompt**
45+
4446
```console
4547
mvn archetype:generate -DgroupId=com.communication.quickstart -DartifactId=communication-quickstart -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
4648
```
4749

50+
- **PowerShell**
51+
52+
```PowerShell
53+
mvn archetype:generate "-DgroupId=com.communication.quickstart" "-DartifactId=communication-quickstart" "-DarchetypeArtifactId=maven-archetype-quickstart" "-DarchetypeVersion=1.4" "-DinteractiveMode=false"
54+
```
55+
4856
The `generate` goal creates a directory with the same name as the `artifactId` value. Under this directory, the **src/main/java** directory contains the project source code, the **src/test/java directory** contains the test source, and the **pom.xml** file is the project's Project Object Model (POM).
4957

5058
### Install the package
@@ -197,8 +205,16 @@ You can use the `setTag` method to apply a tag to the delivery report.
197205

198206
1. Run the following `mvn` command to execute the app.
199207

208+
- **Command Prompt**
209+
200210
```console
201211

202212
mvn exec:java -Dexec.mainClass="com.communication.quickstart.App" -Dexec.cleanupDaemonThreads=false
203213

204214
```
215+
216+
- **PowerShell**
217+
218+
```PowerShell
219+
mvn exec:java "-Dexec.mainClass="com.communication.quickstart.App"" "-Dexec.cleanupDaemonThreads=false"
220+
```

0 commit comments

Comments
 (0)