13 Replies Latest reply on Jun 2, 2014 9:31 PM by Freeman(Yue) Fang

    Unable to include resources from src/main/resources of dependencies

    rahul vashishth Novice

      I have a fuse-esb bundle project that have other dependencies added in pom file.

      I need to use the resources file from the added dependencies, for that i tried by using

      include-resource feature of osgi plugin but no luck yet,

      is there any thing i am missing

       

      I have a Project A

      ProjectA (packaging type is jar)

      src/main/java

                      x.y.z.SomeClass.java

      src/main/resource

                      x.y.z.config.SomeConfigFile.xml

       

      pom.xml contains

          <Export-Package>

              x.y.z.*,

              x.y.z.config.*,

              *

          </Export-Package>

       

       

      Another ESB project

       

      ProjectB (packaging type is bundle)

      src/main/java

                      a.b.c.AnotherClass.java

      src/main/resource

                      a.b.c.config.AnotherConfigFile.xml

       

      pom.xml contains

          <Import-Package>

              x.y.z.*,

              x.y.z.config.*,

              *

          </Import-Package>

        <Include-Resource>

          {maven-resources},{maven-dependencies}

          </Include-Resource>

       

      Here my requirement is to use SomeConfigFile.xml of ProjectA into AnotherConfigFile.xml of projectB but i always get FileNotFoundException for the above scenario. Please help me use the src/main/resource classpath files into another osgi project. How i can achieve the above defined scenario.