Re: cayenne-plugin and superpkg

From: Bryan Lewis (brya..aine.rr.com)
Date: Tue Oct 12 2010 - 22:22:19 UTC

  • Next message: AndrĂ Rothe: "Re: cayenne-plugin and superpkg"

    The elements are case-sensitive. Try <superPkg>.

    (I'd fix the case of "DataMap.map.xml" too, although it might not matter on
    Windows.)

    On Tue, Oct 12, 2010 at 4:55 PM, André Rothe <aroth..hosco.info> wrote:

    > Hello,
    >
    > I have written a configuration for the class generator of Cayenne within my
    > pom.xml:
    >
    > <plugin>
    > <groupId>org.apache.cayenne.plugins</groupId>
    > <artifactId>maven-cayenne-plugin</artifactId>
    > <executions>
    > <execution>
    > <id>cgen</id>
    > <configuration>
    > <map>${project.build.sourceDirectory}/../resources/datamap.map.xml</map>
    > <destDir>${project.build.sourceDirectory}</destDir>
    > <superpkg>auto</superpkg>
    > <encoding>UTF-8</encoding>
    > </configuration>
    > <goals>
    > <goal>cgen</goal>
    > </goals>
    > </execution>
    > </executions>
    > </plugin>
    >
    > But the plugin doesn't use the <superpkg> information, the debug output of
    > maven writes:
    >
    > [DEBUG]Configuring mojo
    > 'org.apache.cayenne.plugins:maven-cayenne-plugin:3.0.1:cgen' -->
    > [DEBUG] (f) client = false
    > [DEBUG] (f) destDir =
    > /localhome/arothe/workspace/CayenneTest/src/main/java
    > [DEBUG] (f) encoding = UTF-8
    > [DEBUG] (f) makePairs = true
    > [DEBUG] (f) map =
    > /localhome/arothe/workspace/CayenneTest/src/main/java/../resources/datamap.map.xml
    > [DEBUG] (f) mode = entity
    > [DEBUG] (f) outputPattern = *.java
    > [DEBUG] (f) overwrite = false
    > [DEBUG] (f) project = MavenProject: info.phosco:CayenneTest:1.0-SNAPSHOT @
    > /localhome/arothe/workspace/CayenneTest/pom.xml
    > [DEBUG] (f) usePkgPath = true
    > [DEBUG]-- end configuration --
    > [cayenne:cgen]
    >
    > I miss the new path for the superclasses, what's wrong?
    >
    > Thanks a lot
    > Andre
    >



    This archive was generated by hypermail 2.0.0 : Tue Oct 12 2010 - 22:22:49 UTC