Accessing Frontend Resources from a Parent Vaadin Project in a Multi-Module Setup

I have created 2 vaadin project 14.11.13 for version, and I’ve made a dependency between them, I need to reach out the frontend folder from parent project, how can I do that ?

If they are both Spring Boot Apps then this is not possible because a Spring Boot JAR is not a regular JAR and you cannot use it as a dependency.

You should extract the common stuff into a separate project. Check out Using a Theme in Multiple Applications | Advanced Styling Topics | Styling | Vaadin Docs

Okay I extracted every thing to a separate project, the problem now is :
vaadin is reading the frontend folder from the main project, instead of from the
standalone project.

separate-project:
@Tag(“port-go”)
@JsModule(“./src/gojs/arrange/board-type-port-go.js”) //frontend/src/…
public class BoardTypePortGojs extends NodeGojs

error in main project:
file not found, because vaadin searched the wrong frontend folder

Have you read the documentation?

yes, it’s useful and I am working on it

To ensure that the frontend folder is accessible, you must download the sources using the following XML tag: <downloadSources>true</downloadSources>. Once the sources are downloaded, you can use the same frontend path in the other project.