Duplicate finder and inspection issue with TC3.1 (RuntimeException)

Hi everyone ,

I have one big project maven2 I want to analyze with TeamCity : I have configured 2 projects:

  • inspection with maven2

  • duplicate finder with maven2


With Teamcity3.0.1 , it was working fine but last week , I decided to upgrade to TeamCity3.1

And now both of these 2 builds are failing with the following error :

Inspection :
: Opening project...[ 36851] ERROR - ction.ex.InspectionApplication -
: java.lang.RuntimeException: Cannot resolve pre-scanned plugin artifact (for use as an extension): com.reucon.maven.plugins:maven-openfire-plugin: Failed to resolve extension plugin: com.reucon.maven.plugins:maven-openfire-plugin:maven-plugin:RELEASE

Duplicate finder
: ERROR - pLocator.util.DuplocateManager -
: java.lang.RuntimeException: Cannot resolve pre-scanned plugin artifact (for use as an extension): com.reucon.maven.plugins:maven-openfire-plugin: Failed to resolve extension plugin: com.reucon.maven.plugins:maven-openfire-plugin:maven-plugin:RELEASE


In my project , I have some maven2 modules with a special packaging in pom.xml
openfire-plugin]]>
This is maven2 project building an openfire plugin with com.reucon.maven.plugins:maven-openfire-plugin

Can you help me in fixing this ?

The full stacktrace for duplicate project is :
Duplicator output:
/usr/java/jdk1.6.0_03/bin/java -Dteamcity.buildType.id=bt22 -Dbuild.number=51 -Dteamcity.buildConfName=duplicate -Dagent.home.dir=/var/wimba/TCagent -Dteamcity.idea.home=/var/wimba/TCagent/work/plugins/idea -Dagent.work.dir=/var/wimba/TCagent/work -Didea.no.jdk.check=true -Dagent.name=kiwiagent1_32 -Dteamcity.build.workingDir=/var/wimba/TCagent/work/23ce4bd5c3257a75 -Djava.io.tmpdir=/var/wimba/TCagent/temp/buildTmp -Dteamcity.build.checkoutDir=/var/wimba/TCagent/work/23ce4bd5c3257a75 -Duser.home=/root -Dfile.separator=/ -Dagent.flow=3698525011026757 -Dbuild.vcs.number.1=60706 -Dfile.encoding=UTF-8 -Dteamcity.projectName=Kiwi Code Quality (trunk) -Didea.system.path=/var/wimba/TCagent/temp/buildTmp/system -Didea.home.path=/var/wimba/TCagent/plugins/idea -Dnewlocalvcs.disabled=true -Didea.build.agent.port=9090 -Dteamcity.auth.userId=TeamCityBuildId=1714 -Dteamcity.auth.password=5yiT7Wcd47AfRynz9rUAI66Z3WfOnTVh -Didea.build.server.build.id=1714 -Duser.timezone=Europe/Paris -Dos.name=Linux -Dpath.separator=: -Dos.version=2.6.18-53.1.4.el5 -Duser.language=en -Duser.name=root -Dos.arch=i386 -Dbuild.number.format= -Duser.country=US -Didea.plugins.path=/var/wimba/TCagent/plugins/idea/plugins -Didea.config.path=/var/wimba/TCagent/temp/buildTmp/config -Didea.jars.nocopy=true -Xmx384m -Didea.exclude.patterns=xmpp/cm-/;xmpp/of-/** -Xbootclasspath/p:/var/wimba/TCagent/plugins/idea/lib/boot.jar -classpath /usr/java/jdk1.6.0_03/lib/tools.jar:/var/wimba/TCagent/plugins/idea/lib/bootstrap.jar:/var/wimba/TCagent/plugins/idea/lib/extensions.jar:/var/wimba/TCagent/plugins/idea/lib/openapi.jar:/var/wimba/TCagent/plugins/idea/lib/jdom.jar:/var/wimba/TCagent/plugins/idea/lib/log4j.jar com.intellij.idea.Main duplocate /var/wimba/TCagent/work/23ce4bd5c3257a75/pom.xml false /var/wimba/TCagent/temp/buildTmp/duplicates34258 10 0 true false false true true true
Opening project...
ERROR - pLocator.util.DuplocateManager -
java.lang.RuntimeException: Cannot resolve pre-scanned plugin artifact (for use as an extension): com.reucon.maven.plugins:maven-openfire-plugin: Failed to resolve extension plugin: com.reucon.maven.plugins:maven-openfire-plugin:maven-plugin:RELEASE
at com.intellij.openapi.ui.TestDialog$1.show(TestDialog.java:23)
at com.intellij.openapi.ui.Messages.showDialog(Messages.java:110)
at com.intellij.openapi.ui.Messages.showErrorDialog(Messages.java:205)
at org.jetbrains.idea.maven.project.action.MavenProjectOpenProcessor.doQuickImport(MavenProjectOpenProcessor.java:46)
at com.intellij.projectImport.ProjectOpenProcessor.doOpenProject(ProjectOpenProcessor.java:36)
at com.intellij.ide.impl.ProjectUtil.openOrImport(ProjectUtil.java:169)
at com.intellij.dupLocator.util.DuplocateMain$1.run(DuplocateMain.java:45)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:68)
at com.intellij.dupLocator.util.DuplocateMain.main(DuplocateMain.java:42)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:63)
at com.intellij.idea.MainImpl$3.run(MainImpl.java:1)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
ERROR - pLocator.util.DuplocateManager - IntelliJ IDEA (Selena) #7729 Build #7729
ERROR - pLocator.util.DuplocateManager - JDK: 1.6.0_03
ERROR - pLocator.util.DuplocateManager - VM: Java HotSpot(TM) Client VM
ERROR - pLocator.util.DuplocateManager - Vendor: Sun Microsystems Inc.
ERROR - pLocator.util.DuplocateManager - OS: Linux
ERROR - pLocator.util.DuplocateManager - Last Action:
: Process exit code: 1
: Build finished


Let me kow if you want the full stacktrace for inspection ...
Thank you.

2 comments

You may try to find and replace the maven-embedder-idea-2.1.jar in teamcity 3.1 directory with the same jar from teamcity 3.0.1 installation.

0

Ok ,
sorry for the delay to reply but i had to work on other projects.

This is what I did to fix the issue :

find the jar maven-embedder-idea-2.1.jar which is located in update/plugins/idea_dist.jar
then replace maven-embedder-idea-2.1.jar using the previous jar from teamcity 301 and re inject it in idea_dist.jar

Then agents will auto-upgrade themselves.

Inspection and Duplicate are back available.

Thank you

0

Please sign in to leave a comment.