Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] adding plugins

i've already added this repository to my nexus server...i'ts working now...
in m2e, i've enabled dependeceny management, and now, when i add the following dep. to my pom:
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>${javax.persistence.version}</version>
</dependency>

m2e downloads my javax.persistence jar, and drops him inside 'Maven Dependencies' lib. same goest to postgresql driver and eclipselink jars.

now i added the 'lib' folder to my target platform, but when i try to start my app:

Caused by: java.lang.NoClassDefFoundError: org/postgresql/Driver
at br.com.german.plugin.entityManager.ECFEntityManager.init(ECFEntityManager.java:21) at br.com.german.plugin.entityManager.ECFEntityManager.createEntityManager(ECFEntityManager.java:39)
    at br.com.german.plugin.Activator.start(Activator.java:37)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
    at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
    ... 34 more

i'm using com.springsource.org.postgresql.jdbc4-8.3.604 jar
seems like eclipse doesn't recognize my libs folder or something...

my target:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.6"?>

<target name="Germantech" sequenceNumber="51">
<locations>
<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.rcp.sdk.id" version="3.7.0.I20110613-1736"/>
<repository location="http://download.eclipse.org/releases/indigo/"/>
</location>
<location path="${project_loc}/lib" type="Directory"/>
</locations>
</target>

when i try mvn clean install, tycho still can't find my libs

[INFO] Compiling 8 source files to C:\Java\workspaceRCP\br.com.german.plugin\target\classes
----------
1. ERROR in C:\Java\workspaceRCP\br.com.german.plugin\src\br\com\german\plugin\Activator.java (at line 3)
        import javax.persistence.Persistence;
               ^^^^^^^^^^^^^^^^^
The import javax.persistence cannot be resolved

but now, i feel like i'm getting the point :) things are getting clear around my head :)
i'm excited with what i'll be able to do with these things :P
thanks a lot


Back to the top