maven插件com.alexnederlof jasperreports-plugin的方向是否可用?

时间:2018-02-12 15:33:39

标签: maven jasper-reports

我已阅读有关com.alexnederlof jasperreports-plugin的有限信息,并且我希望将当前的ant版本转换为使用此maven插件,但似乎并非如此是任何可用的文件。

我最关心的是运行时:如果我在构建时使用此插件,我需要在运行时使用哪个版本的jasper-reports

我错过了某处的参考资料吗?正如古老的格言所说,"如果没有任何文档,那么我想我必须写它。"

1 个答案:

答案 0 :(得分:1)

我不确定你的目标是什么,但是,我在maven中使用这个插件来生成源.jrxml文件到.jasper文件,pom中的配置是这样的:

<plugin>
    <groupId>com.alexnederlof</groupId>
    <artifactId>jasperreports-plugin</artifactId>
    <version>2.3</version>  
    <executions>
        <execution>
            <phase>process-sources</phase>
            <goals>
                <goal>jasper</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <!-- These are the default configurations: -->      
        <compiler>net.sf.jasperreports.engine.design.JRJdtCompiler</compiler>
        <sourceDirectory>src/main/jasperreports</sourceDirectory>
        <outputDirectory>${basedir}/src/main/webapp</outputDirectory>
        <outputFileExt>.jasper</outputFileExt>
        <xmlValidation>true</xmlValidation>
        <verbose>false</verbose>
        <numberOfThreads>4</numberOfThreads>
        <failOnMissingSourceDirectory>true</failOnMissingSourceDirectory>
        <sourceScanner>
             org.codehaus.plexus.compiler.util.scan.StaleSourceScanner
        </sourceScanner>
    </configuration>
</plugin>

希望这有帮助

相关问题