Skip to content

Commit 91f49aa

Browse files
committed
Fix XML namespaces wrongly using https
1 parent 1f2faad commit 91f49aa

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

__tests__/toolchains.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ describe('toolchains tests', () => {
7777
};
7878

7979
const result = `<?xml version="1.0"?>
80-
<toolchains xmlns="https://maven.apache.org/TOOLCHAINS/1.1.0"
81-
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
82-
xsi:schemaLocation="https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
80+
<toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0"
81+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
82+
xsi:schemaLocation="http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
8383
<toolchain>
8484
<type>jdk</type>
8585
<provides>
@@ -248,9 +248,9 @@ describe('toolchains tests', () => {
248248
};
249249

250250
const expectedToolchains = `<?xml version="1.0"?>
251-
<toolchains xmlns="https://maven.apache.org/TOOLCHAINS/1.1.0"
252-
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
253-
xsi:schemaLocation="https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
251+
<toolchains xmlns="http://maven.apache.org/TOOLCHAINS/1.1.0"
252+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
253+
xsi:schemaLocation="http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd">
254254
<toolchain>
255255
<type>jdk</type>
256256
<provides>

dist/setup/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103848,9 +103848,9 @@ function generateToolchainDefinition(original, version, vendor, id, jdkHome) {
103848103848
else
103849103849
xmlObj = xmlbuilder2_1.create({
103850103850
toolchains: {
103851-
'@xmlns': 'https://maven.apache.org/TOOLCHAINS/1.1.0',
103852-
'@xmlns:xsi': 'https://www.w3.org/2001/XMLSchema-instance',
103853-
'@xsi:schemaLocation': 'https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
103851+
'@xmlns': 'http://maven.apache.org/TOOLCHAINS/1.1.0',
103852+
'@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
103853+
'@xsi:schemaLocation': 'http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
103854103854
toolchain: [
103855103855
{
103856103856
type: 'jdk',

src/toolchains.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ export function generateToolchainDefinition(
104104
} else
105105
xmlObj = xmlCreate({
106106
toolchains: {
107-
'@xmlns': 'https://maven.apache.org/TOOLCHAINS/1.1.0',
108-
'@xmlns:xsi': 'https://www.w3.org/2001/XMLSchema-instance',
107+
'@xmlns': 'http://maven.apache.org/TOOLCHAINS/1.1.0',
108+
'@xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
109109
'@xsi:schemaLocation':
110-
'https://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
110+
'http://maven.apache.org/TOOLCHAINS/1.1.0 https://maven.apache.org/xsd/toolchains-1.1.0.xsd',
111111
toolchain: [
112112
{
113113
type: 'jdk',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy