Cant' build maven Base Starter project for Vaadin Flow

Hi, after downloading the zip and importing it (eclipse oxygen) as a maven project, I can’t even compile. I get two errors :
The project was not built since its build path is incomplete. Cannot find the class file for com.vaadin.flow.component.polymertemplate.AbstractTemplate. Fix the build path then try building this project
The project was not built since its build path is incomplete. Cannot find the class file for com.vaadin.flow.component.polymertemplate.AbstractTemplate. Fix the build path then try building this project

Maybe a missing dependency ?

Here’s what I did:

  • Downloaded a project .zip file from https://vaadin.com/start/v10-project-base
  • Copied the .zip file to my Eclipse Oxygen workspace and unzipped it to its own folder
  • In Eclipse, “Import…” → “Existing Maven Projects”, choose the workspace directory and the downloaded project
  • Once the import is complete, right-click on the project in the Project Explorer and choose “Run As…” → “Maven Build…”
  • Enter jetty:run in the Goals box, click Run

Everything started up ok for me. Where is it breaking for you?

I did exactly the same :frowning:

Here’s the trace I have with jetty:run

[INFO]
 Scanning for projects...
[INFO]
                                                                         
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Building My Starter Project 1.0-SNAPSHOT
[INFO]
 ------------------------------------------------------------------------
[INFO]
 
[INFO]
 >>> jetty-maven-plugin:9.4.11.v20180605:run (default-cli) > test-compile @ my-starter-project >>>
[INFO]
 
[INFO]
 --- maven-resources-plugin:2.6:resources (default-resources) @ my-starter-project ---
[INFO]
 Using 'UTF-8' encoding to copy filtered resources.
[INFO]
 Copying 2 resources
[INFO]
 
[INFO]
 --- maven-compiler-plugin:3.1:compile (default-compile) @ my-starter-project ---
[INFO]
 Changes detected - recompiling the module!
[INFO]
 Compiling 2 source files to C:\isis\projets_oxygen\vaadin_10_startup\target\classes
[WARNING]
 error reading C:\Users\fregnaut\.m2\repository\com\vaadin\flow-server\1.0.0\flow-server-1.0.0.jar; invalid LOC header (bad signature)
[INFO]
 
[INFO]
 --- maven-resources-plugin:2.6:testResources (default-testResources) @ my-starter-project ---
[INFO]
 Using 'UTF-8' encoding to copy filtered resources.
[INFO]
 skip non existing resourceDirectory C:\isis\projets_oxygen\vaadin_10_startup\src\test\resources
[INFO]
 
[INFO]
 --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ my-starter-project ---
[INFO]
 No sources to compile
[INFO]
 
[INFO]
 <<< jetty-maven-plugin:9.4.11.v20180605:run (default-cli) < test-compile @ my-starter-project <<<
[INFO]
 
[INFO]
 --- jetty-maven-plugin:9.4.11.v20180605:run (default-cli) @ my-starter-project ---
[INFO]
 webAppSourceDirectory not set. Trying src\main\webapp
[INFO]
 Reload Mechanic: automatic
[INFO]
 nonBlocking:false
[INFO]
 Classes = C:\isis\projets_oxygen\vaadin_10_startup\target\classes
[INFO]
 Configuring Jetty for project: My Starter Project
[INFO]
 Logging initialized @8800ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO]
 Context path = /
[INFO]
 Tmp directory = C:\isis\projets_oxygen\vaadin_10_startup\target\tmp
[INFO]
 Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO]
 Web overrides =  none
[INFO]
 web.xml file = null
[INFO]
 Webapp directory = C:\isis\projets_oxygen\vaadin_10_startup\src\main\webapp
[INFO]
 jetty-9.4.11.v20180605; built: 2018-06-05T18:24:03.829Z; git: d5fc0523cfa96bfebfbda19606cad384d772f04c; jvm 1.8.0_131-b11
[WARNING]
 Unknown asm implementation version, assuming version 393216
[INFO]
 Scanning elapsed time=394ms
[WARNING]
 Failed startup of context o.e.j.m.p.JettyWebAppContext@100d047{/,[file:///C:/isis/projets_oxygen/vaadin_10_startup/src/main/webapp/, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/flow-data/1.0.0/flow-data-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/webcomponents/webcomponentsjs/1.2.0/webcomponentsjs-1.2.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-radio-button/1.0.1/vaadin-radio-button-1.0.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymer/polymer/2.6.0/polymer-2.6.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-flex-layout/2.0.3/iron-flex-layout-2.0.3.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-resizable-behavior/2.1.0/iron-resizable-behavior-2.1.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-fit-behavior/2.2.0/iron-fit-behavior-2.2.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-upload/4.0.0/vaadin-upload-4.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-tabs/2.0.0/vaadin-tabs-2.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-usage-statistics/1.0.8/vaadin-usage-statistics-1.0.8.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-element-mixin/1.0.2/vaadin-element-mixin-1.0.2.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/vaadin-text-field-flow/1.0.0/vaadin-text-field-flow-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-notification/1.0.0/vaadin-notification-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-progress-bar/1.0.0/vaadin-progress-bar-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-a11y-keys-behavior/2.1.1/iron-a11y-keys-behavior-2.1.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-themable-mixin/1.1.6/vaadin-themable-mixin-1.1.6.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/vaadin-date-picker-flow/1.0.0/vaadin-date-picker-flow-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-meta/2.1.1/iron-meta-2.1.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-list/2.0.12/iron-list-2.0.12.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-control-state-mixin/2.0.3/vaadin-control-state-mixin-2.0.3.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-icons/4.1.4/vaadin-icons-4.1.4.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-split-layout/4.0.0/vaadin-split-layout-4.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-lumo-styles/1.0.0/vaadin-lumo-styles-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-combo-box/4.0.1/vaadin-combo-box-4.0.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-overlay-behavior/2.3.4/iron-overlay-behavior-2.3.4.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-scroll-target-behavior/2.1.1/iron-scroll-target-behavior-2.1.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-media-query/2.1.0/iron-media-query-2.1.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-checkbox/2.1.1/vaadin-checkbox-2.1.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-ordered-layout/1.0.2/vaadin-ordered-layout-1.0.2.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-iconset-svg/2.2.1/iron-iconset-svg-2.2.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-button/2.0.1/vaadin-button-2.0.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-list-box/1.0.2/vaadin-list-box-1.0.2.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/flow-push/1.0.0/flow-push-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/vaadin-iron-list-flow/1.0.0/vaadin-iron-list-flow-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-a11y-announcer/2.1.0/iron-a11y-announcer-2.1.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/polymerelements/iron-icon/2.1.0/iron-icon-2.1.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-date-picker/3.0.2/vaadin-date-picker-3.0.2.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-grid/5.0.4/vaadin-grid-5.0.4.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-list-mixin/2.0.0/vaadin-list-mixin-2.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/flow-client/1.0.0/flow-client-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/webcomponents/shadycss/1.2.1/shadycss-1.2.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-text-field/2.0.1/vaadin-text-field-2.0.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/com/vaadin/vaadin-grid-flow/1.0.0/vaadin-grid-flow-1.0.0.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-dialog/2.0.2/vaadin-dialog-2.0.2.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-development-mode-detector/1.0.3/vaadin-development-mode-detector-1.0.3.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-overlay/3.0.3/vaadin-overlay-3.0.3.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-form-layout/2.0.1/vaadin-form-layout-2.0.1.jar!/META-INF/resources, jar:file:///C:/Users/fregnaut/.m2/repository/org/webjars/bowergithub/vaadin/vaadin-item/2.0.0/vaadin-item-2.0.0.jar!/META-INF/resources]
,UNAVAILABLE}{file:///C:/isis/projets_oxygen/vaadin_10_startup/src/main/webapp/}
java.util.zip.ZipException: invalid LOC header (bad signature)
	at java.util.zip.ZipFile.read(Native Method)
	at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
	at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:717)
	at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:419)
	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
	at sun.misc.IOUtils.readFully(IOUtils.java:65)
	at java.util.jar.JarFile.getBytes(JarFile.java:425)
	at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193)
	at java.util.jar.JarFile.getManifest(JarFile.java:180)
	at org.eclipse.jetty.util.MultiReleaseJarFile.<init>(MultiReleaseJarFile.java:74)
	at org.eclipse.jetty.annotations.AnnotationParser.parseJar(AnnotationParser.java:870)
	at org.eclipse.jetty.annotations.AnnotationParser.parse(AnnotationParser.java:836)
	at org.eclipse.jetty.annotations.AnnotationConfiguration$ParserTask.call(AnnotationConfiguration.java:163)
	at org.eclipse.jetty.annotations.AnnotationConfiguration$1.run(AnnotationConfiguration.java:471)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)
	at java.lang.Thread.run(Thread.java:748)
[INFO]
 Started ServerConnector@c1da09{HTTP/1.1,[http/1.1]
}{0.0.0.0:8080}
[INFO]
 Started @11046ms
[INFO]
 Started Jetty Server

But in fact, even before I run the mvn command, I get an error for some classes not found (as shown in my previous post…)

Maybe a repository I can’t find or dependency not found ?
The embedded maven is version 3.3.9/1.8.3.20170227. Im’ using Jdk 1.8.0_131

Sounds like a corrupted download: invalid LOC header (bad signature)

Try deleting the jar files from your local .m2 directory and rerunning.

-Olli

Yep !

That was the solution

Thanks

Great to hear you got it working, happy hacking!

-Olli

That didn’t work for me. Same problem

I had a similar issue. Tried to delete the files from my .m2 directory, and still received the same errors. So I renamed my entire .m2 directory, which forced maven to download everything again. That solved the problem for me.