Skip to main content

Apache Maven Java Error – was unexpected at this time

While testing changes to the Maven Installer I had this strange error.

Simple enough – I had quoted the value for the JAVA_HOME variable.

So I had:

JAVA_HOME="C:\Program Files\Java\jdk1.7.0_07"

Removed the quotes and all worked fine:

JAVA_HOME=C:\Program Files\Java\jdk1.7.0_07

Hope this helps.

One comment on “Apache Maven Java Error – was unexpected at this time”

  1. Pacman says:

    Made the same mistake!

Leave a Reply

Your email address will not be published.

*