Maven2 cgen task problem

From: Gary Jarrel (garyjarre..mail.com)
Date: Mon May 24 2010 - 06:26:41 UTC

  • Next message: Andrus Adamchik: "Re: Blobs in the DataContext"

    Hi All

    I started working today on integrating our application with another
    database. So as expected I created another node and another tree in
    the modeler, added just one table. And updated my Maven cgen task as
    follows:

    <plugin>
        <groupId>org.apache.cayenne.plugins</groupId>
        <artifactId>maven-cayenne-plugin</artifactId>
        <version>${cayenne.version}</version>

        <configuration>
            <map>${basedir}/src/main/webapp/WEB-INF/conf/cayenne/comoneMap.map.xml</map>
            <additionalMaps>${basedir}/src/main/webapp/WEB-INF/conf/cayenne</additionalMaps>
            <superTemplate>${basedir}/src/bootstrap/superclass.vm</superTemplate>
            <destDir>${project.build.sourceDirectory}</destDir>
            <superPkg>au.com.jarrel.comone.site.db.entity.auto</superPkg>
        </configuration>
    </plugin>

    However every time I run the generator now I get the following error:

    [INFO] Error generating classes:
    Embedded error: [v.3.0 Apr 30 2010 11:29:33] Wrong DataMap format,
    last processed tag: <null>
    Content is not allowed in prolog.

    I've tried to put the the extra data map into a different folder to
    separate the 2 datamaps, this did not help.

    If I remove the additionaMaps attribute the generation runs, however
    the class in the main datamap which has a relationship to a class in
    the new datamap that I have created does not generate properly, as the
    generation process does does not seem to find the new class which
    belongs to the datamap.

    If however I let the modeller do the generation, then everything runs fine.

    Any thoughts?

    Thank you

    Gary



    This archive was generated by hypermail 2.0.0 : Mon May 24 2010 - 06:27:17 UTC