maven - Convert a batch of jrxml files into jasper files? -
how create maven target convert batch of jrxml files jasper files in same folder? folder path can input argument of command?
you have specify configuration below
<build> <pluginmanagement> <plugins> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>jasperreports-maven-plugin</artifactid> <version>1.0-beta-2</version> <configuration> <sourcedirectory>src/main/resources/reports</sourcedirectory> <outputdirectory>src/main/resources/reports</outputdirectory> </configuration> <!-- here --> <executions> <!-- need wait until after java classes have been compiled compile reports --> <execution> <phase>compile</phase> <goals> <goal>compile-reports</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupid>org.codehaus.mojo</groupid> <artifactid>jasperreports-maven-plugin</artifactid> <version>1.0-beta-2</version> </dependency> <dependency> <groupid>net.sf.jasperreports</groupid> <artifactid>jasperreports</artifactid> <version>${jasperreports.version}</version> <exclusions> <exclusion> <groupid>commons-logging</groupid> <artifactid>commons-logging</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.codehaus.groovy</groupid> <artifactid>groovy-all</artifactid> <version>${groovy.version}</version> </dependency> </dependencies> </plugin> </plugins> </pluginmanagement> </build>
see post. specifies same. http://kaleeswaran14.blogspot.com/2012/05/compile-jasper-reports-with-maven.html
Comments
Post a Comment