This appears to be a similar issue to: https://github.com/sonatype/m2eclipse-tycho/issues/4 but since that was posted about a year ago, and since my situation and error are slightly different, I thought it would be best to report a new issue. I hope this wasn't a mistake :).
I have a number of projects packaged as 'bundle' which don't use any tycho related maven plugins, and when the tycho m2e connector isn't installed they all compile / run / install etc just fine. When the tycho connector (0.6.0.201210231015) is installed, though, I get the following error when trying to update the projects from the POMs:
java.lang.IllegalArgumentException
at org.sonatype.tycho.m2e.internal.OsgiBundleProjectConfigurator.generateBundleManifest(OsgiBundleProjectConfigurator.java:76)
at org.sonatype.tycho.m2e.internal.OsgiBundleProjectConfigurator.configureRawClasspath(OsgiBundleProjectConfigurator.java:178)
at org.eclipse.m2e.jdt.internal.AbstractJavaProjectConfigurator.invokeJavaProjectConfigurators(AbstractJavaProjectConfigurator.java:171)
at org.eclipse.m2e.jdt.internal.AbstractJavaProjectConfigurator.configure(AbstractJavaProjectConfigurator.java:127)
at org.eclipse.m2e.core.project.configurator.AbstractLifecycleMapping.configure(AbstractLifecycleMapping.java:109)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$3.call(ProjectConfigurationManager.java:457)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$3.call(ProjectConfigurationManager.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:161)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:137)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:450)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:388)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:316)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:161)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:137)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:89)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1301)
at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:313)
at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
These are all the plugin entries of the POM which I think may be relevant, sorry if this is too much/too little, I wasn't sure what would be important:
Now AFAIU this method of annotation/POM first configuration is not compatible with the tycho m2e connector, so I have no idea why it is trying to interfere with this build, and as soon as I uninstall the tycho connector everything works fine again.
(FWIW I have another project in the workspace configured to actually use tycho with 'eclipse-plugin' packaging, and I don't get this error with that.)
This appears to be a similar issue to: https://github.com/sonatype/m2eclipse-tycho/issues/4 but since that was posted about a year ago, and since my situation and error are slightly different, I thought it would be best to report a new issue. I hope this wasn't a mistake :).
I have a number of projects packaged as 'bundle' which don't use any tycho related maven plugins, and when the tycho m2e connector isn't installed they all compile / run / install etc just fine. When the tycho connector (0.6.0.201210231015) is installed, though, I get the following error when trying to update the projects from the POMs:
These are all the plugin entries of the POM which I think may be relevant, sorry if this is too much/too little, I wasn't sure what would be important:
Now AFAIU this method of annotation/POM first configuration is not compatible with the tycho m2e connector, so I have no idea why it is trying to interfere with this build, and as soon as I uninstall the tycho connector everything works fine again.
(FWIW I have another project in the workspace configured to actually use tycho with 'eclipse-plugin' packaging, and I don't get this error with that.)
Cheers,
Eli