[JIRA] Created: (HUDSON-5651) Tests not executed when MAVEN_OPTS set

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-5651) Tests not executed when MAVEN_OPTS set

Hudson issues mailing list
Tests not executed when MAVEN_OPTS set
---------------------------------------

                 Key: HUDSON-5651
                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
             Project: Hudson
          Issue Type: Bug
          Components: maven2
            Reporter: jeromevdl
            Priority: Minor


Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
{code}
-XX:MaxPermSize=512m
-Xms128m
-Xmx512m
{code}

With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
{code}
<plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.4.1</version>
          <configuration>
            <argLine>-XX:MaxPermSize=512m
-Xms128m
-Xmx512m</argLine>
[...]
</plugin>
{code}

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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Assigned: (HUDSON-5651) Tests not executed when MAVEN_OPTS set

Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

abayer reassigned HUDSON-5651:
------------------------------

    Assignee: abayer

> Tests not executed when MAVEN_OPTS set
> ---------------------------------------
>
>                 Key: HUDSON-5651
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>            Reporter: jeromevdl
>            Assignee: abayer
>            Priority: Minor
>
> Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
> {code}
> -XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m
> {code}
> With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
> {code}
> <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>2.4.1</version>
>           <configuration>
>             <argLine>-XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m</argLine>
> [...]
> </plugin>
> {code}
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Updated: (HUDSON-5651) Tests not executed when MAVEN_OPTS contains newlines

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

abayer updated HUDSON-5651:
---------------------------

    Summary: Tests not executed when MAVEN_OPTS contains newlines  (was: Tests not executed when MAVEN_OPTS set )

Clarifying summary.

> Tests not executed when MAVEN_OPTS contains newlines
> ----------------------------------------------------
>
>                 Key: HUDSON-5651
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>            Reporter: jeromevdl
>            Assignee: abayer
>            Priority: Minor
>
> Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
> {code}
> -XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m
> {code}
> With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
> {code}
> <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>2.4.1</version>
>           <configuration>
>             <argLine>-XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m</argLine>
> [...]
> </plugin>
> {code}
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5651) Tests not executed when MAVEN_OPTS contains newlines

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136021#action_136021 ]

jeromevdl commented on HUDSON-5651:
-----------------------------------

I don't know what more can i tell... The field MAVEN_OPTS (in Build / Advanced) can be on one line (simple input) and can be extended on several lines (textarea).

When writing options separated by new lines in the textarea, tests are not executed:
{code}-XX:MaxPermSize=512m
-Xms128m
-Xmx512m{code}
(probably because of the argLine parameter of surefire in the pom)

When writing on one line in input text, tests are executed.
{code}-XX:MaxPermSize=512m -Xms128m -Xmx512m{code}

> Tests not executed when MAVEN_OPTS contains newlines
> ----------------------------------------------------
>
>                 Key: HUDSON-5651
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>            Reporter: jeromevdl
>            Assignee: abayer
>            Priority: Minor
>
> Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
> {code}
> -XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m
> {code}
> With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
> {code}
> <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>2.4.1</version>
>           <configuration>
>             <argLine>-XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m</argLine>
> [...]
> </plugin>
> {code}
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5651) Tests not executed when MAVEN_OPTS contains newlines

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136022#action_136022 ]

abayer commented on HUDSON-5651:
--------------------------------

Ok, it looks like this is even more of a special case than I initially thought - it's that the MAVEN_OPTS environment variable containing newlines can cause problems if you then try to reuse that environment variable somewhere that expects it to just be one line. I think I can fix this pretty easily, but it is a bit weird.

> Tests not executed when MAVEN_OPTS contains newlines
> ----------------------------------------------------
>
>                 Key: HUDSON-5651
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>            Reporter: jeromevdl
>            Assignee: abayer
>            Priority: Minor
>
> Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
> {code}
> -XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m
> {code}
> With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
> {code}
> <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>2.4.1</version>
>           <configuration>
>             <argLine>-XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m</argLine>
> [...]
> </plugin>
> {code}
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5651) Tests not executed when MAVEN_OPTS contains newlines

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=136025#action_136025 ]

scm_issue_link commented on HUDSON-5651:
----------------------------------------

Code changed in hudson
User: : abayer
Path:
 trunk/hudson/main/core/src/main/java/hudson/tasks/Maven.java
 trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java
 trunk/hudson/main/test/src/test/java/hudson/maven/MavenOptsTest.java
 trunk/hudson/main/test/src/test/resources/hudson/maven/maven-surefire-unstable.zip
 trunk/www/changelog.html
http://hudson-ci.org/commit/27559
Log:
[FIXED HUDSON-5651] Removing excess whitespace from MAVEN_OPTS


> Tests not executed when MAVEN_OPTS contains newlines
> ----------------------------------------------------
>
>                 Key: HUDSON-5651
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>            Reporter: jeromevdl
>            Assignee: abayer
>            Priority: Minor
>
> Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
> {code}
> -XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m
> {code}
> With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
> {code}
> <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>2.4.1</version>
>           <configuration>
>             <argLine>-XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m</argLine>
> [...]
> </plugin>
> {code}
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (HUDSON-5651) Tests not executed when MAVEN_OPTS contains newlines

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

scm_issue_link resolved HUDSON-5651.
------------------------------------

    Resolution: Fixed

> Tests not executed when MAVEN_OPTS contains newlines
> ----------------------------------------------------
>
>                 Key: HUDSON-5651
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5651
>             Project: Hudson
>          Issue Type: Bug
>          Components: maven2
>            Reporter: jeromevdl
>            Assignee: abayer
>            Priority: Minor
>
> Tests are not executed (nether coverage) when configuring a maven 2 build and specifying MAVEN_OPTS on multiple lines like this :
> {code}
> -XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m
> {code}
> With an mvn help:effective-pom, I can see the following, which probably disturb maven (with no complain) :
> {code}
> <plugin>
>           <artifactId>maven-surefire-plugin</artifactId>
>           <version>2.4.1</version>
>           <configuration>
>             <argLine>-XX:MaxPermSize=512m
> -Xms128m
> -Xmx512m</argLine>
> [...]
> </plugin>
> {code}
> 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.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]