Подтвердить что ты не робот

Соединительный разъем m2e не совместим с Eclipse Juno SR1 m2e 1.2

Обновить: переместил решение в ответ

Eclipse Juno SR1 устанавливает плагин m2e версии 1.2. Соединитель m2e buildhelper, поставляемый на рынке Eclipse, несовместим с этой версией плагина m2e. Я просматривал различные списки рассылки, но не могу найти место, где можно найти обновленный buildhelper.

При попытке установить buildhelper-коннектор m2e возникает следующая ошибка:

Operation details
Cannot complete the install because of a conflicting dependency.
Software being installed: m2e connector for build-helper-maven-plugin 0.15.0.201109282249 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201109282249)
Software currently installed: m2e - Maven Integration for Eclipse 1.2.0.20120903-1050     (org.eclipse.m2e.feature.feature.group 1.2.0.20120903-1050)
Only one of the following can be installed at once: 
    Maven Integration for Eclipse JDT 1.2.0.20120903-1050 (org.eclipse.m2e.jdt 1.2.0.20120903-1050)
    Maven Integration for Eclipse JDT 1.1.0.20120530-0009 (org.eclipse.m2e.jdt 1.1.0.20120530-0009)
Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse 1.2.0.20120903-1050 (org.eclipse.m2e.feature.feature.group 1.2.0.20120903-1050)
    To: org.eclipse.m2e.jdt [1.2.0.20120903-1050]
Cannot satisfy dependency:
    From: m2e connector for build-helper-maven-plugin 0.15.0.201109282249 (org.sonatype.m2e.buildhelper 0.15.0.201109282249)
    To: bundle org.eclipse.m2e.jdt [1.1.0,1.2.0)
Cannot satisfy dependency:
    From: m2e connector for build-helper-maven-plugin 0.15.0.201109282249 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201109282249)
    To: org.sonatype.m2e.buildhelper [0.15.0.201109282249]

В наших pom файлах мы используем buildhelper для добавления каталогов с сгенерированными источниками в Eclipse:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>build-helper-maven-plugin</artifactId>
    <version>1.5</version>
    <executions>
      <!-- Fix this eclipse error by discovering the plugin in the marketplace -->
        <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>add-source</goal>
            </goals>
            <configuration>
                <sources>
                        <source>${project.build.directory}/generated-sources/cxf</source>
                </sources>
            </configuration>
        </execution>
    </executions>
</plugin>
4b9b3361

Ответ 1

Комментарий в pom предложил использовать рынок Eclipse для установки сборщика:

<!-- Fix this eclipse error by discovering the plugin in the marketplace -->

Это не будет сделано, потому что версия buildhelper на рынке Eclipse устарела.

Вместо использования Eclipse Marketplace я установил buildhelper непосредственно из репозитория Sonatype, используя опцию меню Eclipse для установки нового программного обеспечения. Репозиторий Sonatype с (в настоящее время) последней версией находится здесь: https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.15.0/N/0.15.0.201206251206/

Это исправило мою проблему.