On Fri, Aug 20, 2010 at 5:38 PM, Justin Edelson <justinedel...@gmail.com> wrote:
> On 8/20/10 11:32 AM, motes motes wrote:
>> Is it possible in a maven submodule pom file to specify that it should
>> build a normal artifact jar and a felix bundle during the packaging
>> phase?
> I don't think so, but it certainly is possible by setting a classifier.
>
>>
>> It works fine for each case separately  (using the felix plugin for
>> the bundle case) but the problem is that the bundle version cannot be
>> used as a dependency in another pure maven module.
> Why not?

I build the maven module using Felix with:

...
 <packaging>bundle</packaging>

...
   <build>
    <plugins>
        <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>1.4.0</version>
           <extensions>true</extensions>
           <configuration>
              <instructions>
                  <Bundle-SymbolicName>com.test.bob</Bundle-SymbolicName>
                  <Bundle-Name>${pom.artifactId}</Bundle-Name>
                  <Bundle-Version>${pom.version}</Bundle-Version>
                          <Export-Package>com.test.bob.*</Export-Package>
              </instructions>
           </configuration>
        </plugin>
    </plugins>
   </build>

now when I run "mvn install" (using maven3) from the command line  it
ends up in my .m2/repositories folder which is fine. But when I add it
though the dependency manager in eclipse in a pure maven project the
types in the bundle are not available.

I know this related to the m2eclipse plugin for eclipse but I would
like to be able to develop my applications in eclipse.

If I build it with:

 <packaging>jar</packaging>

but keep the Felix instructions it works fine in the maven project but
the bundle instructions are no longer present in the MANIFEST file
which I need when I use it as bundle in my PDE project.

I guess I am missing something basic here?







>
>> Thats why I want to
>> build two versions of the module.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
>> For additional commands, e-mail: users-h...@felix.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to