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

Flattened pom throws errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins 2.54
      Pipeline Maven Plugin 2.0.2

      I have a maven project which uses the Flatten maven plugin (http://www.mojohaus.org/flatten-maven-plugin/)

      When I build the project using Jenkins Pipeline, I see the following warnings during the build:

      [jenkins-maven-event-spy] WARNING: unexpected Maven project file name '.flattened-pom.xml', problems may occur
      

      What problems may occur?

      My build script looks like this:

      pipeline {
                      agent {
                          label agentLabel
                      }
      
                      stages {
                          stage('Build') {
                              steps {
          withMaven(jdk: 'JDK8', maven: 'MVN3',
                  mavenSettingsConfig: 'org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig1422003195277') {
                                  bat "mvn -B ${args}"
                              }
                          }
                      }
                  }
              }
      

            cleclerc Cyrille Le Clerc
            bengineer Ben Middleton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: