correct scope for source only annotations?

View: New views
1 Messages — Rating Filter:   Alert me  

correct scope for source only annotations?

by Nord, James-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

 

I trying to work out what the best scope is for using annotations that
have @Retention(value=SOURCE).

 

There doesn't seem to be a clean fit and at the moment I'm using

Scope = provided and optional = true.  But this is kind off an ugly
workaround and doesn't really describe correctly the dependency (neither
does scope compile, optional=true).  

 

The reason I feel these are ugly as they both imply that some extra
features could be available if you provided the optional library - which
is not the case providing the library at runtime gets you nothing.

 

Would/could/should maven add a new scope "source" which is only
available at compile time and doesn't take any part in transitive
dependencies or is there a better way to describe the dependency
relationship?

 

/James


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@... and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************