Hi all,
I am currently using OpenJPA 2.2.0-SNAPSHOT, so plugin is configured as
follows:
<plugin>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<version>2.2.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa</artifactId>
<version>2.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
</dependencies>
<configuration>
<includes>org/syncope/core/persistence/beans/**/*.class</includes>
<connectionDriverName>org.springframework.jdbc.datasource.DriverManagerDataSource</connectionDriverName>
<connectionProperties>
driverClassName=org.h2.Driver,
url=jdbc:h2:mem:syncopedb
username=sa,
password=
</connectionProperties>
</configuration>
<executions>
<execution>
<id>enhancer</id>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
</plugin>
It works fine either with openjpa:enhance and openjpa:sql but it shows
some warnings:
[INFO] --- openjpa-maven-plugin:2.2.0-SNAPSHOT:enhance (enhancer) @
syncope-core ---
Downloading:
file://${basedir}/internal-repository/org/apache/openjpa/openjpa-lib/2.2.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata
org.apache.openjpa:openjpa-lib:2.2.0-SNAPSHOT/maven-metadata.xml from/to
openjpa-internal (file://${basedir}/internal-repository): Repository
path /internal-repository does not exist, and cannot be created.
Moreover, I'd like to redirect these log messages somewhere; as far as
I've understood, it should be enough to include logback in plugin's
classpath:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
further details.
but adding it as bare <dependency> in the configuration above does not work.
Any hint?
--
Francesco Chicchiriccò
Apache Cocoon Committer and PMC Member
http://people.apache.org/~ilgrosso/