How do I compile jrxml to get jasper?

后端 未结 11 882
庸人自扰
庸人自扰 2020-11-28 07:52

I have jrxml file, I want to compile this to get .jasper. How do I compile and get that jasper

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 08:24

     **A full example of POM file**.
    
    Command to Build All **Jrxml** to **Jasper File** in maven
    If you used eclipse then right click on the project and Run as maven Build and add goals antrun:run@compile-jasper-reports 
    
    
    compile-jasper-reports is the id you gave in the pom file.
    **compile-jasper-reports**
    
    
    
    
    
      4.0.0
    
      com.test.jasper
      testJasper
      0.0.1-SNAPSHOT
      jar
    
      TestJasper
      http://maven.apache.org
    
      
        UTF-8
      
    
      
        
            log4j
            log4j
            1.2.17
        
        
            net.sf.jasperreports
            jasperreports
            6.3.0
        
        
            net.sf.jasperreports
            jasperreports-fonts
            6.0.0
        
        
            org.codehaus.groovy
            groovy-all
            2.4.6
        
        
            com.itextpdf
            itextpdf
            5.5.6
        
        
          junit
          junit
          3.8.1
          test
        
    
    
      
        
        
        
             
                org.apache.maven.plugins
                maven-compiler-plugin
                3.5
                
                    1.8
                    1.8
                
                   
            
                org.apache.maven.plugins
                maven-antrun-plugin
                1.8
                
                    
                        compile-jasper-reports
                        
                            run
                        
                        generate-sources
                        
                            
                                
                                
                                
                                
                                    
                                    
                                    
                                
                            
                        
                    
                
            
        
        
    
    
    

提交回复
热议问题