Skip to main content

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

As explained in [1], "It is not possible to mix pom-first and
manifest-first projects in the same reactor build". You need to build
pom-first projects separately, before manifest-first projects will be
able to resolve dependencies on pom-first projects.


[1] https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts

--
Regards,
Igor

On 12-01-24 9:17 AM, Michael Gruebsch wrote:
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

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top