Forums Register Login

Apple secretly updated Ant and Maven

+Pie Number of slices to send: Send
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).
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
A Safari update usually entails a reboot.
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
Yeah, OS X is a lot better than Windows about requiring reboots after installations, but why the browser mandates a reboot is odd.
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
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
Run away! Run away! Here, take this tiny ad with you:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1907 times.
Similar Threads
Apache Ant Installation - Build Failed
How to create EAR file using command prompt instead of using RSA ?
Re-arrange the Jforum repository for 3?
Why JavaFX?
Java 1.5 on mac
Java Web Database Application Development with Spring Boot, JPA/Hibernate and Thymeleaf
Next version of SCMAD?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:33:42.