Skip to content

Commit

Permalink
eclipse-tycho#166: skip Tycho dependency resolution for clean-only bu…
Browse files Browse the repository at this point in the history
…ilds by default

Signed-off-by: Hannes Wellmann <wellmann.hannes1@gmx.net>
  • Loading branch information
HannesWell committed Jul 2, 2021
1 parent 3ee6e74 commit ac9d2af
Showing 1 changed file with 3 additions and 7 deletions.
Expand Up @@ -236,13 +236,9 @@ private void validateUniqueBaseDirs(List<MavenProject> projects) throws MavenExe

private boolean disableLifecycleParticipation(MavenSession session) {
// command line property to disable Tycho lifecycle participant
if ("maven".equals(session.getUserProperties().get("tycho.mode"))) {
return true;
}
if (session.getUserProperties().containsKey("m2e.version")) {
return true;
}
return false;
return "maven".equals(session.getUserProperties().get("tycho.mode"))
|| session.getUserProperties().containsKey("m2e.version")
|| session.getGoals().equals(List.of("clean")); // disable for clean-only session
}

private void configureComponents(MavenSession session) {
Expand Down

0 comments on commit ac9d2af

Please sign in to comment.