How should I import a Tycho "surefire with maven-layout" project in Eclipse ? #3503
-
Hello, I am trying to import a project using the maven layout (src/main/java, no build.properties) which more or less follow this demo project found on the demo folder. I am using File > Import > Import as Maven plugin with the following path: The import of the The project JRE should have been Java 17 but Java 5 was selected (!) leading to errors. There are also some problems shown below, one with the build.properties which I assumed Tycho (?) would have somehow generated it ?
I know that Tycho is a maven plugin and not responsible for integrating the pom to Eclipse but I don't know which is doing what (m2e-core?) For information, I am using an Eclipse 2023-12 (4.30.0 ~ 20231201-2043) and I've also tried tried Eclipse 2024-03 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
In general m2e is responsible for importing either bare (no What leads to the question why you need/want to omit So it would be good to understand what is the use case of omitting the build.properties in the first place, and if it would be good to enhance m2e in this regards. |
Beta Was this translation helpful? Give feedback.
Yes it is possible but if you not only want to build it (like in the demo) for real world development you most probably need to configure much more in the
pom.xml
... so there are some project that go maven first, but you will get more convenient and less configuration intensive results if you just start from the IDE and then just use that.Tycho can literally everything then derive from that so your build can have a single almost empty pom then:
The mentions layout here
more refers to the
src/main
andsrc/test
using as source folders than to omit all metada…