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

Tests not executed when MAVEN_OPTS contains newlines

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • maven-plugin
    • None

      Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :

      -XX:MaxPermSize=512m
      -Xms128m
      -Xmx512m
      

      With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :

      <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                  <argLine>-XX:MaxPermSize=512m
      -Xms128m
      -Xmx512m</argLine>
      [...]
      </plugin>
      

      If I put all options on the same line, tests are well executed. It should be good to remove new line when passing to Maven.

          [JENKINS-5651] Tests not executed when MAVEN_OPTS contains newlines

          jeromevdl created issue -
          Andrew Bayer made changes -
          Assignee New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Summary Original: Tests not executed when MAVEN_OPTS set New: Tests not executed when MAVEN_OPTS contains newlines
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 135743 ] New: JNJira + In-Review [ 203654 ]

            abayer Andrew Bayer
            jeromevdl jeromevdl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: