Hi guys,
I've just upgraded the build on trunk to maven 3. Changes summary:
- Requires maven 3.0.0 or higher to build
- If you build it with maven 2.2.1 it will fail and tell you
to get maven 3
- Version renamed from 5.2.0.SNAPSHOT to 5.2.0-SNAPSHOT
- Never the use the inherently wrong <dot>SNAPSHOT
notation again
- Refactored eclipse plugin's ANT build into a maven tycho build
- I 'll write a separate mail with info about those changes
later
In maven 3 you 'll see a bunch of warnings, but that's stuff that we
've doing wrong a long time already in maven 2 too but we didn't
know.
I 'll start looking into these warnings soon.
If any of your changes create new warnings (and you notice them),
please read them and deal with them (or ask me)
and don't just hide them between the other warnings as a surprise
present for me :)
Once I am able to deal with most of the current warnings, it should
be more difficult for new warnings to hide.
Here's a quick recipe on how to upgrade to Maven 3 (you probably
know all this anyway):
- Linux
- If you use maven 2.2.1 with yum or apt-get you 'll probably
want to uninstall that
- Doesn't look like maven 3 is available yet, so
installation is done the hard way
- Download maven 3 tar.gz:
- Untar to ~/opt/build/
- cd ~/opt/build/
- ln -s apache-maven-3.0 apache-maven
- If you 've done the ln-s trick before, you don't need to do
this again:
- sudo gedit /etc/environment
- PATH="/home/<username>/opt/build/apache-maven/bin:<original
path>"
- M2_HOME="/home/<username>/opt/build/apache-maven"
- MAVEN_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=512m"
- You can't use $variables in /etc/environment it seems
(that's also why there's no use of "export
PATH=$M2_HOME:$PATH")
- If you know of a better place than /etc/environment to
do this, please tell me :)
- Reboot (there's probably a better, faster way to flush
/etc/environment, but I don't know it)
- Windows
- Download maven 3 zip:
- Unzip it to C:\Program Files
- Open menu Configuration screen, menu item System
- tab Advanced, button Environment variables
- M2_HOME="C:\Program files\apache-maven-3.0"
- MAVEN_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=512m"
- PATH="%M2_HOME%\bin:%PATH%"
- Reboot
--
With kind regards,
Geoffrey De Smet