I'm a new maven user starting the journey up the maven  learning curve.  I 
recall reading in the free Maven book that by default Maven sets itself to java 
1.3.  But I'm not sure if I'm recalling that correctly.  If it's not 1.3 then 
it is certainly 1.4.  It is definately not 1.5.



________________________________
From: Elliot Huntington <elliot.hunting...@gmail.com>
To: users@maven.apache.org
Sent: Tuesday, June 9, 2009 5:49:28 PM
Subject: $JAVA_HOME ignored?

Hi everyone,

Following the installation instructions for Maven, I set my JAVA_HOME
environment variable to point to my Java 5 directory.

Why is it then that in order to have maven compile my project for 1.5
I need to use the following?

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.5</source>
                        <target>1.5</target>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

Thanks,
Elliot

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to