gpt4 book ai didi

java - Libsass-mave-plugin 多个输入输出目录

转载 作者:行者123 更新时间:2023-11-30 03:15:38 28 4
gpt4 key购买 nike

我有一个带有 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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com