Intégration Maven et Benerator avec Hsql (bd h2)
Bonjour
Ci-joint pom.xml, j'ai fait les choses dans les règles de l'art il me semble, merci de me dire c'est que ce qui n'est pas bien fait ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ca.essg.icms</groupId>
<artifactId>dataBene</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.databene</groupId>
<artifactId>maven-benerator-plugin</artifactId>
<version>0.5.8</version>
<configuration>
<descriptor>src/main/java/ca/essg/icms/databene/ClientBenerator.xml</descriptor>
<encoding>iso-8859-1</encoding>
<dbDriver>org.hsqldb.jdbcDriver</dbDriver>
<dbUrl>jdbc:hsqldb:file:hsqldb</dbUrl>
<dbSchema>sa</dbSchema>
<dbUser>user</dbUser>
<dbPassword></dbPassword>
</configuration>
<dependencies>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.10</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> |
Message console
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| ------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.449s
Finished at: Wed Jul 16 17:24:01 EDT 2014
Final Memory: 5M/15M
------------------------------------------------------------------------
Failed to execute goal org.databene:maven-benerator-plugin:0.5.8:generate (default) on project dataBene: Execution default of goal org.databene:maven-benerator-plugin:0.5.8:generate failed: A required class was missing while executing org.databene:maven-benerator-plugin:0.5.8:generate: org/databene/commons/CollectionUtil
-----------------------------------------------------
realm = plugin>org.databene:maven-benerator-plugin:0.5.8
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] = file:/C:/Users/B.REDOUANE/.m2/repository/org/databene/maven-benerator-plugin/0.5.8/maven-benerator-plugin-0.5.8.jar
urls[1] = file:/C:/Users/B.REDOUANE/.m2/repository/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar
urls[2] = file:/C:/Users/B.REDOUANE/.m2/repository/org/databene/databene-benerator/0.5.8/databene-benerator-0.5.8.jar
urls[3] = file:/C:/Users/B.REDOUANE/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[maven.api, parent: null]]
-----------------------------------------------------: org.databene.commons.CollectionUtil
-> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException |
Merci