我有一个带有 libsass-maven-plugin 的项目
<plugin>
<groupId>com.github.warmuuh</groupId>
<artifactId>libsass-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<inputPath>${basedir}/inputpath</inputPath>
<outputPath>${basedir}/outputpath</outputPath>
<generateSourceMap>false</generateSourceMap>
</configuration>
</plugin>
是否可以在不使用 Maven 配置文件的情况下指定更多输入和输出路径?
最佳答案
只需使用多次执行即可。请记住为所有这些添加唯一的 ID。
<plugin>
<groupId>com.github.warmuuh</groupId>
<artifactId>libsass-maven-plugin</artifactId>
<executions>
<execution>
<id>firstId</id>
<phase>generate-resources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<inputPath>firstInputPath</inputPath>
<outputPath>firstOutputPath</outputPath>
<generateSourceMap>false</generateSourceMap>
</configuration>
</execution>
<execution>
<id>secondId</id>
<phase>generate-resources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<inputPath>secondInputPath</inputPath>
<outputPath>secondOutputPath</outputPath>
<generateSourceMap>false</generateSourceMap>
</configuration>
</execution>
</executions>
</plugin>
关于java - Libsass-mave-plugin 多个输入输出目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32719439/