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

Fix mvn clean install build command

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I always build Jenkins plug-ins with `mvn clean install` or `mvn clean install -DskipTests` when in a hurry.

      But at the moment I am getting some errors.

      [INFO] Rat check: Summary over all files. Unapproved: 3059, unknown: 3059, generated: 0, approved: 161 licenses.
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 49.954 s
      [INFO] Finished at: 2020-07-14T15:23:10+12:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project machine-learning: Too many files with unapproved license: 3059 See RAT report in: /home/kinow/Development/java/jenkins/machine-learning-plugin/target/rat.txt -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      

        Attachments

          Issue Links

            Activity

            Hide
            kinow Bruno P. Kinoshita added a comment -

            The `mvn clean install` command is also mentioned in the README, under the contributions documentation.

            Show
            kinow Bruno P. Kinoshita added a comment - The `mvn clean install` command is also mentioned in the README, under the contributions documentation.
            Hide
            loghijiaha Loghi Perinpanayagam added a comment - - edited

            Bruno P. Kinoshita It is caused by unapproved licenses on files. According to this  `

            [INFO] Rat check: Summary over all files. Unapproved: 3059, unknown: 3059, generated: 0, approved: 161 
            

            , there are 3059 files are not having a license header. But when I was running `mvn clean install` it says

            Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 0, approved: 48 licenses
            

             I think Rat plugin detects some other files that does not belongs to our repo.

            Show
            loghijiaha Loghi Perinpanayagam added a comment - - edited Bruno P. Kinoshita It is caused by unapproved licenses on files. According to this  ` [INFO] Rat check: Summary over all files. Unapproved: 3059, unknown: 3059, generated: 0, approved: 161 , there are 3059 files are not having a license header. But when I was running `mvn clean install` it says Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 0, approved: 48 licenses  I think Rat plugin detects some other files that does not belongs to our repo.
            Hide
            kinow Bruno P. Kinoshita added a comment -

            I also think so. It should be possible to look at the rat.txt report, confirm which files are unwanted, and then exclude in pom.xml in the rat configuration section.

            Show
            kinow Bruno P. Kinoshita added a comment - I also think so. It should be possible to look at the rat.txt report, confirm which files are unwanted, and then exclude in pom.xml in the rat configuration section.
            Hide
            loghijiaha Loghi Perinpanayagam added a comment -

            When I am running build was a success. Did you check out any git repo to test the plugin? Could you post which files/directory cause this error?

            Show
            loghijiaha Loghi Perinpanayagam added a comment - When I am running build was a success. Did you check out any git repo to test the plugin? Could you post which files/directory cause this error?
            Hide
            kinow Bruno P. Kinoshita added a comment -

            Ha! It appears to be my venv folder. If we are able to do something like:

            • ignore all
            • include src folder

            In the RAT analysis, that should prevent this problem with any virtual environment name, or if there are any extra file like *.ipynb files in the project root dir I guess?

            Show
            kinow Bruno P. Kinoshita added a comment - Ha! It appears to be my venv folder. If we are able to do something like: ignore all include src folder In the RAT analysis, that should prevent this problem with any virtual environment name, or if there are any extra file like *.ipynb files in the project root dir I guess?
            Hide
            loghijiaha Loghi Perinpanayagam added a comment -
            Show
            loghijiaha Loghi Perinpanayagam added a comment - Refer to the link for more information. https://github.com/jenkinsci/machine-learning-plugin/blob/master/CHANGELOG.md

              People

              Assignee:
              loghijiaha Loghi Perinpanayagam
              Reporter:
              kinow Bruno P. Kinoshita
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: