Problem creating project from Maven model - new in 7.0.3

Importing a project that uses a plugin in the Maven build process fails in 7.0.3. The same worked in 7.0.2
According to the log file, the problem is that IDEA (or the MavenEmbedder or whoever) tries to download the plugin from the configured snapshot repository instead of from the configured plugin repository.

2008-03-19 11:17:49,549 INFO - ven.project.MavenProjectReader -
org.apache.maven.extension.ExtensionScanningException: Cannot resolve pre-scanned plugin artifact (for use as an extension): org.freehep:freehep-nar-plugin: Failed to resolve extension plugin: org.freehep:freehep-nar-plugin:maven-plugin:2.0-alpha-9
at org.apache.maven.extension.DefaultBuildExtensionScanner.checkModelBuildForExtensions(DefaultBuildExtensionScanner.java:380)
at org.apache.maven.extension.DefaultBuildExtensionScanner.scanInternal(DefaultBuildExtensionScanner.java:183)
at org.apache.maven.extension.DefaultBuildExtensionScanner.scanForBuildExtensions(DefaultBuildExtensionScanner.java:117)
at org.apache.maven.embedder.MavenEmbedder.readProject(MavenEmbedder.java:355)
at org.apache.maven.embedder.MavenEmbedder.readProject(MavenEmbedder.java:347)
at org.jetbrains.idea.maven.project.MavenProjectReader.readBare(MavenProjectReader.java:37)
at org.jetbrains.idea.maven.project.action.MavenImportBuilder.collectProfiles(MavenImportBuilder.java:142)
at org.jetbrains.idea.maven.project.action.MavenImportBuilder.access$200(MavenImportBuilder.java:27)
at org.jetbrains.idea.maven.project.action.MavenImportBuilder$2.run(MavenImportBuilder.java:125)
at org.jetbrains.idea.maven.project.Progress$1.run(Progress.java:47)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$3.run(ProgressManagerImpl.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:8)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:50)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:8)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:9)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:1)
Caused by: org.apache.maven.extension.ExtensionManagerException: Failed to resolve extension plugin: org.freehep:freehep-nar-plugin:maven-plugin:2.0-alpha-9
at org.apache.maven.extension.DefaultExtensionManager.addPluginAsExtension(DefaultExtensionManager.java:238)
at org.apache.maven.extension.DefaultBuildExtensionScanner.checkModelBuildForExtensions(DefaultBuildExtensionScanner.java:376)
... 22 more
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project for plugin 'org.freehep:freehep-nar-plugin': POM 'org.freehep:freehep-nar-plugin' not found in repository: Unable to download the artifact from any repository

org.freehep:freehep-nar-plugin:pom:2.0-alpha-9

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
internal.snapshots (file://s:/mvn_repos/snapshot)
for project org.freehep:freehep-nar-plugin
at org.apache.maven.plugin.DefaultPluginManager.buildPluginProject(DefaultPluginManager.java:309)
at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:220)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:181)
at org.apache.maven.extension.DefaultExtensionManager.addPluginAsExtension(DefaultExtensionManager.java:217)
... 23 more

Any known workaround?
Please fix asap, as 7.0.3 becomes unusable due to that newly introduced bug, at least for us (and 7.0.2 has other flaws regarding maven integration)!

4 comments

Some kind of recommendation on how to go on would be appreciated:
Is this considered a bug by Jetbrains?
Is there anything that can be done to resolve or at least bypass it?
Anything else that can be done?

0

Maybe not really a solution (though, since I have other problems, works for me), but have you tried configuring an external (Maven 2.0.7 eg) Maven installation?

0

This is a problem with 7.0.3. It has been fixed in 8.0 eap and upcoming 7.0.4 eap - please check it.

0

That's great news, I'll take a look at 7.0.4 EAP.

0

Please sign in to leave a comment.