-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: Tuesday, September 10, 2013 3:17 PM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Can tycho resolve/use felix bundled mavenartifacts?
From my experience, many projects do not provide meaningful/usable
bundle manifests (and I am not convinced this is generally possible). My
solution was to setup "wrapper" projects that take existing jar artifact
and generate bundle manifest that I need.
Having said that, I am most definitely not a maven-bundle-plugin expert
and you probably want to ask your question of that plugin's mailing list
and/or log4j mailing list.
--
Regards,
Igor
On 2013-09-10 9:04 AM, Schulz, Christian wrote:
Hello Igor,
I am facing now the problem that felix maven bundle plugin converts the
optional
Dependencies to required.
I adjusted the thirdparty example:
<Embed-Dependency>*</Embed-Dependency>
<_exportcontents>*</_exportcontents>
The log4j pom.xml contains something like:
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<!-- omit chainsaw and LF5 -->
<Export-Package>!org.apache.log4j.lf5.*,
!org.apache.log4j.chainsaw.*,
org.apache.log4j.*;version=1.2.17;-
noimport:=true</Export-Package>
<!-- all other potential imports are covered by DynamicImport-
Package earlier -->
<Import-Package>!javax.swing.*,
!com.ibm.uvm.tools.*,
!com.sun.jdmk.comm.*,
javax.jmdns.*;resolution:=optional,
javax.jms.*;resolution:=optional,
javax.mail.*;resolution:=optional,
*</Import-Package>
<Bundle-DocURL>http://logging.apache.org/log4j/1.2</Bundle-
DocURL>
</instructions>
</configuration>
After building build01, build02 fails because it can't resolve the package
com.ibm.uvm.tools.
The generated metainf.mf from thirdparty project has following entry:
Import-Package: com.ibm.uvm.tools
My solution is now to specify the import-package:
<Import-
Package>!javax.swing.*,!com.ibm.uvm.tools.*,!com.sun.jdmk.comm.*,javax.jmd
ns.*;
resolution:=optional,javax.jms.*;resolution:=optional,javax.mail.*;resolution:=o
ptional,*</Import-Package>
Is it the right way to copy them straight from the original pom file?
The last problem I am facing is that the compiler can't find some exported
classes like in the beginning.
Or is it not possible to have more than one dependency in the thirdparty
project?
Thanks for any hints.
Best Regards,
Christian Schulz
-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: Tuesday, September 10, 2013 1:04 PM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] Can tycho resolve/use felix bundled
mavenartifacts?
http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts
--
Regards,
Igor
On 2013-09-10 5:55 AM, Schulz, Christian wrote:
Hello,
I am trying touse log4j within an eclipse plugin and build it with
tycho, but I am facing
some problems.
I have searched for the right artifact and all version above 1.2.14
containsa
org.apache.felix:maven-bundle-pluginsection.So I can include it as
dependency in the
pom.xml right?
The build works fine and it resolves the artifact, but the compilation
fails.
What is wrong?
Best Regards,
Christian Schulz
This email (including any attachments) may contain confidential and/or
privileged information or information otherwise protected from disclosure.
If you are not the intended recipient, please notify the sender immediately,
do not copy this message or any attachments and do not use it for any
purpose or disclose its content to any person, but delete this message and
any attachments from your system.
Astrium disclaims any and all liability if this email transmission
was virus corrupted, altered or falsified.
----------------------------------------------------------------------------
Astrium GmbH
Vorsitzender des Aufsichtsrates: Günter Stamerjohanns
Geschäftsführung: Evert Dudok (Vorsitzender), Jens Schomburgk,
Dr. Johannes von Thadden, Thomas S. Mueller
Sitz der Gesellschaft: München -
Registergericht: Amtsgericht München, HRB Nr. 107647
Ust. Ident. Nr. /VAT reg. no. DE167015356
----------------------------------------------------------------------------
Weitere Informationen über EADS Astrium unter www.astrium.eads.net
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
This email (including any attachments) may contain confidential and/or
privileged information or information otherwise protected from disclosure.
If you are not the intended recipient, please notify the sender immediately,
do not copy this message or any attachments and do not use it for any
purpose or disclose its content to any person, but delete this message and
any attachments from your system.
Astrium disclaims any and all liability if this email transmission
was virus corrupted, altered or falsified.
----------------------------------------------------------------------------
Astrium GmbH
Vorsitzender des Aufsichtsrates: Günter Stamerjohanns
Geschäftsführung: Evert Dudok (Vorsitzender), Jens Schomburgk,
Dr. Johannes von Thadden, Thomas S. Mueller
Sitz der Gesellschaft: München -
Registergericht: Amtsgericht München, HRB Nr. 107647
Ust. Ident. Nr. /VAT reg. no. DE167015356
----------------------------------------------------------------------------
Weitere Informationen über EADS Astrium unter www.astrium.eads.net
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user