[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Bundles with internal jars
|
There are couple of ways to do this.
As explained by others, you can manage bundle manifest and
build.properties by hand, but use maven-dependency-plugin to pull actual
jars during generate-resources build lifecycle phase.
You can also use maven-bundle-plugin with <Embed-Dependency> instruction
to both download the jars and generate bundle manifest for the project.
Although this won't be a "Tycho" project, you still will be able to
reference it from Tycho projects as explained in [1]
[1]
https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts
--
Regards,
Igor
On 11-05-13 07:02 AM, Joerg Erdmenger wrote:
Maybe I wasn't clear enough: what I'd like to achieve is the following:
I have a bundle project which -let's say - has a libs folder and adds
those libs to its Bundle-ClassPath. Now ideally I'd like to have these
libs managed by maven and have them packaged in the final build artefact.
Jörg
2011/5/13 <jonathan.x.buck@xxxxxxxx <mailto:jonathan.x.buck@xxxxxxxx>>
In my experience you don't need to do anything specific or special to
achieve this... Tycho simply uses the eclipse files such as the Manifest
and build.properties to generate the artifacts so as long as those files
are set-up correctly and you have a pom which specifies the
packaging type
as 'eclipse-plugin' it should generate the plugin correctly...
Regards
Jon
From: Davy Meers <davymeers@xxxxxxxxxxx
<mailto:davymeers@xxxxxxxxxxx>>
To: <tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>>
Date: 13/05/2011 09:22
Subject: Re: [tycho-user] Bundles with internal jars
Sent by: tycho-user-bounces@xxxxxxxxxxx
<mailto:tycho-user-bounces@xxxxxxxxxxx>
Hello,
I do not have a lot of maven and tycho experience either, but the
following could be one way to achieve it:
You can use the goal "copy" of the dependency maven plugin (
http://maven.apache.org/plugins/maven-dependency-plugin/copy-mojo.html)
to
copy an artifact from the repository to a defined location.
You probably need to bind that plugin to the generate-resources
phase and
reference the location where the artifacts are copied from within your
build.properties.
Note: i do not know if eclipse / m2eclipse is able to handle this
situation.
Regards,
Davy
Date: Fri, 13 May 2011 09:54:49 +0200
From: joerge@xxxxxxxxx <mailto:joerge@xxxxxxxxx>
To: tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
Subject: [tycho-user] Bundles with internal jars
I'm new to tycho, though I have some maven experience. In my company
we are
currently evaluating moving our builds to tycho. Now we have some
bundles
that for various reasons carry some jars within them, rather then using
their classes via OSGI dependencies.
Now here is the question: would it be possible to dependeny resolve
these
jars via maven in the build alongside using tycho to drive the main OSGI
bundle build?
I've looked through the samples and searched the mailing list but
couldn't
find any pointers to any such scenario. I'd be more than happy to get a
quick indication whether something like this is at all possible or
whether
something like this is deemed so silly as to avoid it under all
circumstances.
Thanks in advance
Jörg
_______________________________________________ tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/tycho-user
-----------------------------------------
SAVE PAPER - THINK BEFORE YOU PRINT!
This E-mail is confidential.
It may also be legally privileged. If you are not the addressee you
may not copy, forward, disclose or use any part of it. If you have
received this message in error, please delete it and all copies
from your system and notify the sender immediately by return
E-mail.
Internet communications cannot be guaranteed to be timely secure,
error or virus-free. The sender does not accept liability for any
errors or omissions.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto: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