craigday / eclipselink-staticweave-maven-plugin Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/eclipselink-staticweave-maven-plugin
Automatically exported from code.google.com/p/eclipselink-staticweave-maven-plugin
What steps will reproduce the problem?
1. Persistence.xml with no classes specified
2. Run weave and nothing happens (even with full logging)
3. Repeat with all classes explicitly listed and weave runs successfully
What is the expected output? What do you see instead?
Expect entities weaved, none are unless explicitly weaved
What version of the product are you using? On what operating system?
1.0.3 (on eclipse)
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 2 Aug 2012 at 3:43
What steps will reproduce the problem?
1. My application uses a JAR that has some classes annotated with
MappedSuperclass. Those classes are supposed to be weaved as well for the
application to work correctly.
2. Execute weaving using eclipselink-staticweave-maven-plugin
3. Execute the application
What is the expected output? What do you see instead?
The outcome are errors like "java.lang.NoSuchMethodError:
my.clazz.name._persistence_checkFetchedForSet(Ljava/lang/String;)V".
It would be interesting if there were a configuration to let the project
specify more then one source for the classes and that JARs could also be used
as source.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 4:48
What steps will reproduce the problem?
1. Upgrade eclipslink to 2.4.3 or 2.5 (there is no more 2.3.2)
What is the expected output? What do you see instead?
Running program doesn't use lazy loading, before selects console show me:
reverting the lazy setting on the onetoone or manytoone attribute
Original issue reported on code.google.com by [email protected]
on 10 Sep 2013 at 8:17
What steps will reproduce the problem?
1. execute "mvn install"
2. execute "mvn install" again without doing any changes to entity classes
What is the expected output? What do you see instead?
I expect that classes that were already weaved in a previous build are not
going to be weaved again if they were not re-compiled.
What version of the product are you using? On what operating system?
Plug-in version is 1.0.3, EclipseLink version is 2.3.2 and this is running on
Windows XP.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 2:16
What steps will reproduce the problem?
1. add the plugin declaration in pom.xml
2. save the pom.xml
3. Eclipse IDE says an error :
Plugin execution not covered by lifecycle configuration:
au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave (execution:
default, phase: process-classes)
What version of the product are you using? On what operating system?
1.0.4 with Eclipse Juno and maven 3.0.3.
My Plugin declaration is the following :
<build>
<plugin>
<artifactId>eclipselink-staticweave-maven-plugin</artifactId>
<groupId>au.com.alderaan</groupId>
<version>1.0.4</version>
<executions>
<execution> !!! The error is located here
<goals>
<goal>weave</goal>
</goals>
<phase>process-classes</phase>
<configuration>
<logLevel>ALL</logLevel>
<includeProjectClasspath>true</includeProjectClasspath>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>eclipselink</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>
</plugin>
Original issue reported on code.google.com by the.jmcnet.team
on 14 Feb 2013 at 11:32
Building Ambari from Ambari's GitHub repository (trunk) using the command mvn -DskipTests -X package
, the following error occurs. I am not familiar with your plugin so I am not sure if the problem is specifically in your plugin.
[ERROR] Failed to execute goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave (default) on project ambari-server: Execution default of goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed.: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave (default) on project ambari-server: Execution default of goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: java.lang.NullPointerException at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy (EntityManagerSetupImpl.java:2027) at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveClassTransformer.buildClassTransformers (StaticWeaveClassTransformer.java:126) at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveClassTransformer.<init> (StaticWeaveClassTransformer.java:76) at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveProcessor.process (StaticWeaveProcessor.java:249) at org.eclipse.persistence.tools.weaving.jpa.StaticWeaveProcessor.performWeaving (StaticWeaveProcessor.java:173) at au.com.alderaan.eclipselink.mojo.EclipselinkStaticWeaveMojo.execute (EclipselinkStaticWeaveMojo.java:120) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
What steps will reproduce the problem?
1. Use Java 1.8
2. run the plugin
What is the expected output? What do you see instead?
The static weaving should be done without any errors.
Stacktrace:
Execution default of goal
au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave failed: An API
incompatibility was encountered while executing
au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave:
java.lang.UnsupportedClassVersionError: .../AbstractEntity : Unsupported
major.minor version 52.0
-----------------------------------------------------
realm = plugin>au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
urls[0] =
file:/C:/Users/user/.m2/repository/au/com/alderaan/eclipselink-staticweave-maven
-plugin/1.0.4/eclipselink-staticweave-maven-plugin-1.0.4.jar
urls[1] =
file:/C:/Users/user/.m2/repository/org/eclipse/persistence/eclipselink/2.5.1/ecl
ipselink-2.5.1.jar
urls[2] =
file:/C:/Users/user/.m2/repository/org/eclipse/persistence/commonj.sdo/2.1.1/com
monj.sdo-2.1.1.jar
urls[3] =
file:/C:/Users/user/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus
-utils-1.5.1.jar
urls[4] = file:/C:/Users/user/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
urls[5] =
file:/C:/Users/user/.m2/repository/org/eclipse/persistence/javax.persistence/2.0
.0/javax.persistence-2.0.0.jar
urls[6] =
file:/C:/Development/playground/spring.data.eclipselink/target/classes/
urls[7] =
file:/C:/Users/user/.m2/repository/org/projectlombok/lombok/1.12.4/lombok-1.12.4
.jar
urls[8] =
file:/C:/Users/user/.m2/repository/com/h2database/h2/1.3.175/h2-1.3.175.jar
urls[9] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-context/4.0.0.RELE
ASE/spring-context-4.0.0.RELEASE.jar
urls[10] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-aop/4.0.0.RELEASE/
spring-aop-4.0.0.RELEASE.jar
urls[11] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-beans/4.0.0.RELEAS
E/spring-beans-4.0.0.RELEASE.jar
urls[12] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-core/4.0.0.RELEASE
/spring-core-4.0.0.RELEASE.jar
urls[13] =
file:/C:/Users/user/.m2/repository/commons-logging/commons-logging/1.1.1/commons
-logging-1.1.1.jar
urls[14] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-expression/4.0.0.R
ELEASE/spring-expression-4.0.0.RELEASE.jar
urls[15] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-orm/4.0.0.RELEASE/
spring-orm-4.0.0.RELEASE.jar
urls[16] =
file:/C:/Users/user/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.j
ar
urls[17] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-jdbc/4.0.0.RELEASE
/spring-jdbc-4.0.0.RELEASE.jar
urls[18] =
file:/C:/Users/user/.m2/repository/org/springframework/spring-tx/4.0.0.RELEASE/s
pring-tx-4.0.0.RELEASE.jar
urls[19] =
file:/C:/Users/user/.m2/repository/org/springframework/data/spring-data-jpa/1.4.
3.RELEASE/spring-data-jpa-1.4.3.RELEASE.jar
urls[20] =
file:/C:/Users/user/.m2/repository/org/springframework/data/spring-data-commons/
1.6.3.RELEASE/spring-data-commons-1.6.3.RELEASE.jar
urls[21] =
file:/C:/Users/user/.m2/repository/org/aspectj/aspectjrt/1.7.2/aspectjrt-1.7.2.j
ar
urls[22] =
file:/C:/Users/user/.m2/repository/org/slf4j/slf4j-api/1.7.1/slf4j-api-1.7.1.jar
urls[23] =
file:/C:/Users/user/.m2/repository/javax/validation/validation-api/1.1.0.Final/v
alidation-api-1.1.0.Final.jar
urls[24] =
file:/C:/Users/user/.m2/repository/org/hibernate/hibernate-entitymanager/4.3.1.F
inal/hibernate-entitymanager-4.3.1.Final.jar
urls[25] =
file:/C:/Users/user/.m2/repository/org/jboss/logging/jboss-logging/3.1.3.GA/jbos
s-logging-3.1.3.GA.jar
urls[26] =
file:/C:/Users/user/.m2/repository/org/jboss/logging/jboss-logging-annotations/1
.2.0.Beta1/jboss-logging-annotations-1.2.0.Beta1.jar
urls[27] =
file:/C:/Users/user/.m2/repository/org/hibernate/hibernate-core/4.3.1.Final/hibe
rnate-core-4.3.1.Final.jar
urls[28] = file:/C:/Users/user/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar
urls[29] =
file:/C:/Users/user/.m2/repository/org/jboss/jandex/1.1.0.Final/jandex-1.1.0.Fin
al.jar
urls[30] = file:/C:/Users/user/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
urls[31] =
file:/C:/Users/user/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
urls[32] =
file:/C:/Users/user/.m2/repository/org/hibernate/common/hibernate-commons-annota
tions/4.0.4.Final/hibernate-commons-annotations-4.0.4.Final.jar
urls[33] =
file:/C:/Users/user/.m2/repository/org/hibernate/javax/persistence/hibernate-jpa
-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar
urls[34] =
file:/C:/Users/user/.m2/repository/org/jboss/spec/javax/transaction/jboss-transa
ction-api_1.2_spec/1.0.0.Final/jboss-transaction-api_1.2_spec-1.0.0.Final.jar
urls[35] =
file:/C:/Users/user/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3
.18.1-GA.jar
urls[36] =
file:/C:/Users/user/.m2/repository/org/hibernate/hibernate-validator/5.0.2.Final
/hibernate-validator-5.0.2.Final.jar
urls[37] =
file:/C:/Users/user/.m2/repository/com/fasterxml/classmate/1.0.0/classmate-1.0.0
.jar
Number of foreign imports: 1
import: Entry[import from realm ClassRealm[maven.api, parent: null]]
-----------------------------------------------------
(au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.4:weave:default:process-classes)
What version of the product are you using? On what operating system?
1.0.4
Please provide any additional information below.
Java 8, Maven 3.1
Original issue reported on code.google.com by [email protected]
on 29 Jan 2014 at 10:14
I'm sure this is a silly question (and not a bug I know), but I have the plugin
running and I don't know if it is doing anything or not. Is there some output
from the plugin to say whether it did anything or not?
What steps will reproduce the problem?
1. add or remove plugin from pom.xml
2. mvn package
3. check entity class files
What is the expected output? What do you see instead?
I would expect the files in the target directory to be larger once weaved, but
I see exact same sizes as I do without the plugin install.
What version of the product are you using? On what operating system?
1.0.4
eclipselink 2.4.1
Please provide any additional information below.
I have eclipselink.weaving set to static, which doesn't seem to complain
whether or not I have the plugin active in the pom.xml.
[INFO] --- eclipselink-staticweave-maven-plugin:1.0.4:weave (default) @
torchlms ---
[EL Finest]: 2013-07-16
22:08:28.78--ServerSession(1361324633)--Thread(Thread[main,5,main])--Begin
predeploying Persistence Unit torchlms; session torchlms; state Initial;
factoryCount 0
[EL Finest]: 2013-07-16
22:08:28.789--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.weaving.changetracking; default value=true
[EL Finest]: 2013-07-16
22:08:28.789--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.weaving.lazy; default value=true
[EL Finest]: 2013-07-16
22:08:28.792--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.weaving.eager; default value=false
[EL Finest]: 2013-07-16
22:08:28.794--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.weaving.fetchgroups; default value=true
[EL Finest]: 2013-07-16
22:08:28.796--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.weaving.internal; default value=true
[EL Finest]: 2013-07-16
22:08:28.8--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=ecl
ipselink.multitenant.tenants-share-emf; default value=true
[EL Finest]: 2013-07-16
22:08:28.801--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.multitenant.tenants-share-cache; default value=false
[EL Finest]: 2013-07-16
22:08:28.815--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.metadata-source; default value=null
[EL Finest]: 2013-07-16
22:08:28.816--ServerSession(1361324633)--Thread(Thread[main,5,main])--property=e
clipselink.jpa.uppercase-column-names; value=true
[EL Finer]: 2013-07-16
22:08:28.817--ServerSession(1361324633)--Thread(Thread[main,5,main])--Searching
for default mapping file in file:/c:/dev/myproject/target/classes/
[EL Finer]: 2013-07-16
22:08:28.831--ServerSession(1361324633)--Thread(Thread[main,5,main])--Found a
default mapping file at file:/c:/dev/myproject/target/classes/META-INF/orm.xml
for root URL file:/c:/dev/myproject/target/classes/
[EL Finer]: 2013-07-16
22:08:29.134--ServerSession(1361324633)--Thread(Thread[main,5,main])--Searching
for default mapping file in file:/c:/dev/myproject/target/classes/
[EL Finest]: 2013-07-16
22:08:29.152--ServerSession(1361324633)--Thread(Thread[main,5,main])--End
predeploying Persistence Unit torchlms; session torchlms; state Predeployed;
factoryCount 0
[INFO]
Original issue reported on code.google.com by [email protected]
on 17 Jul 2013 at 4:35
What steps will reproduce the problem?
1. set up the plugin with the new eclipselink version 2.3.0
What is the expected output?
Just weave the entities
What do you see instead?
What version of the product are you using?
<plugin>
<artifactId>eclipselink-staticweave-maven-plugin</artifactId>
<groupId>au.com.alderaan</groupId>
<version>1.0.1</version>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>weave</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
On what operating system?
openSUSE 11.3
Please provide any additional information below.
[INFO]
[INFO] --- eclipselink-staticweave-maven-plugin:1.0.1:weave (default) @ reca ---
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/eclipselink/2.2.0/eclipsel
ink-2.2.0.pom
[WARNING] The POM for org.eclipse.persistence:eclipselink:jar:2.2.0 is missing,
no dependency information available
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/org.eclipse.persistence.jp
a/2.3.0/org.eclipse.persistence.jpa-2.3.0.jar
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/org.eclipse.persistence.as
m/2.3.0/org.eclipse.persistence.asm-2.3.0.jar
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/org.eclipse.persistence.co
re/2.3.0/org.eclipse.persistence.core-2.3.0.jar
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/org.eclipse.persistence.an
tlr/2.3.0/org.eclipse.persistence.antlr-2.3.0.jar
Downloading:
http://repo1.maven.org/maven2/org/eclipse/persistence/eclipselink/2.2.0/eclipsel
ink-2.2.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.173s
[INFO] Finished at: Wed Nov 16 15:16:48 BRT 2011
[INFO] Final Memory: 21M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.1:weave (default) on
project reca: Execution default of goal
au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.1:weave failed: Plugin
au.com.alderaan:eclipselink-staticweave-maven-plugin:1.0.1 or one of its
dependencies could not be resolved: The following artifacts could not be
resolved: org.eclipse.persistence:org.eclipse.persistence.jpa:jar:2.3.0,
org.eclipse.persistence:org.eclipse.persistence.asm:jar:2.3.0,
org.eclipse.persistence:org.eclipse.persistence.core:jar:2.3.0,
org.eclipse.persistence:org.eclipse.persistence.antlr:jar:2.3.0,
org.eclipse.persistence:eclipselink:jar:2.2.0: Could not find artifact
org.eclipse.persistence:org.eclipse.persistence.jpa:jar:2.3.0 in central
(http://repo1.maven.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
gilberto@SUGEP-DMASI:~/dev/netbeans-config/reca$
Original issue reported on code.google.com by gilbertoca
on 16 Nov 2011 at 6:15
I use eclipselink 2.6.3. And I have two classes:
@Entity
class ClassA extends ClassB{...}
@MappedSuperclass
class ClassB{...}
And I do static weaving using maven-plugin:
<plugin>
<groupId>de.empulse.eclipselink</groupId>
<artifactId>staticweave-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>weave</goal>
</goals>
<configuration>
<persistenceXMLLocation>META-INF/persistence.xml</persistenceXMLLocation>
<logLevel>ALL</logLevel>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa</artifactId>
<version>${eclipselink.version}</version>
</dependency>
</dependencies>
</plugin>
When ClassA and ClassB are in the same bundle weaving works. However, when they are in different bundles weaving doesn't work (although I added this plugin to both bundles). The developers of the plugin I use say that this plugin is heavily based of your plugin. That's why I ask this question here. Can you help me to fix this problem?
What steps will reproduce the problem?
1. I have a Maven module that contains entities and with persistence.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="databases" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jar-file>other-module1-${project.version}.jar</jar-file>
<jar-file>other-module2-${project.version}.jar</jar-file>
<properties>
<property name="eclipselink.composite-unit" value="true"/>
<property name="eclipselink.weaving" value="static"/>
</properties>
</persistence-unit>
</persistence>
2. The "databases" PU is a composite unit that contains two other PUs:
other-module1 and other-module2
3. The other modules contain only persistence.xml files that assign entities to
persistence units. No Java classes.
4. When running the weave goal, I get
FileNotFoundException:
C:\workspace\model\target\classes\other-module1-0.0.1-SNAPSHOT.jar
What is the expected output? What do you see instead?
I would like to be able to configure the location of the jar-files mentioned in
the persistence unit so that they are taken from the Maven repo / current Maven
build and not from \target\classes
What version of the product are you using? On what operating system?
Plugin v. 1.0.3, Oracle Java 7u4, Windows 7
Original issue reported on code.google.com by [email protected]
on 11 Jul 2012 at 8:35
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.