vaadin / hilla-multi-module

Hilla Multi Module example application
The Unlicense
1 stars 1 forks source link

Failed to startup this project in intellij idea #3

Open hu-chia opened 1 year ago

hu-chia commented 1 year ago
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /Users/xxxx/.m2/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.8.1
Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: /Users/xxxx/.sdkman/candidates/java/17.0.6-tem
Default locale: en_CN, platform encoding: UTF-8
OS name: "mac os x", version: "13.4.1", arch: "aarch64", family: "mac"
[ERROR] Failed to execute goal on project application: Could not resolve dependencies for project com.example.application:application:jar:1.0-SNAPSHOT: Could not find artifact com.example.application:library:jar:1.0-SNAPSHOT in vaadin-prereleases (https://maven.vaadin.com/vaadin-prereleases/) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
hu-chia commented 1 year ago

Well, I must execute mvn clean install first

hu-chia commented 1 year ago

for same reason, I cannot build hilla multimodule project in a clean clone unless run mvn install before. but it's important in CICD pipeline. this is all the related error output:

> mvn -Pproduction package
...
[INFO] --- hilla-maven-plugin:2.0.5:build-frontend (default) @ application ---
[INFO] Reflections took 194 ms to scan 111 urls, producing 6504 keys and 37009 values
[INFO] Scanning classes to find frontend configurations and dependencies...
[INFO] Visited 673 classes. Took 300 ms.
[INFO] Visited 9 classes. Took 10 ms.
[INFO] Unable to determine version information. No vaadin-core-versions.json found
[INFO] Running `npm install` to resolve and optionally download frontend dependencies. This may take a moment, please stand by...
[INFO] using '/opt/homebrew/bin/npm --no-update-notifier --no-audit --scripts-prepend-node-path=true --ignore-scripts install' for frontend package installation
[INFO] Frontend dependencies resolved successfully.
[INFO] Hilla engine configuration not found: configure using build system plugin
[INFO] [stdout] Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
[INFO] [stdout] Maven home: /Users/xxxx/wrapper/dists/apache-maven-3.8.1-bin/2l5mhf2pq2clrde7f7qp1rdt5m/apache-maven-3.8.1
[INFO] [stdout] Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: /Users/xxxx/.sdkman/candidates/java/17.0.6-tem
[INFO] [stdout] Default locale: en_CN, platform encoding: UTF-8
[INFO] [stdout] OS name: "mac os x", version: "13.4.1", arch: "aarch64", family: "mac"
[INFO] [stdout] [ERROR] Failed to execute goal on project application: Could not resolve dependencies for project com.example.application:application:jar:1.0-SNAPSHOT: Could not find artifact com.example.application:library:jar:1.0-SNAPSHOT in vaadin-prereleases (https://maven.vaadin.com/vaadin-prereleases/) -> [Help 1]
[INFO] [stdout] [ERROR] 
[INFO] [stdout] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [stdout] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [stdout] [ERROR] 
[INFO] [stdout] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [stdout] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
...