Hi. As you suggested, I ended up creating a separate Maven profile to my
IDE. The first option wasn't good for me because my IDE needs the explicit
argLine configuration for the surefire plugin.

What I couldn't figure out is why surefire successfully gets my custom
property (coverageAgent) if it is not declared under the properties tag. I
this scenario, the JaCoCo prepare-agent goal defines the property and
surefire "sees" it.

Anyway, thanks for the help.

On Mon, Feb 5, 2018 at 4:53 PM Evgeny Mandrikov <[email protected]> wrote:

>
>
> On Sunday, February 4, 2018 at 12:19:47 AM UTC+1, [email protected]
> wrote:
>>
>> Thanks for your time and your answer.
>>
>> Happens that IntelliJ - as far as current version, 2017.3.4 - doesn't
>> support late property evaluation.
>>
>> They don't even have a plan to fix this (
>> https://youtrack.jetbrains.com/issue/IDEA-143187).
>>
>> I'm trying to find some way around this.
>>
>>
>
> You can use another way that is also described on page at
> http://www.jacoco.org/jacoco/trunk/doc/prepare-agent-mojo.html :
>
>
> Another way is to define "argLine" as a Maven property rather than as part
> of the configuration of maven-surefire-plugin:
>
>   <properties>
>     <argLine>-your -extra -arguments</argLine>
>   </properties>
>   ...
>
>   <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-surefire-plugin</artifactId>
>
>     <configuration>
>       <!-- no argLine here -->
>     </configuration>
>   </plugin>
>
>
>
> Or you can move both jacoco-maven-plugin and maven-surefire-plugin with
> late property evaluation into a profile that won't be active for IDE.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jacoco/rS0zJhiKr24/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/7a4a7d5c-718d-46f4-933a-d42657e5d528%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/7a4a7d5c-718d-46f4-933a-d42657e5d528%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
[]s
Renan

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAAt%3D5a6oT31Exr%2B12TQtrjsqGPka3%3D3rLuTaCvL%3D0qe6m375kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to