如何从Apache Sling jspc-maven-plugin的输出路径中消除org / apache / jsp?

时间:2017-10-16 21:33:01

标签: maven

我正在尝试使用Apache Sling中的jspc-maven-plugin。当我编译JSP时,它们最终会出现在我的target/org/apache/jsp目录中。我希望他们直接转到target下或target/classesorg/apache/jsp部分。我怎样才能做到这一点?这是我的插件规范:

  <plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>jspc-maven-plugin</artifactId>
    <executions>
      <execution>
        <id>compile-jsp</id>
        <goals>
          <goal>jspc</goal>
        </goals>
        <configuration>
          <sourceDirectory>${basedir}/source/html</sourceDirectory>
          <outputDirectory>${basedir}/target</outputDirectory>
          <includes>
            <include>**/*.jsp</include>
          </includes>
          <showSuccess>true</showSuccess>
          <failOnError>false</failOnError>
          <compilerSourceVM>${javac.source}</compilerSourceVM>
          <compilerTargetVM>${javac.target}</compilerTargetVM>
          <servletPackage/> <!-- doesn't seem to matter - deprecated -->
        </configuration>
      </execution>
    </executions>
  </plugin>

0 个答案:

没有答案