Chris, that's actually part of what's confusing me. I only have the 1.5 JDK installed. However, when I do a mvn help:effective-pom, it looks like it is trying to use the 1.4 jdk for javadocs (see source line)

 <reporting>
   <outputDirectory>target/site</outputDirectory>
   <plugins>
     <plugin>
       <artifactId>maven-javadoc-plugin</artifactId>
       <version>2.1</version>
       <configuration>
         <minmemory>128m</minmemory>
         <maxmemory>512</maxmemory>
         <breakiterator>true</breakiterator>
         <quiet>true</quiet>
         <verbose>false</verbose>
         <source>1.4</source>
         <linksource>true</linksource>
         <links>
           <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
           <link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
           <link>http://java.sun.com/j2se/1.3/docs/api/</link>
           <link>http://java.sun.com/javaee/5/docs/api/</link>
           <link>http://java.sun.com/j2ee/1.4/docs/api/</link>
           <link>http://java.sun.com/j2ee/sdk_1.3/techdocs/api/</link>
<link>http://jakarta.apache.org/commons/collections/apidocs</link>
           <link>http://jakarta.apache.org/commons/logging/apidocs/</link>
           <link>http://www.junit.org/junit/javadoc/</link>
           <link>http://logging.apache.org/log4j/docs/api/</link>
           <link>http://jakarta.apache.org/regexp/apidocs/</link>
           <link>http://jakarta.apache.org/velocity/api/</link>
         </links>
       </configuration>
     </plugin>

I do see a similar section for the 2.2-SNAPSHOT that has 1.5 for its source, but I'm not exactly sure how to get it to use that one. I'm not sure if I'm heading in the right direction or where this parent pom is found.
--B.J.

Christopher Blythe wrote:
you need a 1.5 JDK to compile the source in trunk because of the annotations for EE5... if you want to use JDK 1.4.X and J2EE 1.4, i would suggest looking at the 1.2 branch.

hope this helps...

On Tue, Feb 5, 2008 at 12:57 PM, B.J. Reed <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi, I've run into a problem with building the trunk version of
    daytrader.

    When I do mvn site, I am getting about 15 - 20 errors all similar
    to the
    ones below, but I can't seem to figure out exactly what in the pom.xml
    is setting the source to 1.4 and how to fix it.

    First 3 errors:
    Embedded error: Error rendering Maven report: Exit code: 1 -
    
C:\g\daytrader\trunk\modules\ejb\src\main\java\org\apache\geronimo\samples\daytrader\AccountDataBea
    n.java:30: annotations are not supported in -source 1.4 (try
    -source 1.5
    to enable annotations)
    @Entity(name = "accountejb")
     ^
    
C:\g\daytrader\trunk\modules\ejb\src\main\java\org\apache\geronimo\samples\daytrader\AccountDataBean.java:79:
    generics are not supported in -source 1.4 (try -source 1.5 to enable
    generics)
       private Collection<OrderDataBean> orders;
                         ^
    
C:\g\daytrader\trunk\modules\ejb\src\main\java\org\apache\geronimo\samples\daytrader\AccountProfileDataBean.java:23:
    annotations are not supported in -source 1.4 (try -source 1.5 to
    enable
    annotations)
    @Entity(name = "accountprofileejb")
     ^

    Thanks in advance for any help,

    B.J.




--
"I say never be complete, I say stop being perfect, I say let... lets evolve, let the chips fall where they may." - Tyler Durden

Reply via email to