[
https://issues.apache.org/jira/browse/TOMEE-2736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973209#comment-16973209
]
Richard Zowalla commented on TOMEE-2736:
----------------------------------------
The problem only occurs, if integration tests are started using the
*tomee-maven-plugin* inside the same JVM (e.g.. during a Maven build). In this
case, system properties are cached (static) inside *RemoteServer* (in
*openejb-core*). This change was introduced in
6d5e5a39006492fcd6d1ee5b80cbe460168dba86.
To prevent this issue, we can use the override mechanism introduced in the same
commit in `AbstractTomEEMojo`. By passing the correct properties to the
`RemoteServer`, we can then will override the (falsely) cached properties. I
will provide a PR for discussion soon.
> TomEE maven plugin uses incorrect "openejb.home" values when run multiple
> times via build tooling
> -------------------------------------------------------------------------------------------------
>
> Key: TOMEE-2736
> URL: https://issues.apache.org/jira/browse/TOMEE-2736
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Maven Plugin
> Affects Versions: 8.0.0-Final
> Environment: MacOS 10.x, Ubuntu 18.4 LTS, Maven 3.6.1, JDK 11.0.4
> Reporter: Martin Wiesner
> Assignee: Richard Zowalla
> Priority: Major
> Fix For: 8.0.1
>
>
> With commit
> [6d5e5a39006492fcd6d1ee5b80cbe460168dba86|https://github.com/apache/tomee/commit/6d5e5a39006492fcd6d1ee5b80cbe460168dba86],
> a change was introduced in _openejb-core_ module which affects the way the
> *tomee-maven-plugin* could be used for integration-tests with a multi-module
> parent project in Maven (or other build tools).
> [~rzo1] and me investigated the problem already. We'd like to propose a
> change for the tomee-maven-plugin so that 'openejb.home' will be handed over
> correctly again, and builds which make use of multiple container startups
> will work correctly as these did with versions <= 8.0.0-M3.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)