我正在尝试使用Apache Sling中的jspc-maven-plugin。当我编译JSP时,它们最终会出现在我的target/org/apache/jsp
目录中。我希望他们直接转到target
下或target/classes
下org/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>