Skip to content

Commit 733efae

Browse files
Copilotbrunoborges
andauthored
feat: Disable interactiveMode in generated Maven settings.xml (#1052)
* Initial plan * Add interactiveMode false to generated maven settings.xml --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Bruno Borges <brborges@microsoft.com>
1 parent 6c4d4a5 commit 733efae

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

__tests__/auth.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ describe('auth tests', () => {
160160
const expectedSettings = `<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
161161
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
162162
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
163+
<interactiveMode>false</interactiveMode>
163164
<servers>
164165
<server>
165166
<id>${id}</id>
@@ -181,6 +182,7 @@ describe('auth tests', () => {
181182
const expectedSettings = `<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
182183
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
183184
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
185+
<interactiveMode>false</interactiveMode>
184186
<servers>
185187
<server>
186188
<id>${id}</id>

dist/setup/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77727,6 +77727,7 @@ function generate(id, username, password, gpgPassphrase) {
7772777727
'@xmlns': 'http://maven.apache.org/SETTINGS/1.0.0',
7772877728
'@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
7772977729
'@xsi:schemaLocation': 'http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd',
77730+
interactiveMode: false,
7773077731
servers: {
7773177732
server: [
7773277733
{

docs/advanced-usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ The two `settings.xml` files created from the above example look like the follow
437437
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
438438
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
439439
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
440+
<interactiveMode>false</interactiveMode>
440441
<servers>
441442
<server>
442443
<id>github</id>
@@ -456,6 +457,7 @@ The two `settings.xml` files created from the above example look like the follow
456457
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
457458
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
458459
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
460+
<interactiveMode>false</interactiveMode>
459461
<servers>
460462
<server>
461463
<id>maven</id>

src/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export function generate(
8080
'@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
8181
'@xsi:schemaLocation':
8282
'http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd',
83+
interactiveMode: false,
8384
servers: {
8485
server: [
8586
{

0 commit comments

Comments
 (0)