[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] SOLVED??: Re: problem with resolving custom build <extension>
|
Hi,
> This is not expected behaviour. I think the problem has to do with use
> of SNAPSHOT plugins but I was never able to reproduce it reliably
> locally. If you can provide exact steps that trigger the problem, that
> would be really helpful.
Unfortunatelly, the problem with maven build extension is a bit weird.
- I just tried to release a fix (ie. not a SNAPSHOT) version of the plug-in
with no effect (error still there)
- It seems, that whatever purpose of files in
.metadata/.plugins/org.eclipse.m2e.jdt/, sometimes there are less files
than maven projects -- as if the process that generates them will crash?
- removing them and letting Eclipse regenerate it seems to help
- I can give you a snippet of log, maybe it will help:
- - - -
2011-11-16 19:25:41,236 [Worker-1] ERROR o.e.m.c.i.p.r.ProjectRegistryManager - Failed to read Maven project: 1 problem was encountered while building the effective model for cz.dain.ispop.facade.service:dto:1.0-SNAPSHOT
[ERROR] Unresolveable build extension: Plugin cz.dain.ispop:build-tools:1.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to collect dependencies for cz.dain.ispop:build-tools:jar:1.0-SNAPSHOT () @
for project cz.dain.ispop.facade.service:dto:1.0-SNAPSHOT at /home/martin/src/dain/ispop/cz.dain.ispop.facade.service.dto/pom.xml
org.apache.maven.project.ProjectBuildingException: 1 problem was encountered while building the effective model for cz.dain.ispop.facade.service:dto:1.0-SNAPSHOT
[ERROR] Unresolveable build extension: Plugin cz.dain.ispop:build-tools:1.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to collect dependencies for cz.dain.ispop:build-tools:jar:1.0-SNAPSHOT () @
for project cz.dain.ispop.facade.service:dto:1.0-SNAPSHOT at /home/martin/src/dain/ispop/cz.dain.ispop.facade.service.dto/pom.xml
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:139) ~[maven-core-3.0.2.jar:3.0.2]
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:98) ~[maven-core-3.0.2.jar:3.0.2]
at org.eclipse.m2e.core.internal.embedder.MavenImpl.readProject(MavenImpl.java:553) ~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.readProjectWithDependencies(ProjectRegistryManager.java:746) ~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.create(ProjectRegistryManager.java:167) ~[org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at org.eclipse.m2e.core.internal.project.registry.MavenProjectManager.create(MavenProjectManager.java:70) [org.eclipse.m2e.core_1.0.100.20110804-1717.jar:na]
at org.eclipse.m2e.core.ui.internal.actions.SelectionUtil.getMavenProject(SelectionUtil.java:276) [org.eclipse.m2e.core.ui_1.0.100.20110804-1717.jar:na]
at org.eclipse.m2e.editor.pom.MavenPomEditor.readMavenProject(MavenPomEditor.java:744) [org.eclipse.m2e.editor_1.0.100.20110804-1717.jar:na]
at org.eclipse.m2e.editor.pom.MavenPomEditor$7.run(MavenPomEditor.java:1070) [org.eclipse.m2e.editor_1.0.100.20110804-1717.jar:na]
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) [org.eclipse.core.jobs_3.5.100.v20110404.jar:na]
Caused by: org.apache.maven.model.building.ModelBuildingException: 1 problem was encountered while building the effective model for cz.dain.ispop.facade.service:dto:1.0-SNAPSHOT
[ERROR] Unresolveable build extension: Plugin cz.dain.ispop:build-tools:1.0-SNAPSHOT or one of its dependencies could not be resolved: Failed to collect dependencies for cz.dain.ispop:build-tools:jar:1.0-SNAPSHOT () @
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:422) ~[maven-model-builder-3.0.2.jar:3.0.2]
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374) ~[maven-model-builder-3.0.2.jar:3.0.2]
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365) ~[maven-model-builder-3.0.2.jar:3.0.2]
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232) ~[maven-model-builder-3.0.2.jar:3.0.2]
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:135) ~[maven-core-3.0.2.jar:3.0.2]
... 9 common frames omitted
- - - -
> As for buildhelper connector, what are the exact problems that you are
> seeing?
According to buildhelper connector:
1. (this may not be related to buildhelper connector) we have several build
environments, each with its own maven profile. One of the profiles is the
default one and as such it defines default values for various purposes (it
is activated by default <activeByDefault>).
anyway, the m2e is unable to determine those default values defined in
<activeByDefault> profile
2. we use several custom plug-ins, some of them are unable to be executed,
for example:
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>1.3.7</version>
which is an annotation processor executed in
<execution>
<id>process-annotations</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
will be happy to provide more info :-)
Kind Regards,
Martin.