You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running mvn clean install inside the project directory, Quinoa is able to find the angular.json file without problem.
However, if I try to run mvn clean install -f path/to/project/pom.xml, Quinoa fails during the build phase with the following error:
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:3.17.3:build (default) on project example-project: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkiverse.quinoa.deployment.QuinoaProcessor#processBuild threw an exception: java.lang.RuntimeException: Quinoa failed to read the angular.json file. %s
[ERROR] at io.quarkiverse.quinoa.deployment.framework.override.AngularFramework$1.readAngularJson(AngularFramework.java:59)
[ERROR] at io.quarkiverse.quinoa.deployment.framework.override.AngularFramework$1.lambda$buildDir$2(AngularFramework.java:33)
[ERROR] at java.base/java.util.Optional.orElseGet(Optional.java:364)
[ERROR] at io.quarkiverse.quinoa.deployment.framework.override.AngularFramework$1.buildDir(AngularFramework.java:32)
[ERROR] at io.quarkiverse.quinoa.deployment.QuinoaProcessor.processBuild(QuinoaProcessor.java:184)
[ERROR] at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
[ERROR] at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
[ERROR] at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:1583)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:499)
[ERROR] Caused by: java.nio.file.NoSuchFileException: .\angular.json
[ERROR] at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
[ERROR] at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
[ERROR] at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
[ERROR] at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:234)
[ERROR] at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
[ERROR] at java.base/java.nio.file.Files.newByteChannel(Files.java:431)
[ERROR] at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
[ERROR] at java.base/java.nio.file.Files.newInputStream(Files.java:159)
[ERROR] at io.quarkiverse.quinoa.deployment.framework.override.AngularFramework$1.readAngularJson(AngularFramework.java:56)
Our Angular application is located in the same directory as the maven module, hence the .\angular.json path. Our application.properties contains the following line:
quarkus.quinoa.ui-dir=./
After quickly looking at the code, I would think something needs to be adjusted in the AngularFramework.java file.
Quinoa version
2.5.0
Quarkus version
3.17.3
Build / Runtime
Angular
Package Manager
NPM
Steps to reproduce the behavior
Set the quarkus.quinoa.ui-dir as described above.
Run mvn clean install -f path/to/project/pom.xml
Expected behavior
The angular.json file should be found regardless of which directory is the working directory.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running
mvn clean install
inside the project directory, Quinoa is able to find theangular.json
file without problem.However, if I try to run
mvn clean install -f path/to/project/pom.xml
, Quinoa fails during the build phase with the following error:Our Angular application is located in the same directory as the maven module, hence the
.\angular.json
path. Our application.properties contains the following line:After quickly looking at the code, I would think something needs to be adjusted in the AngularFramework.java file.
Quinoa version
2.5.0
Quarkus version
3.17.3
Build / Runtime
Angular
Package Manager
NPM
Steps to reproduce the behavior
quarkus.quinoa.ui-dir
as described above.mvn clean install -f path/to/project/pom.xml
Expected behavior
The
angular.json
file should be found regardless of which directory is the working directory.The text was updated successfully, but these errors were encountered: