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
  • In Maven, in the <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:03
  • will it not execute all the goal? I just not want" validate-classpath" goal to be executed. – Avian Driyanto Commented Feb 24 at 7:14
  • I see, you want the validate-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:42
  • not at all, just not on the child module. Because if the validate-classpath got executed in child module. It break, something that i need to happen. – Avian Driyanto Commented Feb 24 at 8:56
  • 1 using <execution> <id>default-validate-classpath</id> <phase>none</phase> </execution> set phase to none solve my problem, stupid me i'm wrong to put the ID it suppose default-validate-classpath not just validate-classpath Thanks for your help @howlger – Avian Driyanto Commented Feb 25 at 7:51
 |  Show 5 more comments

1 Answer 1

Reset to default 0

Using <phase>none</phase>

will make the goal not running in child module

Thanks for your help @howlger

本文标签: javaSkip or Ignore Default goal quotvalidateclasspathquot from Tycho Compiler Plugin 404Stack Overflow