You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And for me it seems that the maven artifact downloader can't handle my "nexus" thing somehow:
[INFO] --- spring-boot-thin:1.0.30.RELEASE:resolve (resolve) @ update-service ---
[INFO] Deploying: D:\Dev\git\coc\spice-configuration-cluster\update-service\target\ccupdate.jar
[INFO] Copying: ccupdate.jar to D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root
Exception in thread "main" java.lang.IllegalStateException: Cannot build model
at org.springframework.boot.loader.thin.DependencyResolver.dependencies(DependencyResolver.java:254)
at org.springframework.boot.loader.thin.PathResolver.extract(PathResolver.java:265)
at org.springframework.boot.loader.thin.PathResolver.resolve(PathResolver.java:111)
at org.springframework.boot.loader.thin.ThinJarLauncher.getClassPathArchives(ThinJarLauncher.java:393)
at org.springframework.boot.loader.thin.ThinJarLauncher.launch(ThinJarLauncher.java:215)
at org.springframework.boot.loader.thin.ThinJarLauncher.main(ThinJarLauncher.java:168)
Caused by: hidden.org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.8.6 from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 621, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework:spring-framework-bom:pom:4.3.6.RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2014, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.data:spring-data-releasetrain:pom:Ingalls-RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2087, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.integration:spring-integration-bom:pom:4.3.7.RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2109, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.security:spring-security-bom:pom:4.2.1.RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2201, column 16
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:192)
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:123)
at org.springframework.boot.loader.thin.DependencyResolver.dependencies(DependencyResolver.java:213)
... 5 more
Caused by: hidden.org.apache.maven.model.building.ModelBuildingException: 5 problems were encountered while building the effective model for com.example:empty:0.0.1-SNAPSHOT
[ERROR] Non-resolvable import POM: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.8.6 from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 621, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework:spring-framework-bom:pom:4.3.6.RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2014, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.data:spring-data-releasetrain:pom:Ingalls-RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2087, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.integration:spring-integration-bom:pom:4.3.7.RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2109, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.security:spring-security-bom:pom:4.2.1.RELEASE from/to nexus (http://nexus): nexus @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2201, column 16
at hidden.org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:197)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:482)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:424)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:414)
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:158)
[INFO] --- spring-boot-thin:1.0.30.RELEASE:resolve (resolve) @ update-service ---
[INFO] Deploying: D:\Dev\git\coc\spice-configuration-cluster\update-service\target\ccupdate.jar
[INFO] Copying: ccupdate.jar to D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root
Exception in thread "main" java.lang.IllegalStateException: Cannot build model
at org.springframework.boot.loader.thin.DependencyResolver.dependencies(DependencyResolver.java:254)
at org.springframework.boot.loader.thin.PathResolver.extract(PathResolver.java:265)
at org.springframework.boot.loader.thin.PathResolver.resolve(PathResolver.java:111)
at org.springframework.boot.loader.thin.ThinJarLauncher.getClassPathArchives(ThinJarLauncher.java:393)
at org.springframework.boot.loader.thin.ThinJarLauncher.launch(ThinJarLauncher.java:215)
at org.springframework.boot.loader.thin.ThinJarLauncher.main(ThinJarLauncher.java:168)
Caused by: hidden.org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.8.6 from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 621, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework:spring-framework-bom:pom:4.3.6.RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2014, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.data:spring-data-releasetrain:pom:Ingalls-RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2087, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.integration:spring-integration-bom:pom:4.3.7.RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2109, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.security:spring-security-bom:pom:4.2.1.RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2201, column 16
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:192)
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:123)
at org.springframework.boot.loader.thin.DependencyResolver.dependencies(DependencyResolver.java:213)
... 5 more
Caused by: hidden.org.apache.maven.model.building.ModelBuildingException: 5 problems were encountered while building the effective model for com.example:empty:0.0.1-SNAPSHOT
[ERROR] Non-resolvable import POM: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.8.6 from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 621, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework:spring-framework-bom:pom:4.3.6.RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2014, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.data:spring-data-releasetrain:pom:Ingalls-RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2087, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.integration:spring-integration-bom:pom:4.3.7.RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2109, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework.security:spring-security-bom:pom:4.2.1.RELEASE from/to nexus-foo (https://internal-server/nexus/repository/public/): status code: 401, reason phrase: Unauthorized (401) @ org.springframework.boot:spring-boot-dependencies:1.5.1.RELEASE, D:\Dev\git\coc\spice-configuration-cluster\update-service\target\thin\root\repository\org\springframework\boot\spring-boot-dependencies\1.5.1.RELEASE\spring-boot-dependencies-1.5.1.RELEASE.pom, line 2201, column 16
at hidden.org.apache.maven.model.building.DefaultModelProblemCollector.newModelBuildingException(DefaultModelProblemCollector.java:197)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:482)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:424)
at hidden.org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:414)
at hidden.org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:158)
... 7 more
The text was updated successfully, but these errors were encountered:
I noticed that your URLs look inconsistent: you want to use http://nexus in the first example and that doesn't seem to be a correct URL (http protocol for one thing), so I'm guessing it is just getting a 404. The 401 suggests there is an issue with credentials. AFAIK it's supposed to work, but it's a hard thing to test, however the URL also looks odd because you define those properties like release-server-url and then don't use them.
I would actually expect just a mirror would work, but I don't know how a mirror with "mirrorOf=*" is supposed to behave so that might be a problem.
Hi all,
I tried the thin-launcher experiment but I found that behind my company maven/nexus setup it doesn't work,
In my worker environment I don't have direct access to maven central etc. All the maven traffic goes to our internal nexus-server.
So have this maven settings:
For all my normal maven builds etc. everything works fine since years (I can just hope the above settings are not nonsense!) 😄
I added the plugin:
I pimpt the final name of my app:
The I run simply "mvn clean install"
And for me it seems that the maven artifact downloader can't handle my "nexus" thing somehow:
I'm using
$mvn -version
Apache Maven 3.9.2 (c9616018c7a021c1c39be70fb2843d6f5f9b8a1c)
Maven home: D:\Dev\ApacheMaven\current-maven
Java version: 17.0.4, vendor: Oracle Corporation, runtime: D:\Dev\Java\jdk-17.0.4
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
I also tried with these maven settings:
Then I get 401
The text was updated successfully, but these errors were encountered: