Bug 800280

Summary: spring-2.5-bom contains wrong dependency spring-instrument-tomcat
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Tomas Repel <trepel>
Component: SpringAssignee: Marek Novotny <mnovotny>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Repel <trepel>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0.0.ER1, 2.0.0.ER2CC: kpiwko, mariusb
Target Milestone: ---   
Target Release: 2.0.0.ER3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-05 13:49:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Repel 2012-03-06 08:22:05 UTC
Description of problem:

Artefact com.redhat.jboss.wfk.boms:spring-2.5-bom:2.0.0-redhat-4 contains wrong dependency org.springframework:spring-instrument-tomcat:2.5.6.SEC03

This dependency doesn't exist, spring-instrument-tomcat is only available for spring 3+. Just removal of this dependency from dependencies section should be perfectly OK.

Version-Release number of selected component (if applicable):

spring-2.5-bom, versions: 2.0.0-redhat-4, 2.0.0-redhat-5

How reproducible:

Always.

Steps to Reproduce:
1. Create pom.xml, that uses spring-2.5-bom in dependencyManagement section
2. Add spring-instrument-tomcat dependency to dependencies section
3. Create and build maven project based on this pom.xml via maven
  
Actual results:

It fails with similar message:
[ERROR] Failed to execute goal on project coverage-classes: Could not resolve dependencies for project com.redhat.jboss.wfk:coverage-classes:pom:0.0.1: Failure to find org.springframework:spring-instrument-tomcat:jar:2.5.6.SEC03 in file:///home/trepel/sources/wfk-qa/build/configuration/../../../obsolete-repository was cached in the local repository, resolution will not be reattempted until the update interval of obsolete-enterprise-repository has elapsed or updates are forced -> [Help 1]

Expected results:

It passes.

Comment 1 Marek Novotny 2012-03-06 08:37:31 UTC
Actually I can see that artifact only for 3.1.1.

Comment 2 Marek Novotny 2012-03-06 09:07:38 UTC
Marius, could you answer whether it should be in BOM for Spring 3.0, 3.1 or in both?

Comment 3 Marius Bogoevici 2012-03-09 15:15:11 UTC
There's been an artifact naming change. In 3.0 and 3.1 it's called spring-instrument-tomcat, whereas in 2.5 it's called spring-tomcat-weaver. We should update the boms accordingly.

Comment 5 Marek Novotny 2012-03-09 17:32:46 UTC
org.springframework:spring-instrument.tomcat was removed from spring-2.5 BOM

Comment 6 Karel Piwko 2012-03-12 08:56:05 UTC
Verified in WFK 2.0.0.ER3

Comment 7 Karel Piwko 2012-04-05 13:49:17 UTC
Verified in WFK 2.0.0.ER3 (a.k.a. 2.0.0.Beta1).