Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to use "wrapAsBundle"

> Now I thought that I can use a bundle named "jakarta.mail"
> in MANIFEST file

The name of the bundle is generated and printed out in the build-logs, but import-package is the recommended way to use such wrapped bundles.

> But Eclipse [..] couldn't solve that dependency as a bundle

Eclipse doesn't understand tycho wrapped maven dependencies, if you like to use them in tycho+ide you should use a "Maven Target Location" instead see

https://läubisoft.gmbh/en/articles/using-maven-artifacts-in-pde-rcp-and-tycho-builds/


Am 20.05.21 um 02:13 schrieb Ralf Heydenreich via tycho-user:
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.



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user



Back to the top