Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-962

An inaccurate warning appear while building kjar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.4.0.GA
    • 7.3.0.GA
    • BRE
    • CR1
    • ?
    • Hide

      run 'mvn clean install' with attached reproducer.

      Show
      run 'mvn clean install' with attached reproducer.
    • 2019 Week 20-22

    Description

      When bulding kjar, warning something like the following appear.

      [WARNING] File 'src/main/resources//work/buildKjar/src/main/resources/com/sample/rules2' is in folder '.work.buildKjar.src.main.resources.com.sample.rules2' but declares package 'com.sample.rules2'. It is advised to have a correspondance between package and folder names.
      [WARNING] File 'src/main/resources//work/buildKjar/src/main/resources/com/sample/rules' is in folder '.work.buildKjar.src.main.resources.com.sample.rules' but declares package 'com.sample.rules'. It is advised to have a correspondance between package and folder names.
      [WARNING] File 'work/buildKjar/src/main/resources/com/sample/rules2' is in folder 'work.buildKjar.src.main.resources.com.sample.rules2' but declares package 'com.sample.rules2'. It is advised to have a correspondance between package and folder names.
      [WARNING] File 'work/buildKjar/src/main/resources/com/sample/rules' is in folder 'work.buildKjar.src.main.resources.com.sample.rules' but declares package 'com.sample.rules'. It is advised to have a correspondance between package and folder names.
      

      But drl are put under appropriate path which matches declared package.

      src/main/resources/
      ├── com
      │   └── sample
      │       ├── rules
      │       │   └── Sample.drl
      │       └── rules2
      │           └── Sample2.drl
      

      This warning should not appear for this example.

      In addition, path of File which is shown in this warning message looks wired.
      e.g.

       File 'src/main/resources//work/buildKjarTest2/src/main/resources/com/sample/rules2'
      

      i.e. prefix ('src/main/resources/') is added to absolute path.
      Therefore, it's hard to understand what is exactly wrong and warned.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rhn-support-hmiura Hiroko Miura
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: