• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apple secretly updated Ant and Maven

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apple released a new update for Java platform on the OSX.
Maven now is 3 and Ant is 1.8.2
These changes should be listed in the update (and shouldn't be in the update any way, I think).
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, I agree. I just let my Mac Mini do that update this morning. What if the new Ant and Maven aren't 100% backwards compatible? Suddenly builds could start failing and no one will know why. Fortunately, I'm not doing much Java work on that machine at the moment.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've never used the built-in versions of Ant and Maven, instead preferring to install up-to-date versions myself. Do the built-in ones have any advantage other than not having to install them?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:I've never used the built-in versions of Ant and Maven, instead preferring to install up-to-date versions myself. Do the built-in ones have any advantage other than not having to install them?

No I don't think they hold any advantage.
 
Maneesh Godbole
Saloon Keeper
Posts: 11060
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I updated my JDK, Safari and iTunes yesterday. The surprising thing was it asked be for a reboot. I was wondering why. Does it mean some OS level updates?
The last time I remember being asked for a reboot after an update was after an OS security patch or something.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A Safari update usually entails a reboot.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree that browser updates necessitating a reboot are strange; I dare say Apple could do better in that regard. Other frameworks can be updated while apps using them are running; why not WebKit?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, OS X is a lot better than Windows about requiring reboots after installations, but why the browser mandates a reboot is odd.
 
Martin White
Greenhorn
Posts: 4
Mac Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greg Charles wrote:Wow, I agree. I just let my Mac Mini do that update this morning. What if the new Ant and Maven aren't 100% backwards compatible? Suddenly builds could start failing and no one will know why. Fortunately, I'm not doing much Java work on that machine at the moment.

Sorry for just registering and then replying to a slightly old thread but after the week I've had I felt compelled enough to do so. Actually it looks like this could be a very useful place so I'm glad I stumbled across it!

So, yes, Maven 3 is indeed not 100% compatible and not only could it break builds but it did

I'd been doing some minor issue fixing on a project on my work laptop. Changing company name references following a buyout and the like but I'd been doing all of that in Netbeans. One night last week I thought I ought to update the copy on my home machine so I pulled the changes, dropped to the command line and off I went. Oh man! This is a project with about a dozen or so modules and it failed on the first one. This was odd!

Due to some badly formed POMs in the project (I inherited this project - approx. 500,000 lines of code) the local repository must be offline when building or hibernate and a bunch of other stuff will update and break. Yeah, yeah, I need to fix that but timescales are too tight right now.

Long story short I had to put the repo online due to the maven update, let it update itself, fix a few things, rinse and repeat. Two days later I have something that builds again. What a pain!! This has tought me that I need to bypass Apples version of maven in future.

For sure:

Maven 3 no longer support maven 1 repos via the legacy tag. That's probably fair enough but this project was dormant for two years so there was some of that in there. Having said that, I removed the repo from the pom and it still built so I don't really know what it was using from the legacy repo! Re-reading that, yep, it's going to be cached in my local copy so that'll probably break when someone new comes along

An odd one was that the webstart JNLP plugin v 1.0-alpha-1 that had always worked suddenly started sayingit couldn't find the inline goal. Very odd. Thankfully that was easy to upgrade to beta 1 with no knock on issues.

End result is that I have a project that is slightly upgraded in certain areas which is good but sadly still needs to build in offline mode or hibernate breaks. It really, really would have been nice to have known that maven was going to update in that Java update though. I could have done without these issues at this time (trying to get a release out!)

Anyway, be warned!

I'm off to browse the forums. They look interesting
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, isn't it possible to just install Maven into your own directory and set the environment variables point to that one and ignore the ones given by Apple in the Java update.

Hi Martin, glad you joined and thanks for that post.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic