« Return to Thread: [scala-tools] Enforcing Scala version with Maven

Re: [scala-tools] Enforcing Scala version with Maven

by Heiko Seeberger-4 :: Rate this Message:

Reply to Author | View in Thread

Josh,

The parameter will *not* make the build fail but only log with a leading "error" instead of a leading "warning". The Mojo should additionally throw an Exception. I did this locally and it worked. If you give me access to the repo I will patch it.

Heiko

2009/6/10 Josh Suereth <joshua.suereth@...>
Yes, there is a configuration parameter to do this.  Unfortunately, a lot of libraries have scala-library listed as a "provided" dependency, which does not get enforced.

I believe Heiko already sent the configuration parameter you can use.

Sent from my iPhone

On Jun 9, 2009, at 1:50 PM, David Pollak <feeder.of.the.bears@...> wrote:

Folks,

Is there any way we can use Maven to enforce Scala versions such that libraries compiled with a certain version of Scala can only be used with the same version of Scala?

Thanks,

David

--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp



--
My blog: heikoseeberger.name
Follow me: twitter.com/hseeberger
OSGi on Scala: www.scalamodules.org
Lift, the simply functional web framework: liftweb.net

 « Return to Thread: [scala-tools] Enforcing Scala version with Maven