[ 
https://issues.apache.org/jira/browse/FLINK-19900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dawid Wysakowicz updated FLINK-19900:
-------------------------------------
    Description: 
Log4j uses {{log4j.configurationFile}} system property for passing a 
configuration file. In our surefire configuration we use 
{{log4j.configuration}} property instead which has no effect.

{code}
<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.1</version>
        <configuration>
         ....
                <systemPropertyVariables>
                ....
                        
<log4j.configuration>${log4j.configuration}</log4j.configuration>
                </systemPropertyVariables>
                ....
         </configuration>
{code}

  was:
Log4j uses {{log4j.configurationFile}} system property for passing a 
configuration file. In our surefire configuration we use 
{{log4j.configuration}} property instead which has no effect.

{code}
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <version>2.22.1</version>
                                <configuration>
                                        
<forkCount>${flink.forkCount}</forkCount>
                                        
<reuseForks>${flink.reuseForks}</reuseForks>
                                        <trimStackTrace>false</trimStackTrace>
                                        <systemPropertyVariables>
                                                
<forkNumber>0${surefire.forkNumber}</forkNumber>
                                                
<log4j.configurationFile>${log4j.configuration}</log4j.configurationFile>
                                                
<hadoop.version>${hadoop.version}</hadoop.version>
                                                
<execution.checkpointing.unaligned>true</execution.checkpointing.unaligned>
                                                
<project.basedir>${project.basedir}</project.basedir>
                                        </systemPropertyVariables>
                                        <argLine>-Xms256m -Xmx2048m 
-Dmvn.forkNumber=${surefire.forkNumber} -XX:+UseG1GC</argLine>
                                </configuration>
{code}


> Wrong property name for surefire log4j configuration
> ----------------------------------------------------
>
>                 Key: FLINK-19900
>                 URL: https://issues.apache.org/jira/browse/FLINK-19900
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System
>            Reporter: Dawid Wysakowicz
>            Assignee: Dawid Wysakowicz
>            Priority: Major
>             Fix For: 1.12.0
>
>
> Log4j uses {{log4j.configurationFile}} system property for passing a 
> configuration file. In our surefire configuration we use 
> {{log4j.configuration}} property instead which has no effect.
> {code}
> <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-surefire-plugin</artifactId>
>       <version>2.22.1</version>
>       <configuration>
>          ....
>               <systemPropertyVariables>
>                 ....
>                       
> <log4j.configuration>${log4j.configuration}</log4j.configuration>
>               </systemPropertyVariables>
>                 ....
>          </configuration>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to