Project

General

Profile

Actions

Bug #20410

closed

Rudder build when skipping tests

Added by François ARMAND about 3 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Dependencies
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:

Description

It fails if there is no corresponding "test-jar" for rudder-core already published in repo, ie for snapshots for example.

Error:

[ERROR] Failed to execute goal on project rudder-rest: Could not resolve dependencies for project com.normation.rudder:rudder-rest:jar:6.1.18-SNAPSHOT: Could not find artifact com.normation.rudder:rudder-core:jar:tests:6.1.18-SNAPSHOT in normation-snapshot (https://nexus.normation.com/nexus/content/repositories/snapshots)

This is known from prehistory, and marked as a "won't fix": https://issues.apache.org/jira/browse/MNG-4192

But we can try to avoid it:
Like that, but it's horrible:
https://stackoverflow.com/questions/7985442/skipping-maven-test-dependency

But perhaps like that:
https://stackoverflow.com/questions/1725476/maven-test-dependency-in-multi-module-project

It also need to avoid skipping fake test jar:
https://issues.apache.org/jira/browse/MJAR-138

Actions #1

Updated by François ARMAND about 3 years ago

  • Description updated (diff)
Actions #2

Updated by François ARMAND about 3 years ago

  • Status changed from New to In progress
Actions #3

Updated by François ARMAND about 3 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Alexis Mousset
  • Pull Request set to https://github.com/Normation/rudder/pull/4049
Actions #4

Updated by François ARMAND about 3 years ago

  • Status changed from Pending technical review to Pending release
Actions #5

Updated by Alexis Mousset about 3 years ago

  • Fix check changed from To do to Checked
Actions #6

Updated by Vincent MEMBRÉ about 3 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.1.18, 6.2.12 and 7.0.0~rc2 which were released today.

Actions

Also available in: Atom PDF