-
Bug
-
Resolution: Fixed
-
Low
-
None
-
6.10.3
-
None
-
1
-
Severity 2 - Major
-
Issue Summary
Bamboo specs dependencies are missing from [Maven repository|
https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/]:
<parent> <groupId>com.atlassian.bamboo</groupId> <artifactId>bamboo-specs-parent</artifactId> <version>6.10.3</version> <relativePath/> </parent>
Steps to Reproduce
- Install bamboo 6.10.3
- Scan a repository-stored-specs-enabled linked repository
Expected Results
The specs code will be compiled and the changes will be applied to Bamboo
Actual Results
The scan fails and the following error is thrown in Bamboo server logs:
2019-10-01 22:11:11,851 WARN [14-repository-stored-specs:pool-21-thread-1] [RepositoryStoredSpecsServiceImpl] 01-Oct-2019 22:11:09 Content of pom.xml used: 01-Oct-2019 22:11:09 <?xml version="1.0" encoding="UTF-8" standalone="no"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 01-Oct-2019 22:11:09 <!--Edit template at BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml--> 01-Oct-2019 22:11:09 <modelVersion>4.0.0</modelVersion> 01-Oct-2019 22:11:09 <parent> 01-Oct-2019 22:11:09 <groupId>com.atlassian.bamboo</groupId> 01-Oct-2019 22:11:09 <artifactId>bamboo-specs-parent</artifactId> 01-Oct-2019 22:11:09 <version>6.10.3</version> 01-Oct-2019 22:11:09 <relativePath/> 01-Oct-2019 22:11:09 </parent> 01-Oct-2019 22:11:09 01-Oct-2019 22:11:09 <artifactId>bamboo-specs-generator</artifactId> 01-Oct-2019 22:11:09 <version>1.0.0</version> 01-Oct-2019 22:11:09 <packaging>jar</packaging> 01-Oct-2019 22:11:09 <dependencies> 01-Oct-2019 22:11:09 <dependency> 01-Oct-2019 22:11:09 <groupId>com.atlassian.bamboo</groupId> 01-Oct-2019 22:11:09 <artifactId>bamboo-specs-api</artifactId> 01-Oct-2019 22:11:09 </dependency> 01-Oct-2019 22:11:09 <dependency> 01-Oct-2019 22:11:09 <groupId>com.atlassian.bamboo</groupId> 01-Oct-2019 22:11:09 <artifactId>bamboo-specs</artifactId> 01-Oct-2019 22:11:09 </dependency> 01-Oct-2019 22:11:09 01-Oct-2019 22:11:09 <!-- Test dependencies --> 01-Oct-2019 22:11:09 <dependency> 01-Oct-2019 22:11:09 <groupId>junit</groupId> 01-Oct-2019 22:11:09 <artifactId>junit</artifactId> 01-Oct-2019 22:11:09 <scope>test</scope> 01-Oct-2019 22:11:09 </dependency> 01-Oct-2019 22:11:09 </dependencies> 01-Oct-2019 22:11:09 <build> 01-Oct-2019 22:11:09 <plugins> 01-Oct-2019 22:11:09 <plugin> 01-Oct-2019 22:11:09 <groupId>org.apache.maven.plugins</groupId> 01-Oct-2019 22:11:09 <artifactId>maven-compiler-plugin</artifactId> 01-Oct-2019 22:11:09 <configuration> 01-Oct-2019 22:11:09 <compilerArgs> 01-Oct-2019 22:11:09 <compilerArg>-proc:none</compilerArg> 01-Oct-2019 22:11:09 </compilerArgs> 01-Oct-2019 22:11:09 </configuration> 01-Oct-2019 22:11:09 </plugin> 01-Oct-2019 22:11:09 </plugins> 01-Oct-2019 22:11:09 </build> 01-Oct-2019 22:11:09 </project> 01-Oct-2019 22:11:10 [INFO] Error stacktraces are turned on. 01-Oct-2019 22:11:10 [INFO] Scanning for projects... 01-Oct-2019 22:11:10 [INFO] Downloading: https://repo.maven.apache.org/maven2/com/atlassian/bamboo/bamboo-specs-parent/6.10.3/bamboo-specs-parent-6.10.3.pom 01-Oct-2019 22:11:11 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 01-Oct-2019 22:11:11 [FATAL] Non-resolvable parent POM for com.atlassian.bamboo:bamboo-specs-generator:1.0.0: Could not find artifact com.atlassian.bamboo:bamboo-specs-parent:pom:6.10.3 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at no local POM @ line 4, column 13 01-Oct-2019 22:11:11 @ 01-Oct-2019 22:11:11 [ERROR] The build could not read 1 project -> [Help 1] 01-Oct-2019 22:11:11 org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: 01-Oct-2019 22:11:11 [FATAL] Non-resolvable parent POM for com.atlassian.bamboo:bamboo-specs-generator:1.0.0: Could not find artifact com.atlassian.bamboo:bamboo-specs-parent:pom:6.10.3 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at no local POM @ line 4, column 13 01-Oct-2019 22:11:11 01-Oct-2019 22:11:11 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:382) 01-Oct-2019 22:11:11 at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:400) 01-Oct-2019 22:11:11 at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:391) 01-Oct-2019 22:11:11 at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:78) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:511) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:221) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) 01-Oct-2019 22:11:11 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) 01-Oct-2019 22:11:11 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) 01-Oct-2019 22:11:11 at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) 01-Oct-2019 22:11:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 01-Oct-2019 22:11:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 01-Oct-2019 22:11:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 01-Oct-2019 22:11:11 at java.lang.reflect.Method.invoke(Method.java:498) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 01-Oct-2019 22:11:11 [ERROR] 01-Oct-2019 22:11:11 [ERROR] The project com.atlassian.bamboo:bamboo-specs-generator:1.0.0 (/var/atlassian/application-data/bamboo/xml-data/build-dir/serverSide/REPOSITORY_STORED_SPECS/repository-34209793/checkout/bamboo-specs/specs5580404988264704452.xml) has 1 error 01-Oct-2019 22:11:11 [ERROR] Non-resolvable parent POM for com.atlassian.bamboo:bamboo-specs-generator:1.0.0: Could not find artifact com.atlassian.bamboo:bamboo-specs-parent:pom:6.10.3 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at no local POM @ line 4, column 13 -> [Help 2] 01-Oct-2019 22:11:11 org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact com.atlassian.bamboo:bamboo-specs-parent:pom:6.10.3 in central (https://repo.maven.apache.org/maven2) 01-Oct-2019 22:11:11 at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:197) 01-Oct-2019 22:11:11 at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:243) 01-Oct-2019 22:11:11 at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:1051) 01-Oct-2019 22:11:11 at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:829) 01-Oct-2019 22:11:11 at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:331) 01-Oct-2019 22:11:11 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:429) 01-Oct-2019 22:11:11 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:398) 01-Oct-2019 22:11:11 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:361) 01-Oct-2019 22:11:11 at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:400) 01-Oct-2019 22:11:11 at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:391) 01-Oct-2019 22:11:11 at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:78) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:511) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:221) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194) 01-Oct-2019 22:11:11 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107) 01-Oct-2019 22:11:11 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993) 01-Oct-2019 22:11:11 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345) 01-Oct-2019 22:11:11 at org.apache.maven.cli.MavenCli.main(MavenCli.java:191) 01-Oct-2019 22:11:11 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 01-Oct-2019 22:11:11 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 01-Oct-2019 22:11:11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 01-Oct-2019 22:11:11 at java.lang.reflect.Method.invoke(Method.java:498) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 01-Oct-2019 22:11:11 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 01-Oct-2019 22:11:11 Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact com.atlassian.bamboo:bamboo-specs-parent:pom:6.10.3 in central (https://repo.maven.apache.org/maven2) 01-Oct-2019 22:11:11 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453) 01-Oct-2019 22:11:11 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255) 01-Oct-2019 22:11:11 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:232) 01-Oct-2019 22:11:11 at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:303) 01-Oct-2019 22:11:11 at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:193) 01-Oct-2019 22:11:11 ... 25 more 01-Oct-2019 22:11:11 Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.atlassian.bamboo:bamboo-specs-parent:pom:6.10.3 in central (https://repo.maven.apache.org/maven2) 01-Oct-2019 22:11:11 at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:48) 01-Oct-2019 22:11:11 at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:364) 01-Oct-2019 22:11:11 at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:76) 01-Oct-2019 22:11:11 at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:590) 01-Oct-2019 22:11:11 at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:258) 01-Oct-2019 22:11:11 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:529) 01-Oct-2019 22:11:11 at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430) 01-Oct-2019 22:11:11 ... 29 more 01-Oct-2019 22:11:11 [ERROR] 01-Oct-2019 22:11:11 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 01-Oct-2019 22:11:11 [ERROR] 01-Oct-2019 22:11:11 [ERROR] For more information about the errors and possible solutions, please read the following articles: 01-Oct-2019 22:11:11 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 01-Oct-2019 22:11:11 [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 2019-10-01 22:11:11,853 INFO [14-repository-stored-specs:pool-21-thread-1] [RepositoryStoredSpecsServiceImpl] exit code: 1 2019-10-01 22:11:11,854 INFO [14-repository-stored-specs:pool-21-thread-1] [RepositoryStoredSpecsServiceImpl] process exception: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:667) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114) at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$10(RepositoryStoredSpecsServiceImpl.java:993) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) at java.lang.Thread.run(Thread.java:748) 2019-10-01 22:11:12,366 INFO [15-BAM::SpecsDetection:pool-22-thread-4] [ImmutablePlanCacheServiceImpl] Invalidating EB-BRAN2 2019-10-01 22:11:12,503 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-14] [BitbucketServerRssStatusUpdater] Sending RSS notification to Stash (repository: JavaSpecs) 2019-10-01 22:11:12,826 INFO [15-BAM::SpecsDetection:pool-22-thread-4] [RssDetectionRunnable] Exception while executing RSS detection for repository 34209793 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository JavaSpecs (34209793) for Bamboo Specs at com.google.common.base.Throwables.propagate(Throwables.java:160) at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.generateBambooYamlsFromSpecs(RepositoryStoredSpecsServiceImpl.java:682) at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.processSpecs(RepositoryStoredSpecsServiceImpl.java:561) at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:308) at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:284) at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) at java.lang.Thread.run(Thread.java:748) Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository JavaSpecs (34209793) for Bamboo Specs at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$10(RepositoryStoredSpecsServiceImpl.java:1006) ... 8 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:667) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:161) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:114) at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$10(RepositoryStoredSpecsServiceImpl.java:993) ... 8 more
Workaround
Currently, there is no known workaround for this behavior.
- relates to
-
HOT-88823 Loading...