ok this seems to be a pde bug (or org.sonatype.tycho.m2e.internal.TychoLifecycleMapping.configure(ProjectConfigurationRequest, IProgressMonitor) using pde the wrong way)
private static void addSourceAndLibraries(IProject project, IPluginModelBase model, IBuild build, boolean clear, Map<?, ?> sourceLibraryMap, ArrayList<IClasspathEntry> result) throws CoreException { String testPluginPattern = PDECore.getDefault().getPreferencesManager().getString(ICoreConstants.TEST_PLUGIN_PATTERN); boolean isTestPlugin = testPluginPattern != null && testPluginPattern.length() > 0 && Pattern.compile(testPluginPattern).matcher(project.getName()).find(); HashSet<IPath> paths = new HashSet<>(); ClasspathAttribute.<init>(String, String) line: 25 JavaCore.newClasspathAttribute(String, String) line: 4855 ClasspathComputer.addSourceFolder(IBuildEntry, IProject, HashSet<IPath>, ArrayList<IClasspathEntry>, boolean) line: 190 ClasspathComputer.addSourceAndLibraries(IProject, IPluginModelBase, IBuild, boolean, Map<?,?>, ArrayList<IClasspathEntry>) line: 135 ClasspathComputer.getClasspath(IProject, IPluginModelBase, Map<?,?>, boolean, boolean) line: 78 PDEProjectHelper.setClasspath(IProject, IPluginModelBase, IProgressMonitor) line: 238 PDEProjectHelper.configurePDEBundleProject(IProject, MavenProject, IProgressMonitor) line: 144 TychoLifecycleMapping.configure(ProjectConfigurationRequest, IProgressMonitor) line: 65 ProjectConfigurationManager.lambda$2(IMavenProjectFacade, ProjectConfigurationRequest, IMavenExecutionContext, IProgressMonitor) line: 511 1831464324.call(IMavenExecutionContext, IProgressMonitor) line: not available MavenExecutionContext.executeBare(MavenProject, ICallable<V>, IProgressMonitor) line: 179 MavenExecutionContext.execute(MavenProject, ICallable<V>, IProgressMonitor) line: 153 ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationRequest, IProgressMonitor) line: 505 ProjectConfigurationManager.updateProjectConfiguration0(Collection<IFile>, boolean, boolean, boolean, IProgressMonitor) line: 443 ProjectConfigurationManager.lambda$1(MavenUpdateRequest, boolean, boolean, boolean, IMavenExecutionContext, IProgressMonitor) line: 358 1685816471.call(IMavenExecutionContext, IProgressMonitor) line: not available MavenExecutionContext.executeBare(MavenProject, ICallable<V>, IProgressMonitor) line: 179 MavenExecutionContext.execute(MavenProject, ICallable<V>, IProgressMonitor) line: 153 MavenExecutionContext.execute(ICallable<V>, IProgressMonitor) line: 101 MavenImpl.execute(boolean, boolean, ICallable<V>, IProgressMonitor) line: 1370 ProjectConfigurationManager.updateProjectConfiguration(MavenUpdateRequest, boolean, boolean, boolean, IProgressMonitor) line: 357 UpdateMavenProjectJob.runInWorkspace(IProgressMonitor) line: 79 UpdateMavenProjectJob(InternalWorkspaceJob).run(IProgressMonitor) line: 42 Am 14.06.21 um 17:09 schrieb Christian Dietrich: > Hi all, > > given a project with name org.xtext.example.test > that has <packaging>eclipse-plugin</packaging> > when i do a context menu -> maven -> update project > then the .classpath gets wrongly updated to > > > <classpath> > <classpathentry kind="con" > path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/> > <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> > <classpathentry kind="src" path="src/"> > <attributes> > <attribute name="test" value="true"/> > </attributes> > </classpathentry> > <classpathentry kind="src" path="src-gen/"> > <attributes> > <attribute name="test" value="true"/> > </attributes> > </classpathentry> > <classpathentry kind="src" path="xtend-gen/"> > <attributes> > <attribute name="test" value="true"/> > </attributes> > </classpathentry> > <classpathentry kind="output" path="target/classes"/> > </classpath> > > > the source folders are wrongly flagged as > <attribute name="test" value="true"/> > > where is m2e is this coming from? > is it in the tycho connector? is it in m2e core? > where can i find the source codes for these? > > Thanks > Christian > -- Christian Dietrich (Diplom-Informatiker (BA)) Softwareentwickler / -Architekt Committer and Co-Lead for Eclipse Xtext Tel.: +49 (0) 711 / 34 21 91-0 Fax.: +49 (0) 711 / 34 21 91-29 Mobil: +49 (0) 151 / 173969 17 Mail: christian.dietr...@itemis.de XING: https://www.xing.com/profile/Christian_Dietrich8 Web: http://www.itemis.de Skype: christiandietrich1982 itemis AG Niederlassung Süd Industriestraße 6 70565 Stuttgart -- Vorstand/Board: Jens Wagener (Vors./chairman), Dr. Stephan Eberle, Abdelghani El-Kacimi, Wolfgang Neuhaus, Franz-Josef Schuermann Aufsichtsrat/Supervisory Board: Michael Neuhaus (Vors./chairman), Harald Goertz, Stephan Grollmann Sitz der Gesellschaft/Registered Office: Am Brambusch 15-24, 44536 Lünen (Germany) Registergericht/Registry Court: Amtsgericht Dortmund | HRB 20621 _______________________________________________ m2e-users mailing list m2e-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-users