[ROO-3685] Database Reverse Engineer includes dependency without version Created: 02/Nov/15  Updated: 03/Nov/15  Resolved: 03/Nov/15

Status: Resolved
Project: Spring Roo
Component/s: None
Affects Version/s: 2.0.0.M1
Fix Version/s: 2.0.0.M2

Type: Bug Priority: Minor
Reporter: Sergio Clares Martínez Assignee: Juan Carlos García del Canto
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'm trying to execute a database reverse engineer using Spring Roo 2.0.0.BUILD-SNAPSHOT from gitHub.

When database reverse engineer was executed, pom.xml includes the following dependency without version

      <dependency>
            <groupId>org.springframework.data</groupId>
            <artifactId>spring-data-jpa</artifactId>
            <version/>
        </dependency>

After that, I'm not able to compile my project.



 Comments   
Comment by Juan Carlos García del Canto [ 03/Nov/15 ]

This problem appears when some addon updates an existing dependency on pom.xml. On the first moment, dependency doesn't have version element, but when it's updated, it includes version element with empty value. Solved on the following commit:

https://github.com/spring-projects/spring-roo/commit/b0ceaea0605966e94f123372b088e52febe6f8c5

I was checking dependencies definition on Spring Roo addons and I've seen that exists more than one way/format to define dependencies on configuration.xml file. (Now a days, is possible to use Ivy format and Maven format)

Removing Ivy format support on the following commit:

https://github.com/spring-projects/spring-roo/commit/afda0574a23eb14c48dbac714640f9640b7d6d0a

Updating all configuration.xml files on Spring Roo project from Ivy format to Maven format:

https://github.com/spring-projects/spring-roo/commit/52e0c46c7fc11846679efc77963f0c0f0caa79a0

Generated at Sat Jul 20 03:13:57 UTC 2019 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.