TeamCity build failed

Answered

im new with this CI tool, im trying to build simple Hello world Maven plugin and source code was resides on Bitbucket cloud .

i integrated TeamCity with Bitbucket Cloud whenever i done changes and commited in source code then it triggers the build automatically into TeamCity and build was going to Run but i got the below error.

 

[Step 1/1] Error reading Maven project: Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:5.0.0 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:maven-jira-plugin:jar:5.0.0 in central (https://repo.maven.apache.org/maven2) @ .
[17:00:41][Step 1/1] TeamCity is unable to read Maven project. Some features may be unavailable
[17:00:41][Step 1/1] Initial M2_HOME not set
[17:00:41][Step 1/1] Current M2_HOME = E:\TeamCity\buildAgent\tools\maven3_3
[17:00:41][Step 1/1] PATH = E:\TeamCity\buildAgent\tools\maven3_3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.8.0_60\bin;C:\Program Files (x86)\Bitvise SSH Client;C:\Users\admin\.m2\repository;C:\Program Files (x86)\CheckPoint\Endpoint Security Agent\Endpoint Common\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Mercurial\;C:\Program Files\TortoiseHg\;C:\Program Files\Git\bin;C:\Program Files\nodejs\;D:\TortoiseSVN\bin;D:\VisualSVN\bin;C:\Applications\Atlassian\atlassian-plugin-sdk-6.2.4\bin;C:\Users\admin\AppData\Roaming\npm;E:\Sonar\sonar-scanner-2.6.1\sonar-scanner-2.6.1\bin
[17:00:41][Step 1/1] Using watcher: E:\TeamCity\buildAgent\plugins\mavenPlugin\maven-watcher-jdk16\maven-watcher-agent.jar
[17:00:41][Step 1/1] Initial MAVEN_OPTS not set
[17:00:41][Step 1/1] Current MAVEN_OPTS not set
[17:00:41][Step 1/1] Starting: "C:\Program Files\Java\jdk1.8.0_60\bin\java.exe" -Dagent.home.dir=E:\TeamCity\buildAgent -Dagent.name=DESKTOP-28UFDR7 -Dagent.ownPort=9090 -Dagent.work.dir=E:\TeamCity\buildAgent\work -Dbuild.number=13 -Dbuild.vcs.number=c858e8b43657c53de523f4385edfca332190fafa -Dbuild.vcs.number.1=c858e8b43657c53de523f4385edfca332190fafa -Dbuild.vcs.number.TestProject_HttpsGithubComYogesh143TestProjectRefsHeadsMaster=c858e8b43657c53de523f4385edfca332190fafa -Dclassworlds.conf=E:\TeamCity\buildAgent\temp\buildTmp\teamcity.m2.conf -Dcom.jetbrains.maven.watcher.report.file=E:\TeamCity\buildAgent\temp\buildTmp\maven-build-info.xml -Djava.io.tmpdir=E:\TeamCity\buildAgent\temp\buildTmp -Dmaven.home=E:\TeamCity\buildAgent\tools\maven3_3 -Dmaven.multiModuleProjectDirectory=E:\TeamCity\buildAgent\work\437870bd34e7375e -Dmaven.repo.local=C:/Users/admin/.m2/repository -Dteamcity.agent.cpuBenchmark=299 -Dteamcity.agent.dotnet.agent_url=http://localhost:9090/RPC2 -Dteamcity.agent.dotnet.build_id=27 -Dteamcity.auth.password=k8i9EidBXLwobRmdwylkIUmhBP0TsVEJ -Dteamcity.auth.userId=TeamCityBuildId=27 -Dteamcity.build.changedFiles.file=E:\TeamCity\buildAgent\temp\buildTmp\changedFiles4853534287979762568.txt -Dteamcity.build.checkoutDir=E:\TeamCity\buildAgent\work\437870bd34e7375e -Dteamcity.build.id=27 -Dteamcity.build.properties.file=E:\TeamCity\buildAgent\temp\buildTmp\teamcity.build397484658089204122.properties -Dteamcity.build.tempDir=E:\TeamCity\buildAgent\temp\buildTmp -Dteamcity.build.workingDir=E:\TeamCity\buildAgent\work\437870bd34e7375e -Dteamcity.buildConfName=Build -Dteamcity.buildType.id=TestProject_Build -Dteamcity.configuration.properties.file=E:\TeamCity\buildAgent\temp\buildTmp\teamcity.config127329879684457605.properties -Dteamcity.dotnet.nunitaddin=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.NUnitAddin-NUnit -Dteamcity.dotnet.nunitlauncher=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe -Dteamcity.dotnet.nunitlauncher.msbuild.task=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.MSBuildLoggers.dll -Dteamcity.dotnet.nunitlauncher1.1=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher1.1.exe -Dteamcity.dotnet.nunitlauncher2.0=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.exe -Dteamcity.dotnet.nunitlauncher2.0.vsts=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher2.0.VSTS.exe -Dteamcity.dotnet.platform=E:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.TeamCity.PlatformProcessRunner.1.1.exe -Dteamcity.maven.watcher.home=E:\TeamCity\buildAgent\plugins\mavenPlugin\maven-watcher-jdk16 "-Dteamcity.projectName=Test Project" -Dteamcity.runner.properties.file=E:\TeamCity\buildAgent\temp\buildTmp\teamcity.runner7601939793487631815.properties -Dteamcity.tests.recentlyFailedTests.file=E:\TeamCity\buildAgent\temp\buildTmp\testsToRunFirst1391747548171321758.txt "-Dteamcity.version=10.0.1 (build 42078)" -classpath E:\TeamCity\buildAgent\tools\maven3_3\boot\plexus-classworlds-2.5.2.jar; org.codehaus.plexus.classworlds.launcher.Launcher -f E:\TeamCity\buildAgent\work\437870bd34e7375e\pom.xml -B clean install
[17:00:41][Step 1/1] in directory: E:\TeamCity\buildAgent\work\437870bd34e7375e
[17:00:43][Step 1/1] [INFO] Scanning for projects...
[17:00:45][Step 1/1] [WARNING] The POM for com.atlassian.maven.plugins:maven-jira-plugin:jar:5.0.0 is missing, no dependency information available
[17:00:46][Step 1/1] [ERROR] [ERROR] Some problems were encountered while processing the POMs:
[17:00:46][Step 1/1] [ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:5.0.0 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:maven-jira-plugin:jar:5.0.0 in central (https://repo.maven.apache.org/maven2) @
[17:00:46][Step 1/1] @
[17:00:46][Step 1/1] [ERROR] The build could not read 1 project -> [Help 1]
[17:00:46][Step 1/1] [ERROR]
[17:00:46][Step 1/1] [ERROR] The project com.atlassian.plugin:helloworld:1.0.0-SNAPSHOT (E:\TeamCity\buildAgent\work\437870bd34e7375e\pom.xml) has 1 error
[17:00:46][Step 1/1] [ERROR] Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:5.0.0 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:maven-jira-plugin:jar:5.0.0 in central (https://repo.maven.apache.org/maven2) -> [Help 2]
[17:00:46][Step 1/1] [ERROR]
[17:00:46][Step 1/1] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[17:00:46][Step 1/1] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[17:00:46][Step 1/1] [ERROR]
[17:00:46][Step 1/1] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[17:00:46][Step 1/1] Process exited with code 1
[17:00:46][Step 1/1] Step Maven Build (Maven) failed
[17:00:46]Publishing internal artifacts
[17:00:46][Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[17:00:46][Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[17:00:55]Build finished
 

 

 

1 comment
Official comment

Hello,

Looks like the maven-jira-plugin of version 5.0.0 is no longer available in Maven Central.

Please, update the dependency definition in your pom.xml file to 5.0.18:

<dependency>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-jira-plugin</artifactId>
<version>5.0.18</version>
</dependency>

Please sign in to leave a comment.