Oxygen is borked at the moment: https://bugs.eclipse.org/bugs/show_bug.cgi?id=514672
My advice is to stay on Neon.2 ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=511793 ruins Neon.3 for me) at the moment, until a fix is released On Fri, Apr 7, 2017 at 2:14 AM, Thorsten Heit <thorsten.h...@vkb.de> wrote: > Hi, > > with the latest Eclipse 4.7 (Oxygen) milestone M6 I'm having problems > updating Maven projects that contain EAR modules: > > > Plug-in: org.eclipse.core.jobs > Severity: Error > Date: Fri Apr 07 07:52:16 CEST 2017 > Message: An internal error occurred during: "Updating Maven Project". > > Exception Stack Trace: > org.eclipse.core.runtime.AssertionFailedException: Adapter factory > org.eclipse.jst.j2ee.internal.common.VirtualArchiveComponentAdapter > Factory@72348fa1 returned org.eclipse.core.runtime.Path that is not an > instance of org.eclipse.wst.common.componentcore.internal.resources. > VirtualArchiveComponent > at org.eclipse.core.internal.runtime.AdapterManager. > getAdapter(AdapterManager.java:307) > at org.eclipse.wst.common.componentcore.internal.resources. > VirtualArchiveComponent.getAdapter(VirtualArchiveComponent.java:227) > at org.eclipse.wst.common.componentcore.internal.resources. > VirtualArchiveComponent.getUnderlyingDiskFile( > VirtualArchiveComponent.java:282) > at org.eclipse.wst.common.componentcore.internal.resources. > VirtualArchiveComponent.getAdapter(VirtualArchiveComponent.java:215) > at org.eclipse.wst.common.componentcore.internal.resources. > VirtualArchiveComponent.exists(VirtualArchiveComponent.java:194) > at org.eclipse.wst.common.componentcore.internal. > resources.VirtualComponent.getReferences(VirtualComponent.java:440) > at org.eclipse.jst.j2ee.componentcore.util.EARVirtualComponent. > getHardReferences(EARVirtualComponent.java:89) > at org.eclipse.jst.j2ee.componentcore.util.EARVirtualComponent. > getReferences(EARVirtualComponent.java:192) > at org.eclipse.m2e.wtp.EarProjectConfiguratorDelegate > .setModuleDependencies(EarProjectConfiguratorDelegate.java:226) > at org.eclipse.m2e.wtp.WTPProjectConfigurator.mavenProjectChanged( > WTPProjectConfigurator.java:92) > at org.eclipse.m2e.core.internal.project. > ProjectConfigurationManager.mavenProjectChanged( > ProjectConfigurationManager.java:1036) > at org.eclipse.m2e.core.internal.project.registry. > ProjectRegistryManager.notifyProjectChangeListeners( > ProjectRegistryManager.java:783) > at org.eclipse.m2e.core.internal.project.registry. > ProjectRegistryManager.applyMutableProjectRegistry( > ProjectRegistryManager.java:930) > at org.eclipse.m2e.core.internal.project.registry. > ProjectRegistryManager.refresh(ProjectRegistryManager.java:300) > at org.eclipse.m2e.core.internal.project. > ProjectConfigurationManager.updateProjectConfiguration0( > ProjectConfigurationManager.java:405) > at org.eclipse.m2e.core.internal.project. > ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:352) > at org.eclipse.m2e.core.internal.project. > ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1) > at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext. > executeBare(MavenExecutionContext.java:177) > at org.eclipse.m2e.core.internal.embedder. > MavenExecutionContext.execute(MavenExecutionContext.java:151) > at org.eclipse.m2e.core.internal.embedder. > MavenExecutionContext.execute(MavenExecutionContext.java:99) > at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute( > MavenImpl.java:1351) > at org.eclipse.m2e.core.internal.project. > ProjectConfigurationManager.updateProjectConfiguration( > ProjectConfigurationManager.java:349) > at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob. > runInWorkspace(UpdateMavenProjectJob.java:77) > at org.eclipse.core.internal.resources.InternalWorkspaceJob.run( > InternalWorkspaceJob.java:39) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) > > I can't remember to have seen this message with the 4.7M5 milestone. > > I'm using: > > Eclipse Java EE IDE for Web Developers. > Version: Oxygen Release Milestone 6 (4.7.0 M6) > Build id: 20170316-1528 > > Some of the installed plug-ins: > * m2e - Extensions Development Support (Optional) > 1.8.0.20170329-2112 org.eclipse.m2e.sdk.feature.feature.group > Eclipse.org - m2e > * m2e - Maven Integration for Eclipse (includes Incubating components) > 1.8.0.20170329-2112 org.eclipse.m2e.feature.feature.group > Eclipse.org - m2e > * m2e - slf4j over logback logging (Optional) 1.8.0.20170329-2112 > org.eclipse.m2e.logback.feature.feature.group Eclipse.org - > m2e > * m2e-wtp - JAX-RS configurator for WTP (Optional) > 1.3.2.20161026-1738 org.eclipse.m2e.wtp.jaxrs.feature.feature.group > Eclipse.org - m2e-wtp > * m2e-wtp - JPA configurator for WTP (Optional) 1.3.2.20161026-1738 > org.eclipse.m2e.wtp.jpa.feature.feature.group Eclipse.org - > m2e-wtp > * m2e-wtp - JSF configurator for WTP (Optional) 1.3.2.20161026-1738 > org.eclipse.m2e.wtp.jsf.feature.feature.group Eclipse.org - > m2e-wtp > * m2e-wtp - Maven Integration for WTP 1.3.2.20161026-1738 > org.eclipse.m2e.wtp.feature.feature.group Eclipse.org - m2e-wtp > > > Does anybody know how to fix this? > > > I don't know it it is important, but the problematic EAR projects > basically contain the following snippet in their pom.xml's: > > > <properties> > <implementation.version>${project.version} (SVN rev. ${buildNumber})</ > implementation.version> > </properties> > > <build> > <finalName>myproject-${project.version}</finalName> > > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>*buildnumber*-maven-plugin</artifactId> > </plugin> > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-ear-plugin</artifactId> > <version>2.10.1</version> > <configuration> > <version>5</version> > <description>myproject</description> > <displayName>myproject-${project.version}</displayName> > <generateApplicationXml>true</generateApplicationXml> > <archive> > <manifestEntries> > <Implementation-Version>${implementation.version}</ > Implementation-Version> > <Implementation-Build>${buildNumber}</Implementation-Build> > <Implementation-Date>${maven.build.timestamp}</ > Implementation-Date> > </manifestEntries> > </archive> > <modules> > <webModule> > <groupId>${project.groupId}</groupId> > <artifactId>myproject-war</artifactId> > <contextRoot>/myproject</contextRoot> > </webModule> > </modules> > </configuration> > </plugin> > </plugins> > </build> > > > Regards > > Thorsten > _______________________________________________ > m2e-users mailing list > m2e-users@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/m2e-users > -- "Have you tried turning it off and on again" - The IT Crowd And if that fails, then http://goo.gl/tnBgH5
_______________________________________________ m2e-users mailing list m2e-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users