Thanks Marco,

That did a trick. I ended up having to build on another system since something weird ended up in my ~/.m2 from my first attempt.
I'll start playing around with it.

thanks,

Patrick

On 6/8/12 12:33 AM, Marco Di Sabatino Di Diodoro wrote:
Hi Patrick


On Jun 8, 2012, at 1:06 AM, Patrick Radtke wrote:

Hi,

I'm new to syncope and trying to follow

https://cwiki.apache.org/confluence/display/SYNCOPE/Create+a+new+Syncope+project

I've run into two issues:

1. The generated pom.xml file has the wrong parent pom version
(1.0.0-incubating-SNAPSHOT vs 1.0.0-RC1-incubating).
That was easy to work around.

There are an open issue for this problem SYNCOPE-92
(https://issues.apache.org/jira/browse/SYNCOPE-92)


The next issue I am stuck on.

2. I run 'mvn package' and I get an error with the openjpa enhancer.
I've pasted maven's output below. Anyone have any ideas?

You must set the correct property version in the pom.xml:
<syncope.version>1.0.0-RC1-incubating</syncope.version>


This morning we resolve the SYNCOPE-92 issue and you never have to
change the pom.

Regards
M

I'm running
#mvn -v
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: /Users/pradtke/springsource-292/apache-maven-3.0.3
Java version: 1.6.0_31, vendor: Apple Inc.
Java home:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"




[INFO] Reactor Summary:
[INFO]
[INFO] Apache Syncope sample project ..................... SUCCESS
[4.024s]
[INFO] Apache Syncope sample project core ................ FAILURE
[1.935s]
[INFO] Apache Syncope sample project console ............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.491s
[INFO] Finished at: Thu Jun 07 15:53:52 PDT 2012
[INFO] Final Memory: 10M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance (enhancer) on
project core: Execution enhancer of goal
org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance failed: An API
incompatibility was encountered while executing
org.apache.openjpa:openjpa-maven-plugin:2.2.0:enhance:
java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.openjpa:openjpa-maven-plugin:2.2.0
[ERROR] strategy =
org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/Users/pradtke/.m2/repository/org/apache/openjpa/openjpa-maven-plugin/2.2.0/openjpa-maven-plugin-2.2.0.jar
[ERROR] urls[1] =
file:/Users/pradtke/.m2/repository/com/h2database/h2/1.3.166/h2-1.3.166.jar
[ERROR] urls[2] =
file:/Users/pradtke/.m2/repository/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar
[ERROR] urls[3] =
file:/Users/pradtke/.m2/repository/ch/qos/logback/logback-core/1.0.2/logback-core-1.0.2.jar
[ERROR] urls[4] =
file:/Users/pradtke/.m2/repository/ch/qos/logback/logback-classic/1.0.2/logback-classic-1.0.2.jar
[ERROR] urls[5] =
file:/Users/pradtke/.m2/repository/org/slf4j/jcl-over-slf4j/1.6.4/jcl-over-slf4j-1.6.4.jar
[ERROR] urls[6] =
file:/Users/pradtke/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
[ERROR] urls[7] =
file:/Users/pradtke/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.7/plexus-utils-1.5.7.jar
[ERROR] urls[8] =
file:/Users/pradtke/.m2/repository/org/apache/openjpa/openjpa-kernel/2.2.0/openjpa-kernel-2.2.0.jar
[ERROR] urls[9] =
file:/Users/pradtke/.m2/repository/org/apache/openjpa/openjpa-lib/2.2.0/openjpa-lib-2.2.0.jar
[ERROR] urls[10] =
file:/Users/pradtke/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
[ERROR] urls[11] =
file:/Users/pradtke/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[12] =
file:/Users/pradtke/.m2/repository/net/sourceforge/serp/serp/1.13.1/serp-1.13.1.jar
[ERROR] urls[13] =
file:/Users/pradtke/.m2/repository/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar
[ERROR] urls[14] =
file:/Users/pradtke/.m2/repository/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar
[ERROR] urls[15] =
file:/Users/pradtke/.m2/repository/commons-pool/commons-pool/1.5.4/commons-pool-1.5.4.jar
[ERROR] urls[16] =
file:/Users/pradtke/.m2/repository/asm/asm/3.2/asm-3.2.jar
[ERROR] urls[17] =
file:/Users/pradtke/.m2/repository/org/apache/openjpa/openjpa-jdbc/2.2.0/openjpa-jdbc-2.2.0.jar
[ERROR] urls[18] =
file:/Users/pradtke/.m2/repository/org/apache/openjpa/openjpa-persistence/2.2.0/openjpa-persistence-2.2.0.jar
[ERROR] urls[19] =
file:/Users/pradtke/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.2.0/openjpa-persistence-jdbc-2.2.0.jar
[ERROR] urls[20] =
file:/Users/pradtke/.m2/repository/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.jar
[ERROR] urls[21] =
file:/Users/pradtke/.m2/repository/org/apache/geronimo/specs/geronimo-validation_1.0_spec/1.1/geronimo-validation_1.0_spec-1.1.jar
[ERROR] urls[22] =
file:/Users/pradtke/.m2/repository/org/apache/bval/org.apache.bval.bundle/0.3-incubating/org.apache.bval.bundle-0.3-incubating.jar
[ERROR] urls[23] =
file:/Users/pradtke/.m2/repository/org/apache/bval/bval-core/0.3-incubating/bval-core-0.3-incubating.jar
[ERROR] urls[24] =
file:/Users/pradtke/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.3/commons-beanutils-core-1.8.3.jar
[ERROR] urls[25] =
file:/Users/pradtke/.m2/repository/org/apache/bval/bval-jsr303/0.3-incubating/bval-jsr303-0.3-incubating.jar
[ERROR] urls[26] =
file:/Users/pradtke/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent:
null]]
[ERROR]
[ERROR] -----------------------------------------------------: Your
system is missing product derivations. Product derivations provide
configuration options for supported data stores and specifications.
You must have a
META-INF/services/org.apache.openjpa.lib.conf.ProductDerivation file
in your classpath listing the available derivation classes, and some
listed class must be instantiable. Typically this file is bundled as
part of the distribution. Have you unbundled it, or unbundled its
listed classes? If you are using ant, a common solution to this
problem is to place the jar libraries of the OpenJPA distribution in
the ${user.home}/.ant/lib directory. Another common cause of this
problem is an overly-restrictive security manager.
[ERROR] ProductDerivations: 1
[ERROR] 1.
org.apache.openjpa.persistence.PersistenceProductDerivation:
java.lang.NoClassDefFoundError: javax/persistence/spi/PersistenceUnitInfo
[ERROR] -> [Help 1]

--

Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PPMC Member
http://people.apache.org/~mdisabatino





Reply via email to