Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] Target platform for working on m2e

Hi all,

I'm an occassional Eclipse contributor. There's a bug in m2e I want to work on and I was setting up my development environment (it's been a while since I last worked on m2e). I'm following the instructions in m2e-core/CONTRIBUTING.md at master ยท eclipse-m2e/m2e-core

After running the eclipse installer, I got Eclispe running with a workspace that has m2e-core / m2e-core-tests / m2e-maven-runtime cloned. Unfortunately even after restarting / updating maven projects, the target platform is missing so I get errors in some projects as follows:

Plugin execution not covered by lifecycle configuration: org.eclipse.tycho:target-platform-configuration:2.5.0:target-platform (execution: default-target-platform, phase: initialize) 

I see that the installer has added the Tycho project configurators but I suppose there is no m2e connector for this particular one? Do I need to manually point somewhere? The catalog in the installation seems to be the defaultl:


Further to this, I can't seem to compile even from command line. Supposedly I need to first run:

    mvn generate-sources -f m2e-maven-runtime -Pgenerate-osgi-metadata
    mvn clean verify

Unfortunately the first command fails for me with:

$ mvn generate-sources -f m2e-maven-runtime -Pgenerate-osgi-metadata
[INFO] Scanning for projects...
[ERROR] Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.m2e:target-platform:target:1.16.0-SNAPSHOT -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Could not resolve target platform specification artifact org.eclipse.m2e:target-platform:target:1.16.0-SNAPSHOT


Have I missed a step?

Back to the top