I am getting the following error when i try to compile using mvn.
./mvnw clean test
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/3.3.8/spring-boot-dependencies-3.3.8.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: The following artifacts could not be resolved: org.springframework.boot:spring-boot-dependencies:pom:3.3.8 (absent): Could not transfer artifact org.springframework.boot:spring-boot-dependencies:pom:3.3.8 from/to central (https://repo.maven.apache.org/maven2): Network is unreachable @ line 39, column 16
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter:jar is missing. @ line 169, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-web:jar is missing. @ line 173, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-data-jpa:jar is missing. @ line 182, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-validation:jar is missing. @ line 186, column 21
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-test:jar is missing. @ line 190, column 21
@ ```
Okay, seems like we need to use correct proxy. Here is a small startup-script that installs dependencies using maven 3.9.9! Same can of course be done using mvnw, this is just simplified (and not yet fully optimised, more a proof of concept):
I have the same issue, oddly if I use your proxy fix in the environment setup and use the interactive terminal there it does fix the issue. But when I actually come to use the environment it fails in the same way with network connectivity issues in the startup script even though I can see its running the same sed cmd etc.
Anyone know how to make it work with a private maven repo (github packages)?
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.8.1:go-offline (default-cli) on project my-project: org.eclipse.aether.resolution.DependencyResolutionException: Failed to read artifact descriptor for com.mycompany.myproject:jar:version: Could not transfer artifact descriptor for com.mycompany.otherproject:jar:version from/to github (https://maven.pkg.github.com/mycompany/*): authentication failed for https://maven.pkg.github.com/..., status: 401 Unauthorized -> [Help 1]
Codex has access to our github repositories, but not our github packages. Anyone know how to solve that?