Trouble with Quickstarts

Latest response

I downloaded and installed fuse on Karaf and codeReady studio and configured the Fuse on Karaf runtime as well as the fuse quickstarts and imported them into codeready studio.

All the quickstarts are showing problems.
mvn clean install in any of the quickstart directories where their pom is located gives this error.

[ERROR] Non-resolvable import POM: Could not find artifact org.jboss.redhat-fuse:fuse-karaf-bom:pom:7.6.0.fuse-760027-redhat-00001 in central (https://repo.maven.apache.org/maven2) @ line 55, column 25

Maven is working fine with dozens of lines like these...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/3.5.1/maven-bundle-plugin-3.5.1.pom
Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/felix/maven-bundle-plugin/3.5.1/maven-bundle-plugin-3.5.1.pom (9.9 kB at 4.0 kB/s)

So the real question is how do I get these fuse on karaf quickstarts working?

Attachments

Responses

I reimported not as a fuse integration project but as a maven project and fixed some duplicate executions in the pom but now getting the following...For artifact {javax.servlet:javax.servlet-api:null:jar}: The version cannot be empty. (org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources:default-resources:process-resources)

<version.plugin.maven-resources-plugin>3.0.2</version.plugin.maven-resources-plugin>

org.apache.maven.plugins maven-resources-plugin ${version.plugin.maven-resources-plugin}

I resolved this myself with a little help from google I found the attached maven settings file for RedHat repositories. That solved the build problem.

https://access.redhat.com/documentation/en-us/jboss_enterprise_application_platform/6.2/html/getting_started_guide/configure_the_maven_settings_for_use_with_command_line

Glad to hear that you got the trouble sorted out! Just to provide a bit of context for the error you encountered. When you use the quickstarts from CodeReady studio, the assumption is that you will also use CodeReady studio to build the quickstarts. If you installed the Red Hat Fuse Tooling package in CodeReady studio, this should preconfigure the location of the Red Hat Maven registry for you (CodeReady has a built-in Maven configuration that is separate from the command line Maven tool). So, it should be possible to build a Fuse on Karaf quickstart using the Build action in CodeReady studio, but the equivalent 'mvn install' command at the command line will fail, because the command-line Maven is not configured to search the Red Hat Maven registry.

Instructions for configuring command-line Maven are also provided in Chapter 4 of the Getting Started guide: https://access.redhat.com/documentation/en-us/red_hat_fuse/7.6/html-single/getting_started/index#set-up-maven-locally