Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5694

maven-scr-plugin use service name property as filename.xml

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SCR Tooling
    • Labels:

      Description

      Hi,

      the current maven-scr-plugin uses the fully qualified class name as a name for the xml file that will contain the generated service description.

      Unfortunately the Eclipse IDE uses the service name as the name for the xml file, i.e. for

      package org.mycompany;
      
      @Component(name = "org.topic.myservice")
      public class MyClassName {
      

      it would create "org.topic.myservice.xml" inside the OSGI-INF directory.

      At the moment your maven-scr-plugin would create "org.mycompany.MyClassName.xml".

      if you use both, maven and the Eclipse IDE on the same workspace this will result in duplicate service descriptions.

      Would it be possible for you to implement a new option that allows for using the service name (if set) as a name for the generated xml file?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              triller-telekom Stefan Triller
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: