Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52704

After update of parent pom, build failure: jenkins/util/SystemProperties must not be used

    Details

    • Similar Issues:

      Description

      Summary
      blueocean-autofavorite got missed when we updated the parent pom for Blue Ocean. It's still at 2.35, which is causing some PCT failures.

      A simple update causes of pom.xml, as I've done here, causes a failure when trying to mvn clean install. That build failure is:

      [INFO] --- access-modifier-checker:1.15:enforce (default-enforce) @ blueocean-autofavorite ---
      [ERROR] io/jenkins/blueocean/autofavorite/FavoritingScmListener:173 jenkins/util/SystemProperties must not be used
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.645 s
      [INFO] Finished at: 2018-07-23T10:09:12-04:00
      [INFO] Final Memory: 174M/644M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.kohsuke:access-modifier-checker:1.15:enforce (default-enforce) on project blueocean-autofavorite: Access modifier checks failed. See the details above -> [Help 1]
      

        Attachments

          Activity

          Hide
          wuhaitong HaiTong Wu added a comment - - edited

          I've got the same problem. 

          In my modification to mesos plugin's code, I also want to get system property like "SystemProperties.getInteger(...)". But when I update the meoso plugin into newest version, it can not build. The message is the same:

          [INFO] — access-modifier-checker:1.15:enforce (default-enforce) @ mesos —
          [ERROR] org/jenkinsci/plugins/mesos/MesosRetentionStrategy:36 jenkins/util/SystemProperties must not be used
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE

          Karl Shultz, have you solved the problem?

          Show
          wuhaitong HaiTong Wu added a comment - - edited I've got the same problem.  In my modification to mesos plugin's code, I also want to get system property like "SystemProperties.getInteger(...)". But when I update the meoso plugin into newest version, it can not build. The message is the same: [INFO] — access-modifier-checker:1.15:enforce (default-enforce) @ mesos — [ERROR] org/jenkinsci/plugins/mesos/MesosRetentionStrategy:36 jenkins/util/SystemProperties must not be used [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE Karl Shultz, have you solved the problem?
          Hide
          kshultz Karl Shultz added a comment -

          HaiTong Wu - I haven't solved the problem, because I haven't been actively working on it. I think this particular plugin needs to go up for adoption, because I suspect James Dumay has moved on to other things.

          I'd like to make sure I understand you correctly. It sounds like you're trying to do the exact same thing with the mesos plugin - which is, update its parent POM. And doing so causes the plugin to not build anymore. Is that correct?

          This seems like surely it's a problem which has been found, and solved, by someone else. I will ask around.

          Show
          kshultz Karl Shultz added a comment - HaiTong Wu - I haven't solved the problem, because I haven't been actively working on it. I think this particular plugin needs to go up for adoption, because I suspect James Dumay has moved on to other things. I'd like to make sure I understand you correctly. It sounds like you're trying to do the exact same thing with the mesos plugin - which is, update its parent POM. And doing so causes the plugin to not build anymore. Is that correct? This seems like surely it's a problem which has been found, and solved, by someone else. I will ask around.
          Hide
          wuhaitong HaiTong Wu added a comment -

          Because the velocity of allocation and releasing nodes is too slow, I modify the code of mesos plugin (v0.13.1). It was built OK. Now I want to update mesos plugin version to 0.17, so I merge my modification to source code of v0,17. But it can't be built. I just used the original pom file in mesos plugin source code. Why it built ok in v0.13.2, but no ok in v0.17?

          Show
          wuhaitong HaiTong Wu added a comment - Because the velocity of allocation and releasing nodes is too slow, I modify the code of mesos plugin (v0.13.1). It was built OK. Now I want to update mesos plugin version to 0.17, so I merge my modification to source code of v0,17. But it can't be built. I just used the original pom file in mesos plugin source code. Why it built ok in v0.13.2, but no ok in v0.17?
          Hide
          manus manus added a comment -

          This can probably be closed, yes?

          Show
          manus manus added a comment - This can probably be closed, yes?

            People

            • Assignee:
              kshultz Karl Shultz
              Reporter:
              kshultz Karl Shultz
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: