Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 59a7ae7

Browse files
Updated pom.xml to use parameters (#838)
1 parent aa307c5 commit 59a7ae7

File tree

14 files changed

+42
-77
lines changed

14 files changed

+42
-77
lines changed

samples/02.echo-bot/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
5959
#### To an existing Resource Group
6060
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
6161

62-
### 5. Update the pom.xml
63-
In pom.xml update the following nodes under azure-webapp-maven-plugin
64-
- `resourceGroup` using the `<groupname>` used above
65-
- `appName` using the `<botname>` used above
66-
67-
### 6. Update app id and password
62+
### 5. Update app id and password
6863
In src/main/resources/application.properties update
6964
- `MicrosoftAppPassword` with the botsecret value
7065
- `MicrosoftAppId` with the appid from the first step
7166

72-
### 7. Deploy the code
67+
### 6. Deploy the code
7368
- Execute `mvn clean package`
74-
- Execute `mvn azure-webapp:deploy`
69+
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`
7570

7671
If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.
7772

78-
After the bot is deployed, you only need to execute #7 if you make changes to the bot.
73+
After the bot is deployed, you only need to execute #6 if you make changes to the bot.
7974

8075

8176
## Further reading

samples/02.echo-bot/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
<version>1.7.0</version>
144144
<configuration>
145145
<schemaVersion>V2</schemaVersion>
146-
<resourceGroup>{groupname}</resourceGroup>
147-
<appName>{botname}</appName>
146+
<resourceGroup>${groupname}</resourceGroup>
147+
<appName>${botname}</appName>
148148
<appSettings>
149149
<property>
150150
<name>JAVA_OPTS</name>

samples/03.welcome-user/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
5959
#### To an existing Resource Group
6060
`az group deployment create --name "stateBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
6161

62-
### 5. Update the pom.xml
63-
In pom.xml update the following nodes under azure-webapp-maven-plugin
64-
- `resourceGroup` using the `<groupname>` used above
65-
- `appName` using the `<botname>` used above
66-
67-
### 6. Update app id and password
62+
### 5. Update app id and password
6863
In src/main/resources/application.properties update
6964
- `MicrosoftAppPassword` with the botsecret value
7065
- `MicrosoftAppId` with the appid from the first step
7166

72-
### 7. Deploy the code
67+
### 6. Deploy the code
7368
- Execute `mvn clean package`
74-
- Execute `mvn azure-webapp:deploy`
69+
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`
7570

7671
If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.
7772

78-
After the bot is deployed, you only need to execute #7 if you make changes to the bot.
73+
After the bot is deployed, you only need to execute #6 if you make changes to the bot.
7974

8075

8176
## Further reading

samples/03.welcome-user/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
<version>1.7.0</version>
144144
<configuration>
145145
<schemaVersion>V2</schemaVersion>
146-
<resourceGroup>{groupname}</resourceGroup>
147-
<appName>{botname}</appName>
146+
<resourceGroup>${groupname}</resourceGroup>
147+
<appName>${botname}</appName>
148148
<appSettings>
149149
<property>
150150
<name>JAVA_OPTS</name>

samples/08.suggested-actions/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
5959
#### To an existing Resource Group
6060
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
6161

62-
### 5. Update the pom.xml
63-
In pom.xml update the following nodes under azure-webapp-maven-plugin
64-
- `resourceGroup` using the `<groupname>` used above
65-
- `appName` using the `<botname>` used above
66-
67-
### 6. Update app id and password
62+
### 5. Update app id and password
6863
In src/main/resources/application.properties update
6964
- `MicrosoftAppPassword` with the botsecret value
7065
- `MicrosoftAppId` with the appid from the first step
7166

72-
### 7. Deploy the code
67+
### 6. Deploy the code
7368
- Execute `mvn clean package`
74-
- Execute `mvn azure-webapp:deploy`
69+
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`
7570

7671
If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.
7772

78-
After the bot is deployed, you only need to execute #7 if you make changes to the bot.
73+
After the bot is deployed, you only need to execute #6 if you make changes to the bot.
7974

8075

8176
## Further reading

samples/08.suggested-actions/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
<version>1.7.0</version>
144144
<configuration>
145145
<schemaVersion>V2</schemaVersion>
146-
<resourceGroup>{groupname}</resourceGroup>
147-
<appName>{botname}</appName>
146+
<resourceGroup>${groupname}</resourceGroup>
147+
<appName>${botname}</appName>
148148
<appSettings>
149149
<property>
150150
<name>JAVA_OPTS</name>

samples/16.proactive-messages/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
6868
#### To an existing Resource Group
6969
`az group deployment create --name "echoBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
7070

71-
### 5. Update the pom.xml
72-
In pom.xml update the following nodes under azure-webapp-maven-plugin
73-
- `resourceGroup` using the `<groupname>` used above
74-
- `appName` using the `<botname>` used above
75-
76-
### 6. Update app id and password
71+
### 5. Update app id and password
7772
In src/main/resources/application.properties update
7873
- `MicrosoftAppPassword` with the botsecret value
7974
- `MicrosoftAppId` with the appid from the first step
8075

81-
### 7. Deploy the code
76+
### 6. Deploy the code
8277
- Execute `mvn clean package`
83-
- Execute `mvn azure-webapp:deploy`
78+
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`
8479

8580
If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.
8681

87-
After the bot is deployed, you only need to execute #7 if you make changes to the bot.
82+
After the bot is deployed, you only need to execute #6 if you make changes to the bot.
8883

8984

9085
## Further reading

samples/16.proactive-messages/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@
143143
<version>1.7.0</version>
144144
<configuration>
145145
<schemaVersion>V2</schemaVersion>
146-
<resourceGroup>{groupname}</resourceGroup>
147-
<appName>{botname}</appName>
146+
<resourceGroup>${groupname}</resourceGroup>
147+
<appName>${botname}</appName>
148148
<appSettings>
149149
<property>
150150
<name>JAVA_OPTS</name>

samples/45.state-management/README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,18 @@ Replace the values for `<appid>`, `<appsecret>`, `<botname>`, and `<groupname>`
6262
#### To an existing Resource Group
6363
`az group deployment create --name "stateBotDeploy" --resource-group "<groupname>" --template-file ".\deploymentTemplates\template-with-preexisting-rg.json" --parameters botId="<botname>" appId="<appid>" appSecret="<appsecret>"`
6464

65-
### 5. Update the pom.xml
66-
In pom.xml update the following nodes under azure-webapp-maven-plugin
67-
- `resourceGroup` using the `<groupname>` used above
68-
- `appName` using the `<botname>` used above
69-
70-
### 6. Update app id and password
65+
### 5. Update app id and password
7166
In src/main/resources/application.properties update
7267
- `MicrosoftAppPassword` with the botsecret value
7368
- `MicrosoftAppId` with the appid from the first step
7469

75-
### 7. Deploy the code
70+
### 6. Deploy the code
7671
- Execute `mvn clean package`
77-
- Execute `mvn azure-webapp:deploy`
72+
- Execute `mvn azure-webapp:deploy -Dgroupname="<groupname>" -Dbotname="<botname>"`
7873

7974
If the deployment is successful, you will be able to test it via "Test in Web Chat" from the Azure Portal using the "Bot Channel Registration" for the bot.
8075

81-
After the bot is deployed, you only need to execute #7 if you make changes to the bot.
76+
After the bot is deployed, you only need to execute #6 if you make changes to the bot.
8277

8378

8479
## Further reading

samples/45.state-management/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@
142142
<version>1.7.0</version>
143143
<configuration>
144144
<schemaVersion>V2</schemaVersion>
145-
<resourceGroup>{groupname}</resourceGroup>
146-
<appName>{botname}</appName>
145+
<resourceGroup>${groupname}</resourceGroup>
146+
<appName>${botname}</appName>
147147
<appSettings>
148148
<property>
149149
<name>JAVA_OPTS</name>

0 commit comments

Comments
 (0)