You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arnaud Vandyck <av...@gmail.com> on 2008/04/30 16:39:11 UTC
Re: OSGi project architecture (solved)
Solved by using maven-assembly-plugin, many thanks.
Le 29-avr.-08 à 16:25, Wayne Fay a écrit :
> Generally, people use the assembly plugin for things of this nature.
>
> Wayne
>
> On 4/29/08, Arnaud Vandyck <av...@gmail.com> wrote:
>> Hi all,
>>
>> I'm new to the list but I already read some documentation and the
>> list
>> archive (2008) and did not find an answer to my problem. Maybe I
>> don't know
>> where to search and I'm sorry about that!
>>
>> It's a multi-project question ;-)
>>
>> We are working on an OSGi project. I saw the maven-bundle-plugin
>> from the
>> Felix project and we are transforming our dependencies with it. We
>> deploy
>> them on a private repo.
>>
>> We have a structure like this:
>>
>> MainProject
>> +--> pom.xml
>> +--> src/site/...
>> |
>> +--> core
>> | +--> pom.xml
>> | +--> src/main/java/...
>> |
>> +--> log4j-osgi-fragment
>> | +--> src/main/resources/log4j.properties
>> |
>> \--> anotherbundle
>> +--> pom.xml
>> +--> src/main/java/...
>>
>> What we'd like is: when you "mvn package", you have something like
>> this:
>>
>> MainProject
>> +--> ...
>> |
>> \--> target
>> +--> equinoxe-X.Y.Z.jar (launcher)
>> +--> configurations
>> | +--> config.ini
>> |
>> +--> features
>> | +--> core-1.0-SNAPSHOT.jar
>> | +--> anotherbundle-1.0-SNAPSHOT.jar
>> |
>> \--> plugins
>> +--> log4j-osgi-1.2.13.jar
>>
>> Is there a plugin that can do that or do we have to consider
>> writing our own
>> plugin?
>>
>> Many thanks for your time and attention.
>>
>> PS: maven is really cool to use! :-D
>>
>> --
>> Arnaud Vandyck
>> avandyck@gmail.com
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Arnaud Vandyck
avandyck@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: OSGi project architecture (reopened)
Posted by Stuart McCulloch <st...@jayway.net>.
2008/5/16 SchneiderR <ro...@opitz-consulting.de>:
>
> Hi Arnaud,
> I have a similar concern and a few questions how you did it:
> 1.) Do you use a predefined assembly or a custom one?
> 2.) Do you somehow generate the config.ini?
>
FYI, there are two other solutions you might want to look into if you want
to have cross-framework deployment (ie. not necessarily tied to Equinox):
1) Pax-Runner, which can deploy to all the major open-source frameworks
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Runner
2) Pax-Bucket, which deploys as a bundle watches what you load/install
and then creates a single jar for distribution which includes config,
etc.
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Bucket
HTH
Thanks in advance,
> Roland
>
>
> Arnaud Vandyck-2 wrote:
> >
> > Solved by using maven-assembly-plugin, many thanks.
> >
> > ...
> >
> >>
> >> On 4/29/08, Arnaud Vandyck <av...@gmail.com> wrote:
> >>> ...
> >>>
> >>> MainProject
> >>> +--> ...
> >>> |
> >>> \--> target
> >>> +--> equinoxe-X.Y.Z.jar (launcher)
> >>> +--> configurations
> >>> | +--> config.ini
> >>> |
> >>> +--> features
> >>> | +--> core-1.0-SNAPSHOT.jar
> >>> | +--> anotherbundle-1.0-SNAPSHOT.jar
> >>> |
> >>> \--> plugins
> >>> +--> log4j-osgi-1.2.13.jar
> >>>
> >
>
> --
> View this message in context:
> http://www.nabble.com/OSGi-project-architecture-tp16961510p17271233.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Cheers, Stuart
Re: OSGi project architecture (reopened)
Posted by SchneiderR <ro...@opitz-consulting.de>.
Hi Arnaud,
I have a similar concern and a few questions how you did it:
1.) Do you use a predefined assembly or a custom one?
2.) Do you somehow generate the config.ini?
Thanks in advance,
Roland
Arnaud Vandyck-2 wrote:
>
> Solved by using maven-assembly-plugin, many thanks.
>
> ...
>
>>
>> On 4/29/08, Arnaud Vandyck <av...@gmail.com> wrote:
>>> ...
>>>
>>> MainProject
>>> +--> ...
>>> |
>>> \--> target
>>> +--> equinoxe-X.Y.Z.jar (launcher)
>>> +--> configurations
>>> | +--> config.ini
>>> |
>>> +--> features
>>> | +--> core-1.0-SNAPSHOT.jar
>>> | +--> anotherbundle-1.0-SNAPSHOT.jar
>>> |
>>> \--> plugins
>>> +--> log4j-osgi-1.2.13.jar
>>>
>
--
View this message in context: http://www.nabble.com/OSGi-project-architecture-tp16961510p17271233.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org