Why custom offline repository does not appear to get scanned on startup on Fuse

Solution Verified - Updated -

Issue

  • If a custom offline repository is created for JBoss Fuse, then it doesn't appear that Fuse is looking in the repo when JBoss Fuse is attempted to be started.

  • Following kind of messages appears :

Please wait while JBoss Fuse is loading...
Bundle listed in startup.properties configuration not found: org/test/my/test-all/4.1/test-all-4.1.jar
Could not create framework: java.lang.Exception: Aborting due to missing startup bundles
java.lang.Exception: Aborting due to missing startup bundles
        at org.apache.karaf.main.Main.processConfigurationProperties(Main.java:1198)
        at org.apache.karaf.main.Main.loadStartupProperties(Main.java:1011)
        at org.apache.karaf.main.Main.launch(Main.java:299)
        at org.apache.karaf.main.Main.main(Main.java:509)
  • The jar "test-all-4.1.jar" that it is complaining about is in the custom repository.

  • Appended the custom offline repo to the default repositories value in the pax mvn file in "etc" as following:

#
# Comma separated list of repositories scanned when resolving an artifact.
# Those repositories will be checked before iterating through the
#    below list of repositories and even before the local repository
# A repository url can be appended with zero or more of the following flags:
#    @snapshots  : the repository contains snaphots
#    @noreleases : the repository does not contain any released artifacts
#    @id=reponid : the id for the repository, just like in the settings.xml this is optional but recomendet
#
# The following property value will add the system folder as a repo.
#
org.ops4j.pax.url.mvn.defaultRepositories=file:${karaf.home}/${karaf.default.repository}@snapshots@id=karaf.${karaf.default.repository},\
        file:${karaf.home}/local-repo@snapshots@id=karaf.local-repo,file:${karaf.home}/features-repo

Environment

  • Red Hat JBoss Fuse
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content