有没有办法告诉 m2e 在调用 maven 之前解析 eclipse 变量?我有这个配置
<plugin>
<!-- Done to create Target Platform needed by eclipse -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.5.1</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>process-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${workspace_loc}/project-OSGi/target/dependency</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
但是${workspace_loc}
在调用 maven 之前没有得到解决,所以我最终得到了一个名为 workspace_loc 的文件夹