On Saturday 21 February 2009 16:58:55 John Wooten wrote:
> I have JAVA_HOME set to the java 1.5.1 and when I type echo $JAVA_HOME it
> shows this.
> I've put in a settings file settings.xml to set the jdk to 1.5 also.
>
> It compiles and says it can't do generics using 1.3, to do a
> /Users/woo/Development/workspaces/Qworkspace/Foundation/src/com/areteq/comm
>on/HashMapHandler.java:[11,26] generics are not supported in -source 1.3
> (try -source 1.5 to enable generics)
>    public abstract HashMap<String, HashMapData> getHashMapData();
>
> Where do I put this -source 1.5.  I've tried settings.xml, profiles, etc.
>
> It would help if the error somehow mention where and how to set this.

Add this to the build section of your pom.xml ->

  <build>
    <finalName>blah</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>


-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


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

Reply via email to