Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Include maven artifact in MANIFEST first build?

Hi,

this is a solution that I have been thinking about as well. Is there any chance, I could see an example (pom) of how you generate and later access this p2 repo?

Cheers,

Anders

On Tue, May 31, 2011 at 9:30 PM, Cristiano Gavião <cvgaviao@xxxxxxxxx> wrote:
Well,
Point one: Tycho only works with bundles. You can osgify(using maven-bundle-plugin) or download them from a bundle repo (http://ebr.springsource.com/repository/app/).

Point two: Tycho doesn't resolve PDE dependencies. For that you will need to setup the workspace TargetPlatform.

For this resolution I did the following: I've created an eclipse-repository project composed by dependencies features. At those features POM's I've put maven bundle dependencies from any desired mvn repo. I don't know why yet but I need to references those bundles on the feature manifest file too.
So at building Tycho will download all bundles and put them on the generated p2 repo...

As I don't have a network and don't want to start up a web server on my notebook, then I've created a target platform definition file and I've pointed it to my generated repo using this: ${project_loc:/my-repository}/target/repository/ and set it as used target platform.

So all my building problems were resolved until now...  ;-)

cheers

Cristiano



On 31/05/11 15:47, motes motes wrote:
Looks interesting but this will only work in headless mode or if the
pom first project is checked out in the same workspace.

Typically I don't checkout source dependencies for my projects. The
only alternative (to my understanding) to resolve the pom-first
project if its not checked out in the workspace is to osgi-fy it and
put it to a p2 site eg. using the eclipse FeaturesAndBundlesPublisher.





On Mon, May 30, 2011 at 4:54 PM, Cristiano Gavião<cvgaviao@xxxxxxxxx>  wrote:
Take a look on this:
https://docs.sonatype.org/display/TYCHO/Dependency+on+pom-first+artifacts


On 30/05/11 11:44, motes motes wrote:
I think this has been up before but I will give it a shot anyway. Is
there any way to include a pure maven artifact in a MANIFEST first
build?

Currently I use felix to osgify my maven artifacts and manually add
them to a target platform. But maybe there is a simpler approach where
a maven artifact is simply included during the build of the manifest
first build?
_______________________________________________
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

_______________________________________________
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



--
Anders Hessellund 
www.itu.dk/people/hessellund/

Back to the top