Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Multi-module project with one 3rd party pom-first module and a dependent manifest-first module

Hi,

I have a multi module project with a structure similar to the example project itp02. The difference is that there not two builds but
only one:

  parent
    bundle - POM-first bundle
    plugin - Manifest first Eclipse bundle which depends on "bundle"

Building each sub-module works fine while building the whole parent project fails:

(A) The following will succeed:

  cd itp05
  cd bundle
  mvn install
  cd ../plugin
  mvn install

The maven build in sub module plugin generates a warning:

[WARNING] The following locally built units have been used to resolve project dependencies:
[WARNING]   tycho.demo.itp05.plugin/1.0.0

Remark: the build will only succeed if the parent pom is already installed in your local repository.

(B) The build of the parent multi-module project fails

  cd itp05
  mvn install

and generates the message:

[ERROR] Cannot resolve project dependencies:
[ERROR]   Software being installed: tycho.demo.itp05.plugin 1.0.0
[ERROR]   Missing requirement: tycho.demo.itp05.plugin 1.0.0 requires 'bundle tycho.demo.itp05.bundle 1.0.0' but it could not be
found

For your reference I have attached the example project. Please note that the parent project must be installed in the local
repository for the (A) build to succeed. For that reason you have to disable the modules in itp05/pom.xml at first, to run mvn
install and to enable the modules afterwards.


Background:

I want to wrap some 3rd party libraries as Eclipse plugins and use those plugins in other plugins. I do not understand why two
separate builds are needed as in example itp02.

Thank you for your help.

Michael



Back to the top