我试图用Maven的纱线开玩笑。
maven使用以下命令运行纱线:
react-scripts test --https-proxy=<myproxy> --proxy=<myproxy>
此命令被调用时我会得到:
[ERROR] ▒? Unrecognized CLI Parameters:
[ERROR]
[ERROR] Following options were not recognized:
[ERROR] ["https-proxy", "httpsProxy", "proxy"]
[ERROR]
[ERROR] CLI Options Documentation:
[ERROR] https://jestjs.io/docs/en/cli.html
[ERROR]
[ERROR] error Command failed with exit code 1.
在运行期间,不允许代理信息。 谁能告诉我如何避免这些erorr消息?
Maven配置:
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
<yarnVersion>${yarn.version}</yarnVersion>
<workingDirectory>${frontendSrcDir}</workingDirectory>
<installDirectory>${project.build.directory}</installDirectory>
</configuration>
<executions>
...
<execution>
<id>test</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>test</phase>
<configuration>
<arguments>test</arguments>
<environmentVariables>
<CI>true</CI>
</environmentVariables>
</configuration>
</execution>
...