[jetty-dev] [jira] (JETTY-1507) System properties are not getting cleared out between runs within an aggregator

"Martin Todorov (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.jetty.general
Message-ID <1544554051.76799.1336385343038.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
    [ https://jira.codehaus.org/browse/JETTY-1507?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=298054#comment-298054 ] 

Martin Todorov commented on JETTY-1507:
---------------------------------------

Greg,

This is an issue with the Jetty plugin, not with the properties defined in the pom. It's not a Maven problem per se. It's a problem with the plugin's handling of system properties.
I removed all the systemProperties defined in the Jetty plugin. I then knocked up a simple Maven plugin, which sets system properties. With my plugin, the system properties are cleared between runs of the Jetty plugin in a multi-module aggregator which has more that one module running Jetty tests. (You can find my plugin here: https://github.com/carlspring/system-properties-maven-plugin ).

Also, the plugin doesn't set system properties which have already been set. This is kind of a limitation.
I worked around this problem by not using the <systemProperties> setting in the Jetty plugin and defining these properties in my plugin, but that should not be the way things work. In my opinion, the Jetty plugin should be able to override system properties and to make sure <systemProperties> are only defined for the scope of the execution.
                
> System properties are not getting cleared out between runs within an aggregator
> -------------------------------------------------------------------------------
>
>                 Key: JETTY-1507
>                 URL: https://jira.codehaus.org/browse/JETTY-1507
>             Project: Jetty
>          Issue Type: Bug
>    Affects Versions: 7.6.1
>         Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200)
> Maven home: /java/apache/maven-3.0.3
> Java version: 1.6.0_19, vendor: Sun Microsystems Inc.
> Java home: /java/jdk1.6.0_19/jre
> Default locale: en_US, platform encoding: ISO-8859-1
> OS name: "linux", version: "2.6.36.2", arch: "i386", family: "unix"
>            Reporter: Martin Todorov
>            Assignee: Jan Bartel
>
> If you have an aggregator with several modules each of which launches Jetty before the tests and if you've defined <systemProperties><systemProperty...></systemProperties, the next module to start up Jetty will end up using the values from defined for the first module, even if you've defined different values for this module.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.