admin管理员组文章数量:1278854
in my maven project, in the parent POM.xml
we use Tycho version 4.0.4 and we define
<plugin>
<groupId>.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>4.0.4</version>
</plugin>
in this .0.4/tycho-compiler-plugin/plugin-info.html . It says, validate-classpath is by default running through
in the Child module of the project, i don't want that goal to be running in the child Module.
The question is, can i? if can, how to do it?
in my maven project, in the parent POM.xml
we use Tycho version 4.0.4 and we define
<plugin>
<groupId>.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>4.0.4</version>
</plugin>
in this https://tycho.eclipseprojects.io/doc/4.0.4/tycho-compiler-plugin/plugin-info.html . It says, validate-classpath is by default running through
in the Child module of the project, i don't want that goal to be running in the child Module.
The question is, can i? if can, how to do it?
Share Improve this question asked Feb 24 at 3:39 Avian DriyantoAvian Driyanto 932 silver badges12 bronze badges 10 | Show 5 more comments1 Answer
Reset to default 0Using
<phase>none</phase>
will make the goal not running in child module
Thanks for your help @howlger
版权声明:本文标题:java - Skip or Ignore Default goal "validate-classpath" from Tycho Compiler Plugin 4.0.4 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741295266a2370783.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
<plugin>
element, you can add<inherited>false</inherited>
if you do not want it to be applied to its child modules. By the way, the current Tycho version is 4.0.11. – howlger Commented Feb 24 at 6:03validate-classpath
goal not to be executed at all (as the plugin is only used in child modules and not in the parent), right? Does it work by telling the other two goals to be executed:<executions><execution><id>compile</id><goals><goal>compile</goal></goals></execution><execution><id>testCompile</id><goals><goal>testCompile</goal></goals></execution></executions>
? – howlger Commented Feb 24 at 8:42validate-classpath
got executed in child module. It break, something that i need to happen. – Avian Driyanto Commented Feb 24 at 8:56<execution> <id>default-validate-classpath</id> <phase>none</phase> </execution>
set phase tonone
solve my problem, stupid me i'm wrong to put the ID it supposedefault-validate-classpath
not justvalidate-classpath
Thanks for your help @howlger – Avian Driyanto Commented Feb 25 at 7:51