vaadin / eclipse-plugin

Vaadin Plugin for Eclipse
https://vaadin.com/eclipse
16 stars 8 forks source link

Error during Vaadin 10+ project creation #781

Closed szolo closed 5 years ago

szolo commented 5 years ago

Steps to reproduce

In latest Vaadin Eclipse plugin try to create any Vaadin 10+ project.

Actual behavior

Error popup occurs. Exception in the log:

!ENTRY com.vaadin.integration.eclipse.flow 4 0 2019-07-10 13:38:54.452
!MESSAGE Error occured during Maven import of the starter project.
!STACK 0
java.lang.reflect.InvocationTargetException: Error occured during Maven import of the starter project.
    at com.vaadin.integration.eclipse.flow.wizard.StarterManager$2.run(StarterManager.java:176)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.core.runtime.CoreException: Could not read pom.xml
    at org.eclipse.m2e.core.internal.embedder.MavenImpl.readModel(MavenImpl.java:573)
    at org.eclipse.m2e.core.embedder.MavenModelManager.readMavenModel(MavenModelManager.java:95)
    at com.vaadin.integration.eclipse.flow.wizard.StarterManager.scheduleMavenImport(StarterManager.java:208)
    at com.vaadin.integration.eclipse.flow.wizard.StarterManager.access$0(StarterManager.java:202)
    at com.vaadin.integration.eclipse.flow.wizard.StarterManager$2.run(StarterManager.java:171)
    ... 1 more
Caused by: java.io.FileNotFoundException: D:\Tmp\workspace\my-starter-project\pom.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at org.eclipse.m2e.core.internal.embedder.MavenImpl.readModel(MavenImpl.java:566)
    ... 5 more

Expected behavior

Vaadin 10+ project creation should be successful. No exception should appear.

IDE, Plugin and OS version

Windows 10, latest Eclipse and plugin.

Information

This happens due to changed API of the vcom API. Zip artifact created by API contains subfolder with project files. This was not the case before.

Slack: https://vaadin.slack.com/archives/C6QJ3J1PZ/p1562755807415300