Re: Setup for Java 1.6

From: Michael Gentry (blacknex..mail.com)
Date: Tue Sep 30 2008 - 10:04:07 EDT

  • Next message: Andrus Adamchik: "Re: Setup for Java 1.6"

    I don't know if this is related to the changes. I did an svn update,
    mvn clean, mvn install (OS X 10.4.11/Java 1.5) and got this error:

    [INFO] Compiling 1 source file to
    /Users/mgentry/Projects/Eclipse/Cayenne30/framework/maven-cayenne-plugin/target/classes
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Compilation failure

    /Users/mgentry/Projects/Eclipse/Cayenne30/framework/maven-cayenne-plugin/src/main/java/org/apache/cayenne/tools/CayenneGeneratorMojo.java:[233,43]
    Object() in java.lang.Object cannot be applied to
    (org.apache.commons.logging.Log,java.lang.String,java.lang.String)

    /Users/mgentry/Projects/Eclipse/Cayenne30/framework/maven-cayenne-plugin/src/main/java/org/apache/cayenne/tools/CayenneGeneratorMojo.java:[242,33]
    cannot find symbol
    symbol : method setLogger(org.apache.commons.logging.Log)
    location: class org.apache.cayenne.gen.ClassGenerationAction

    I last updated/built successfully sometime last week.

    /dev/mrg

    On Tue, Sep 30, 2008 at 8:50 AM, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > I just committed maven changes needed to compile Cayenne with either Java 5
    > or 6. I would strongly recommend to everybody to do a full rebuild from root
    > of the checkout tree after an update. A few other points:
    >
    > * We have a new empty module cayenne-jdk1.6-unpublished. As the name
    > suggests, it is for the code that will only run under Java 1.6
    > * You can build from root of the checkout with either Java 5 or 6. In the
    > former case, Maven will exclude "cayenne-jdk1.6-unpublished" from the build
    > and from resulting aggregated jars. Corollary to that - release managers
    > MUST USE JAVA 6 TO CREATE RELEASE ARTIFACTS.
    > * It is up to the developers how to organize the modules in Eclipse. I am
    > back to the two workspaces setup - one with default Java 5 JVM and another -
    > with Java 6.
    >
    > Let me know if anything that I checked in breaks your local build.
    >
    > Thanks,
    > Andrus
    >



    This archive was generated by hypermail 2.0.0 : Tue Sep 30 2008 - 10:11:25 EDT