-
Bug
-
Resolution: Fixed
-
Minor
-
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}" } } } } }
We have seen problems with the maven assembly plugin that use a transient mom file that caused a file not found exception when the Jenkins pipeline plugin processed the results.
The flatten plugin uses what seems to be a transient pom file. We have to check, we probably desire to collect/archive the source pom file for traceability.
The problem you may face would be a failure to archive the pom file.