On 18/03/2009, sebb <[email protected]> wrote: > AIUI, "compile" scope means compile, test and run, and generates a > transitive dependency. > > There are some dependencies that are compile-time only, for example > annotations, and Java specification jars - i.e. API-only jars that > have no implementation. > > What is the best way to define such a dependency? > > The Maven site suggests using "provided", but this does not solve the > problem. > > Maybe there should be a"compile-only" scope? >
Note that in the case of annotation jars, these are not needed at run-time. In the case of API-only jars, at run-time one would use a different jar which has the full implementation. This is useful for public specs which might not have open source implementations. The API-only jars allow one to compile. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
