更改apt-maven-plugin的输出目录 [英] Change output directory for apt-maven-plugin

查看:134
本文介绍了更改apt-maven-plugin的输出目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在建立战争之前,我正在使用apt-maven-plugin处理一些Beehive Netui注释.

I am using apt-maven-plugin to process some Beehive Netui annotations before building a war.

apt处理的输出是_pageflow目录,其中包含struts配置文件(xml文本)等.问题是它正在我运行maven的任何目录中输出,而不是我想要的$ {project.build.directory}/classes目录中.我尝试设置outputDirectoryresourceTargetPath属性,但均未更改此行为.

The output of the apt processing is a _pageflow directory which contains struts config files (xml text) and the like. The problem is that it is being output in whatever directory I run maven from, not in the ${project.build.directory}/classes directory which is what I want. I tried setting the outputDirectory and the resourceTargetPath properties, but neither changed this behavior.

是否还有另一个参数需要设置?

Is there another parameter to set that I'm missing?

这是我当前的插件配置.

Here's my current plugin configuration.

<build>
  <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>apt-maven-plugin</artifactId>
      <version>1.0-alpha-3</version>
      <inherited>false</inherited>
      <configuration>
        <outputDirectory>${project.build.directory}/classes</outputDirectory>
        <options>
          <option>web.content.root=${project.build.directory}/classes</option>
        </options>
      </configuration>
      <executions>
        <execution>
          <goals>
            <goal>process</goal>
          </goals>
        </execution>
      </executions>
      <dependencies>
        <dependency>
          <groupId>weblogic</groupId>
          <artifactId>beehive-netui-compiler</artifactId>
          <version>${weblogic-version}</version>
        </dependency>
      </dependencies>
    </plugin>
  </plugins>
</build>

推荐答案

您的问题确实看起来像 MOJO-1478 (您使用的是Mac)吗?也许看看补丁(然后重新打开问题或创建一个新补丁).

Your problem really looks like MOJO-1478 (are you using a Mac)? Maybe have a look at the patch (and reopen the issue or create a new one).

PS:您不必配置工厂吗?我不明白如何在这里使用beehive-netui-compiler依赖项.是不是因为您指定了依赖而神奇地从该依赖中提取了工厂?

PS: Don't you have to configure a factory? I don't get how the beehive-netui-compiler dependency is used here. Is the factory magically picked up from that dependency just because you specified it?

这篇关于更改apt-maven-plugin的输出目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆