vaadin / platform

Vaadin platform 10+ is a Java web development platform based on Vaadin web components. If you don't know to which repository your bug report should be filed, use this and we'll move it to the right one.
https://vaadin.com
531 stars 78 forks source link

vaadin-maven-plugin starting from 24.4.X have lost m2e lifecycle-mapping-metadata.xml #6562

Open xdenser opened 1 week ago

xdenser commented 1 week ago

Describe the bug

I always get prod mode when try to run from Eclipse. I.e. goals are mapped incorrectly.

Expected-behavior

No response

Reproduction

Just use 24.4.4 in eclipse project that was working with 24.3.X.

System Info

Vaadin 24.4.4, Windows 11, Eclipse 4.29

xdenser commented 1 week ago

The problem IMO is that you have switched to hilla-maven-plugin from flow-maven-plugin, where I do not see the file lifecycle-mapping-metadata.xml in hilla-maven-plugin repo.

Artur- commented 1 week ago

How do you run the project in Eclipse?

xdenser commented 1 week ago

This is complicated - I have custom plugin that deploys to Tomcat folders and generates run configuration with everything needed on class path. Actually it does not matter - because when I have something like this in my pom.xml

<plugin>
   <groupId>com.vaadin</groupId>
   <artifactId>vaadin-maven-plugin</artifactId>
   ...
 <goals>
   <prepare-frontend>
   <build-frontend>
 </goals>
  ...
</plugin>

I already get warning in Eclipse about missing lifecycle mapping just by switching to 24.4.4 This was not the case with 24.3 And I do not need to run 'build-frontend' in Eclipse, when I remove it from pom.xml - it generates proper build-info and starts dev server.