Closed psybases closed 4 days ago
This is most likely something that belongs to the m2e project (the Maven integration for Eclipse) and should therefore reported here: https://github.com/eclipse-m2e/m2e-core
ok thanks @martinlippert, indeed it is already addressed in this issue: https://github.com/eclipse-m2e/m2e-core/issues/1824
Describe the bug Run configuration for JUnit tests, copies automatically the configuration from pom.xml plugin "maven-surefire-plugin" to "VM arguments". But if the configuration contains "@{argLine}", (as described at https://maven.apache.org/surefire-archives/surefire-3.2.2/maven-surefire-plugin/test-mojo.html#argline) the Junit execution fails with the following message Error: could not open `{argLine}'
To Reproduce Have a pom.xml with a maven-surefire-plugin configuration containing @{argLine} as shown in the Sample. Right click on a JUnit tests file and click "Run As -> JUnit Test". It will add automatically the following "VM arguments" to the JUnit "Run Configurations" for the given test.
-ea @{argLine} -javaagent:.......
Sample