Add Sonatype Nexus repository integration module #612
ci.yaml
on: pull_request
Check for typos and unformatted code
25s
Validate Terraform output
3m 41s
Validate README files
21s
Annotations
8 errors
Validate README files
Process completed with exit code 1.
|
Validate Terraform output
Process completed with exit code 1.
|
error::
test/test.ts#L265
on main.tf line 132, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <password>${var.nexus_password}</password>
107: </server>
108: </servers>
109: <mirrors>
110: <mirror>
111: <id>nexus-mirror</id>
112: <mirrorOf>*</mirrorOf>
113: <url>${var.nexus_url}/repository/${try(element(var.package_managers.maven, 0), "maven-public")}</url>
114: </mirror>
115: </mirrors>
116: </settings>
117: EOF
118: config_complete
119: else
120: not_configured maven
121: fi
122: # Configure npm
123: if [ ${length(var.package_managers.npm)} -gt 0 ]; then
Configuring npm..."
125: cat > ~/.npmrc << 'EOF'
126: registry=${var.nexus_url}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/
127: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:username=${local.username}
128: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:_password=${base64encode(var.nexus_password)}
129: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:always-auth=true
130: EOF
131: config_complete
132: else
133: not_configured npm
134: fi
135: # Configure pip
136: if [ ${length(var.package_managers.pypi)} -gt 0 ]; then
Configuring pip..."
138: mkdir -p ~/.pip
139: # Create .netrc file for secure credential storage
140: cat > ~/.netrc << EOF
141: machine ${local.nexus_host}
142: login ${local.username}
143: password ${var.nexus_password}
144: EOF
145: chmod 600 ~/.netrc
146: # Update pip.conf to use index-url without embedded credentials
147: cat > ~/.pip/pip.conf << 'EOF'
148: [global]
149: index-url = https://${local.nexus_host}/repository/${try(element(var.package_managers.pypi, 0), "pypi-public")}/simple
150: EOF
151: config_complete
152: else
153: not_configured pypi
154: fi
155: # Configure Docker
156: if [ ${length(var.package_managers.docker)} -gt 0 ]; then
157: if command -v docker > /dev/null 2>&1; then
Configuring Docker credentials..."
159: mkdir -p ~/.docker
160: %{for repo in var.package_managers.docker~}
161: echo -n "${var.nexus_password}" | docker login "${local.nexus_host}" --username "${local.username}" --password-stdin
162: %{endfor~}
163: config_complete
164: else
Docker is not installed, skipping Docker configuration."
166: fi
167: else
168: not_configured docker
169: fi
Nexus repository configuration completed!"
171: EOT
local.nexus_host is tuple with 1 element
Cannot include the given value in a string template: string required.
Error: Invalid template interpolation value
on main.tf line 133, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <pass
|
error::
test/test.ts#L265
on main.tf line 132, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <password>${var.nexus_password}</password>
107: </server>
108: </servers>
109: <mirrors>
110: <mirror>
111: <id>nexus-mirror</id>
112: <mirrorOf>*</mirrorOf>
113: <url>${var.nexus_url}/repository/${try(element(var.package_managers.maven, 0), "maven-public")}</url>
114: </mirror>
115: </mirrors>
116: </settings>
117: EOF
118: config_complete
119: else
120: not_configured maven
121: fi
122: # Configure npm
123: if [ ${length(var.package_managers.npm)} -gt 0 ]; then
Configuring npm..."
125: cat > ~/.npmrc << 'EOF'
126: registry=${var.nexus_url}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/
127: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:username=${local.username}
128: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:_password=${base64encode(var.nexus_password)}
129: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:always-auth=true
130: EOF
131: config_complete
132: else
133: not_configured npm
134: fi
135: # Configure pip
136: if [ ${length(var.package_managers.pypi)} -gt 0 ]; then
Configuring pip..."
138: mkdir -p ~/.pip
139: # Create .netrc file for secure credential storage
140: cat > ~/.netrc << EOF
141: machine ${local.nexus_host}
142: login ${local.username}
143: password ${var.nexus_password}
144: EOF
145: chmod 600 ~/.netrc
146: # Update pip.conf to use index-url without embedded credentials
147: cat > ~/.pip/pip.conf << 'EOF'
148: [global]
149: index-url = https://${local.nexus_host}/repository/${try(element(var.package_managers.pypi, 0), "pypi-public")}/simple
150: EOF
151: config_complete
152: else
153: not_configured pypi
154: fi
155: # Configure Docker
156: if [ ${length(var.package_managers.docker)} -gt 0 ]; then
157: if command -v docker > /dev/null 2>&1; then
Configuring Docker credentials..."
159: mkdir -p ~/.docker
160: %{for repo in var.package_managers.docker~}
161: echo -n "${var.nexus_password}" | docker login "${local.nexus_host}" --username "${local.username}" --password-stdin
162: %{endfor~}
163: config_complete
164: else
Docker is not installed, skipping Docker configuration."
166: fi
167: else
168: not_configured docker
169: fi
Nexus repository configuration completed!"
171: EOT
local.nexus_host is tuple with 1 element
Cannot include the given value in a string template: string required.
Error: Invalid template interpolation value
on main.tf line 133, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <pass
|
error::
test/test.ts#L265
on main.tf line 132, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <password>${var.nexus_password}</password>
107: </server>
108: </servers>
109: <mirrors>
110: <mirror>
111: <id>nexus-mirror</id>
112: <mirrorOf>*</mirrorOf>
113: <url>${var.nexus_url}/repository/${try(element(var.package_managers.maven, 0), "maven-public")}</url>
114: </mirror>
115: </mirrors>
116: </settings>
117: EOF
118: config_complete
119: else
120: not_configured maven
121: fi
122: # Configure npm
123: if [ ${length(var.package_managers.npm)} -gt 0 ]; then
Configuring npm..."
125: cat > ~/.npmrc << 'EOF'
126: registry=${var.nexus_url}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/
127: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:username=${local.username}
128: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:_password=${base64encode(var.nexus_password)}
129: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:always-auth=true
130: EOF
131: config_complete
132: else
133: not_configured npm
134: fi
135: # Configure pip
136: if [ ${length(var.package_managers.pypi)} -gt 0 ]; then
Configuring pip..."
138: mkdir -p ~/.pip
139: # Create .netrc file for secure credential storage
140: cat > ~/.netrc << EOF
141: machine ${local.nexus_host}
142: login ${local.username}
143: password ${var.nexus_password}
144: EOF
145: chmod 600 ~/.netrc
146: # Update pip.conf to use index-url without embedded credentials
147: cat > ~/.pip/pip.conf << 'EOF'
148: [global]
149: index-url = https://${local.nexus_host}/repository/${try(element(var.package_managers.pypi, 0), "pypi-public")}/simple
150: EOF
151: config_complete
152: else
153: not_configured pypi
154: fi
155: # Configure Docker
156: if [ ${length(var.package_managers.docker)} -gt 0 ]; then
157: if command -v docker > /dev/null 2>&1; then
Configuring Docker credentials..."
159: mkdir -p ~/.docker
160: %{for repo in var.package_managers.docker~}
161: echo -n "${var.nexus_password}" | docker login "${local.nexus_host}" --username "${local.username}" --password-stdin
162: %{endfor~}
163: config_complete
164: else
Docker is not installed, skipping Docker configuration."
166: fi
167: else
168: not_configured docker
169: fi
Nexus repository configuration completed!"
171: EOT
local.nexus_host is tuple with 1 element
Cannot include the given value in a string template: string required.
Error: Invalid template interpolation value
on main.tf line 133, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <pass
|
error::
test/test.ts#L265
on main.tf line 132, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <password>${var.nexus_password}</password>
107: </server>
108: </servers>
109: <mirrors>
110: <mirror>
111: <id>nexus-mirror</id>
112: <mirrorOf>*</mirrorOf>
113: <url>${var.nexus_url}/repository/${try(element(var.package_managers.maven, 0), "maven-public")}</url>
114: </mirror>
115: </mirrors>
116: </settings>
117: EOF
118: config_complete
119: else
120: not_configured maven
121: fi
122: # Configure npm
123: if [ ${length(var.package_managers.npm)} -gt 0 ]; then
Configuring npm..."
125: cat > ~/.npmrc << 'EOF'
126: registry=${var.nexus_url}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/
127: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:username=${local.username}
128: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:_password=${base64encode(var.nexus_password)}
129: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:always-auth=true
130: EOF
131: config_complete
132: else
133: not_configured npm
134: fi
135: # Configure pip
136: if [ ${length(var.package_managers.pypi)} -gt 0 ]; then
Configuring pip..."
138: mkdir -p ~/.pip
139: # Create .netrc file for secure credential storage
140: cat > ~/.netrc << EOF
141: machine ${local.nexus_host}
142: login ${local.username}
143: password ${var.nexus_password}
144: EOF
145: chmod 600 ~/.netrc
146: # Update pip.conf to use index-url without embedded credentials
147: cat > ~/.pip/pip.conf << 'EOF'
148: [global]
149: index-url = https://${local.nexus_host}/repository/${try(element(var.package_managers.pypi, 0), "pypi-public")}/simple
150: EOF
151: config_complete
152: else
153: not_configured pypi
154: fi
155: # Configure Docker
156: if [ ${length(var.package_managers.docker)} -gt 0 ]; then
157: if command -v docker > /dev/null 2>&1; then
Configuring Docker credentials..."
159: mkdir -p ~/.docker
160: %{for repo in var.package_managers.docker~}
161: echo -n "${var.nexus_password}" | docker login "${local.nexus_host}" --username "${local.username}" --password-stdin
162: %{endfor~}
163: config_complete
164: else
Docker is not installed, skipping Docker configuration."
166: fi
167: else
168: not_configured docker
169: fi
Nexus repository configuration completed!"
171: EOT
local.nexus_host is tuple with 1 element
Cannot include the given value in a string template: string required.
Error: Invalid template interpolation value
on main.tf line 133, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <pass
|
error::
test/test.ts#L265
on main.tf line 132, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <password>${var.nexus_password}</password>
107: </server>
108: </servers>
109: <mirrors>
110: <mirror>
111: <id>nexus-mirror</id>
112: <mirrorOf>*</mirrorOf>
113: <url>${var.nexus_url}/repository/${try(element(var.package_managers.maven, 0), "maven-public")}</url>
114: </mirror>
115: </mirrors>
116: </settings>
117: EOF
118: config_complete
119: else
120: not_configured maven
121: fi
122: # Configure npm
123: if [ ${length(var.package_managers.npm)} -gt 0 ]; then
Configuring npm..."
125: cat > ~/.npmrc << 'EOF'
126: registry=${var.nexus_url}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/
127: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:username=${local.username}
128: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:_password=${base64encode(var.nexus_password)}
129: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:always-auth=true
130: EOF
131: config_complete
132: else
133: not_configured npm
134: fi
135: # Configure pip
136: if [ ${length(var.package_managers.pypi)} -gt 0 ]; then
Configuring pip..."
138: mkdir -p ~/.pip
139: # Create .netrc file for secure credential storage
140: cat > ~/.netrc << EOF
141: machine ${local.nexus_host}
142: login ${local.username}
143: password ${var.nexus_password}
144: EOF
145: chmod 600 ~/.netrc
146: # Update pip.conf to use index-url without embedded credentials
147: cat > ~/.pip/pip.conf << 'EOF'
148: [global]
149: index-url = https://${local.nexus_host}/repository/${try(element(var.package_managers.pypi, 0), "pypi-public")}/simple
150: EOF
151: config_complete
152: else
153: not_configured pypi
154: fi
155: # Configure Docker
156: if [ ${length(var.package_managers.docker)} -gt 0 ]; then
157: if command -v docker > /dev/null 2>&1; then
Configuring Docker credentials..."
159: mkdir -p ~/.docker
160: %{for repo in var.package_managers.docker~}
161: echo -n "${var.nexus_password}" | docker login "${local.nexus_host}" --username "${local.username}" --password-stdin
162: %{endfor~}
163: config_complete
164: else
Docker is not installed, skipping Docker configuration."
166: fi
167: else
168: not_configured docker
169: fi
Nexus repository configuration completed!"
171: EOT
local.nexus_host is tuple with 1 element
Cannot include the given value in a string template: string required.
Error: Invalid template interpolation value
on main.tf line 133, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <pass
|
error::
test/test.ts#L265
on main.tf line 132, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <password>${var.nexus_password}</password>
107: </server>
108: </servers>
109: <mirrors>
110: <mirror>
111: <id>nexus-mirror</id>
112: <mirrorOf>*</mirrorOf>
113: <url>${var.nexus_url}/repository/${try(element(var.package_managers.maven, 0), "maven-public")}</url>
114: </mirror>
115: </mirrors>
116: </settings>
117: EOF
118: config_complete
119: else
120: not_configured maven
121: fi
122: # Configure npm
123: if [ ${length(var.package_managers.npm)} -gt 0 ]; then
Configuring npm..."
125: cat > ~/.npmrc << 'EOF'
126: registry=${var.nexus_url}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/
127: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:username=${local.username}
128: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:_password=${base64encode(var.nexus_password)}
129: //${local.nexus_host}/repository/${try(element(var.package_managers.npm, 0), "npm-public")}/:always-auth=true
130: EOF
131: config_complete
132: else
133: not_configured npm
134: fi
135: # Configure pip
136: if [ ${length(var.package_managers.pypi)} -gt 0 ]; then
Configuring pip..."
138: mkdir -p ~/.pip
139: # Create .netrc file for secure credential storage
140: cat > ~/.netrc << EOF
141: machine ${local.nexus_host}
142: login ${local.username}
143: password ${var.nexus_password}
144: EOF
145: chmod 600 ~/.netrc
146: # Update pip.conf to use index-url without embedded credentials
147: cat > ~/.pip/pip.conf << 'EOF'
148: [global]
149: index-url = https://${local.nexus_host}/repository/${try(element(var.package_managers.pypi, 0), "pypi-public")}/simple
150: EOF
151: config_complete
152: else
153: not_configured pypi
154: fi
155: # Configure Docker
156: if [ ${length(var.package_managers.docker)} -gt 0 ]; then
157: if command -v docker > /dev/null 2>&1; then
Configuring Docker credentials..."
159: mkdir -p ~/.docker
160: %{for repo in var.package_managers.docker~}
161: echo -n "${var.nexus_password}" | docker login "${local.nexus_host}" --username "${local.username}" --password-stdin
162: %{endfor~}
163: config_complete
164: else
Docker is not installed, skipping Docker configuration."
166: fi
167: else
168: not_configured docker
169: fi
Nexus repository configuration completed!"
171: EOT
local.nexus_host is tuple with 1 element
Cannot include the given value in a string template: string required.
Error: Invalid template interpolation value
on main.tf line 133, in resource "coder_script" "nexus":
85: script = <<-EOT
86: #!/usr/bin/env bash
87: not_configured() {
88: type=$1
no $type repository is set, skipping $type configuration."
90: }
91: config_complete() {
Configuration complete!"
93: }
Configuring Nexus repository access..."
95: # Configure Maven
96: if [ ${length(var.package_managers.maven)} -gt 0 ]; then
Configuring Maven..."
98: mkdir -p ~/.m2
99: cat > ~/.m2/settings.xml << 'EOF'
100: <?xml version="1.0" encoding="UTF-8"?>
101: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
102: <servers>
103: <server>
104: <id>nexus</id>
105: <username>${local.username}</username>
106: <pass
|