JaCoCo not generating jacoco.exec until after skipping JaCoCo execution

后端 未结 6 1031
执念已碎
执念已碎 2021-02-19 00:27

I\'m having trouble generating AHP reports via JaCoCo in one of my modules. When the build starts, I see JaCoCo correctly setting argLine with:

[INFO] jacoco.age         


        
6条回答
  •  无人共我
    2021-02-19 01:10

    for me one of the reason for exec file not getting generated is when i placed the prepare-agent , prepare-package goals inside plugin section of pluginManagement

    when i tried the same outside pluginManagement , i was sucessfully able to run the same and jacoco-exec file was generated using mvn clean install command

    my pomfile is as below :

    
    
    
      4.0.0
    
      mmt
      jacoco
      0.0.1-SNAPSHOT
    
      jacoco
      
      http://www.example.com
    
      
        UTF-8
        1.7
        1.7
        -Xms256m -Xmx1524m -XX:MaxPermSize=256m -Duser.language=en
     
    
      
        
          junit
          junit
          4.11
          test
        
      
    
      
        
          
            
              maven-clean-plugin
              3.0.0
            
            
            
              maven-resources-plugin
              3.0.2
            
            
              maven-compiler-plugin
              3.7.0
            
            
              maven-surefire-plugin
              2.20.1
            
            
              maven-jar-plugin
              3.0.2
            
            
              maven-install-plugin
              2.5.2
            
            
              maven-deploy-plugin
              2.8.2
            
          
        
        
    
    
    
        org.jacoco
        jacoco-maven-plugin
        0.7.7.201606060606
        
            
                
                    prepare-agent
                
            
            
                report
                prepare-package
                
                    report
                
            
        
    
        
      
    
    

提交回复
热议问题