Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Include/Weave 3rd party Jar (updated)
Include/Weave 3rd party Jar (updated) [message #1728435] Mon, 04 April 2016 11:01
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
My Classes are based on EMF (therefore the root/parent class is EMF's root class: EObjectImpl. this Class does not get processed by staticweaving using my script (as it is in another jar - as it is a library, not my own code...)

how can i specify to include this jar to the weave task as there is (obviously) no persistence.xml in the jar file.

my maven pom.xml is
<build>
	<plugins>
		<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>FINE</logLevel>
					</configuration>
				</execution>
			</executions>
			<dependencies>
				<dependency>
					<groupId>org.eclipse.persistence</groupId>
					<artifactId>org.eclipse.persistence.jpa</artifactId>
					<version>2.6.2</version>
				</dependency>
			</dependencies>
		</plugin>
	</plugins>
</build>


and the output generates woven classes with
super._persistence_set(paramString, paramObject);
and so on, but as the super class did not get woven, the generated files are completely useless!

UPDATE: my 'Solution' was to include the 3rd party libary as source and compile it myself.

[Updated on: Wed, 06 April 2016 07:28]

Report message to a moderator

Previous Topic:deleted
Next Topic:NoSuchMethodError _persistence_set(Ljava/lang/String;Ljava/lang/Object;)V
Goto Forum:
  


Current Time: Thu Apr 25 03:41:06 GMT 2024

Powered by FUDForum. Page generated in 0.02605 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top