Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flow-maven-plugin doesn't handle context schema correctly #4279

Closed
denis-anisimov opened this issue Jun 13, 2018 · 0 comments
Closed

flow-maven-plugin doesn't handle context schema correctly #4279

denis-anisimov opened this issue Jun 13, 2018 · 0 comments
Assignees
Labels

Comments

@denis-anisimov
Copy link
Contributor

I'm trying to enable production mode for flow-test-root-context module.
There are a number of issue with that but if flow-test-resources dependency is removed then I get the error:

Execution default of goal com.vaadin:flow-maven-plugin:1.0-SNAPSHOT:package-for-production failed: The fragment file path 'frontend/com/vaadin/flow/uitest/ui/frontend/consoleLoggingProxy.js' was resolved to '/Users/denis/workspace/flow/flow-tests/test-root-context/target/frontend/frontend/com/vaadin/flow/uitest/ui/frontend/consoleLoggingProxy.js', which either does not exist or not a file.

The error is caused by the class BrowserLoggingView which has this declaration:

@JavaScript(value = "context://frontend/com/vaadin/flow/uitest/ui/frontend/consoleLoggingProxy.js", loadMode = LoadMode.INLINE)
public class BrowserLoggingView extends Div {

The class uses context schema instead of frontend but the path starts with frontend/ which should be resolved to the the same path as frontend:// schema. But the maven plugin uses frontend prefix to find the file so context:// schema behaves in the same way as frontend:// schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants