title: Passing MAVEN_OPTS in Pipeline
body: <p>I'm trying to convert a free-style job to pipeline code. following are the MAVEN_OPTS got declared along with maven goals under "Invoke Artifactory Maven 3" in job. </p>
  
  <p>Maven Goals: clean install</p>
  
  <p>MAVEN_OPTS: -Xmx2048m</p>
  
  <p>-Xms512m</p>
  
  <p>-XX:PermSize=256m</p>
  
  <p>-XX:MaxPermSize=1024m</p>
  
  <p>-Denv.build-timestamp=${BUILD_TIMESTAMP}</p>
  
  <p>-Denv.build-job=${JOB_NAME}</p>
  
  <p>-Denv.build-number=${BUILD_NUMBER}</p>
  
  <p>-Denv.build-url=${BUILD_URL}</p>
  
  <p>-Denv.git-commit=${GIT_COMMIT}</p>
  
  <p>-Denv.git-branch=${GIT_BRANCH}</p>
  
  <p><strong>My trial in pipeline:</strong></p>
  
  <pre><code>node('node1') {
  
      def javaHome = tool name: 'JDK 1.8', type: 'hudson.model.JDK'
      def mvnHome = tool name: 'M3', type: 'hudson.tasks.Maven$MavenInstallation'
      sh "$mvnHome/bin/mvn -f pom.xml clean install -U -Dmaven.repo.local=$WORKSPACE/.m2/repository -Xmx2048m -Xms512m -XX:PermSize=256m -XX:MaxPermSize=1024m -Dtimestamp=${BUILD_TIMESTAMP} ..."
  
      }
  
  Error:
  Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local
  </code></pre>
  
  <p>I'm sure that I'm passing MAVEN_OPTS in a wrong way. Can someone guide me the right systax to declare MAVEN_OPTS in Pipeline</p>