permaculture playing cards*
The moose likes Mac OS and the fly likes Apple secretly updated Ant and Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Apple secretly updated Ant and Maven" Watch "Apple secretly updated Ant and Maven" New topic
Author

Apple secretly updated Ant and Maven

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

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

Joined: Oct 01, 2001
Posts: 2835
    
  11

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
Marshal

Joined: Mar 22, 2005
Posts: 41102
    
  45
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?


Ping & DNS - my free Android networking tools app
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

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

Joined: Jul 26, 2007
Posts: 10169
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60780
    
  65

A Safari update usually entails a reboot.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41102
    
  45
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

Joined: Jan 10, 2002
Posts: 60780
    
  65

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

Joined: Apr 16, 2011
Posts: 4

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

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
wood burning stoves
 
subject: Apple secretly updated Ant and Maven
 
Similar Threads
jdo and eclipse
Maven Vs Ant
Facing a terrible problem with Maven update for an asm dependency
ant or maven
whats the diff. b/w ANT and MAVEN?