Trails

Move annotations to a separate Maven module

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: trails-core
  • Labels:
    None
  • Number of attachments :
    0

Description

I'm using Trails with a model that is also used by another application. Since I use some Trails annotations, the Maven module that contains the entities must have a dependency on trails-core. This introduces lots of transitive dependencies that are not used by the other application. Of course I can use exclusions to get exactly the dependencies I want, but this is fairly ugly.

Ideally the annotations defined by Trails should be in their own Maven artifact that has no dependencies on other Trails modules. I think this could be easily done, except for an issue with @DescriptorAnnotation which links the annotation to the annotation handler (which obviously should stay in trails-core). This could be solved by using the class name instead of the class.

Issue Links

Activity

Hide
Alejandro Scandroli added a comment -

Moved to TYNAMO-5

Show
Alejandro Scandroli added a comment - Moved to TYNAMO-5

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: