Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PDE build fails with optional dependencies
PDE build fails with optional dependencies [message #42373] Sun, 25 January 2009 18:24 Go to next message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
I'm trying to build an RCP application that contains a couple of JUnit
tests and org.junit4 as optional dependency.

Build fails due to missing org.junit4, even if the test cases themselves
are not copied to the build folder:

[java] [eclipse.generateFeature] Some inter-plug-in dependencies
have not been satisfied.
[java] [eclipse.generateFeature] Bundle tchok.sudoku.core:
[java] [eclipse.generateFeature] Missing Constraint:
Bundle-RequiredExecutionEnvironment: JavaSE-1.5
[java] [eclipse.generateFeature] Optional plug-in
org.junit4_0.0.0 is not available.
[java] [eclipse.generateFeature] Bundle tchok.sudoku.rcp:
[java] [eclipse.generateFeature] Missing required plug-in
tchok.sudoku.core_0.0.0.

Is there a way to build the current setup without the tests or do I need
to move the tests to their own plugin (which would also be possible)?

Thanks,
Andi
Re: PDE build fails with optional dependencies [message #42411 is a reply to message #42373] Sun, 25 January 2009 18:37 Go to previous message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Update: I've tried to build with

filteredDependencyCheck=true

which should do this:

#this property indicates whether you want the set of plug-ins and
features to be considered during the build to be limited to the ones
reachable from the features / plugins being built

but ended up with a NPE:

[java]
c:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\productBuild.xml:28:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\build.xml:64:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\templates\headless-build\customTargets.xml:12:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\allElements.xml:10:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\genericTargets.xml:88:
java.lang.NullPointerException

I've read that some filteredDependencyCheck bugs are solved in 3.5-
would that be the way to go?

On 25.01.2009 19:24, Andreas Goetz wrote:
> I'm trying to build an RCP application that contains a couple of JUnit
> tests and org.junit4 as optional dependency.
>
> Build fails due to missing org.junit4, even if the test cases themselves
> are not copied to the build folder:
>
> [java] [eclipse.generateFeature] Some inter-plug-in dependencies have
> not been satisfied.
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.core:
> [java] [eclipse.generateFeature] Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.5
> [java] [eclipse.generateFeature] Optional plug-in org.junit4_0.0.0 is
> not available.
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.rcp:
> [java] [eclipse.generateFeature] Missing required plug-in
> tchok.sudoku.core_0.0.0.
>
> Is there a way to build the current setup without the tests or do I need
> to move the tests to their own plugin (which would also be possible)?
>
> Thanks,
> Andi
>
Re: PDE build fails with optional dependencies [message #590474 is a reply to message #42373] Sun, 25 January 2009 18:37 Go to previous message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Update: I've tried to build with

filteredDependencyCheck=true

which should do this:

#this property indicates whether you want the set of plug-ins and
features to be considered during the build to be limited to the ones
reachable from the features / plugins being built

but ended up with a NPE:

[java]
c:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\productBuild.xml:28:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\build.xml:64:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\templates\headless-build\customTargets.xml:12:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\productBuild\allElements.xml:10:
The following error occurred while executing this line:
[java]
C:\eclipse\plugins\org.eclipse.pde.build_3.4.1.R34x_v2008080 5\scripts\genericTargets.xml:88:
java.lang.NullPointerException

I've read that some filteredDependencyCheck bugs are solved in 3.5-
would that be the way to go?

On 25.01.2009 19:24, Andreas Goetz wrote:
> I'm trying to build an RCP application that contains a couple of JUnit
> tests and org.junit4 as optional dependency.
>
> Build fails due to missing org.junit4, even if the test cases themselves
> are not copied to the build folder:
>
> [java] [eclipse.generateFeature] Some inter-plug-in dependencies have
> not been satisfied.
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.core:
> [java] [eclipse.generateFeature] Missing Constraint:
> Bundle-RequiredExecutionEnvironment: JavaSE-1.5
> [java] [eclipse.generateFeature] Optional plug-in org.junit4_0.0.0 is
> not available.
> [java] [eclipse.generateFeature] Bundle tchok.sudoku.rcp:
> [java] [eclipse.generateFeature] Missing required plug-in
> tchok.sudoku.core_0.0.0.
>
> Is there a way to build the current setup without the tests or do I need
> to move the tests to their own plugin (which would also be possible)?
>
> Thanks,
> Andi
>
Previous Topic:PDE build fails with optional dependencies
Next Topic:[newbie] Accessing selected file
Goto Forum:
  


Current Time: Fri Dec 27 03:02:01 GMT 2024

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

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

Back to the top