The error "Rollup failed to resolve import" when building a Quarkus application with the Quinoa extension usually occurs due to issues related to the configuration of your project or the dependencies. Here are some steps you can follow to troubleshoot and resolve this issue:
- Check your dependencies: Make sure that all the necessary dependencies are included in your
pom.xml or build.gradle file. If you are using Maven, add the Quinoa extension dependency like this:
<build>
<plugins>
<plugin>
<groupId>com.github.quarkus-community.quinoa</groupId>
<artifactId>quinoa-maven-plugin</artifactId>
<version>${quinoa.version}</version>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
For Gradle, add the dependency in the build.gradle.kts file:
plugins {
id("com.github.quarkus-community.quinoa") version "0.19.2"
}
quinoa {
bundle {
// Configure bundle properties here
}
}
- Check your project configuration: Make sure your Quarkus project is correctly configured to use the Quinoa extension. If you're using Maven, add the Quarkus plugin and Quinoa extension to your
pom.xml:
<build>
<plugins>
<plugin>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.github.quarkus-community.quinoa</groupId>
<artifactId>quinoa-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
For Gradle, add the Quarkus and Quinoa plugins in your build.gradle.kts:
plugins {
id("io.quarkus") version "2.13.6.final"
id("com.github.quarkus-community.quinoa") version "0.19.2"
}
- Run the build with Quinoa: Try running your build with the
--extra flag to include Quinoa in the build process. For Maven, use:
mvn clean package -Dquinoa.enable=true
For Gradle, use:
./gradlew clean build --extra-properties="quinoa.enable=true"
- Update your project to the latest Quarkus and Quinoa versions: Sometimes, using older versions of Quarkus or Quinoa can cause compatibility issues. Try updating to the latest versions and then rebuild your project.
- Check for conflicts with other extensions: If you're using other Quarkus extensions, there might be conflicts with Quinoa. Try disabling other extensions temporarily and see if the error persists.
If none of these steps resolve the issue, you may want to provide more details about your project setup, the full error message, and the steps leading up to the error. This will help the Quarkus community better understand and resolve your issue. You can reach out to them through their GitHub repository (https://github.com/quarkusio/quarkus) or their community forums.