[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tycho-user] How to use "wrapAsBundle"
|
Hi all,
in my parent pom (packaging-type=pom) I've created a dependencies
section as follows:
<dependencies>
<!--
https://mvnrepository.com/artifact/jakarta.mail/jakarta.mail-api -->
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
The build section contains the following:
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<pomDependencies>wrapAsBundle</pomDependencies>
</configuration>
</plugin>
Now I thought that I can use a bundle named "jakarta.mail" in MANIFEST
file in my (sub) project. But Eclipse as well as Maven itself couldn't
solve that dependency as a bundle (sub project is pomless, but even with
a pom.xml it doesn't work). The dependency was loaded correctly from
Maven Repository (I can see it in the Maven dependencies node in my
project). What should I do to use this mechanics in the right direction?
I've also checked the Tycho demo projects and it seems to be the same
approach as I'd chosen. Any hints are welcome.
Regards,
Ralf.