You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sahoo <Sa...@Sun.COM> on 2008/03/12 10:28:05 UTC
How to use maven-bundle-plugin for packaging type other than bundle or
jar
I want to use maven-bundle-plugin in a project whose packaging type is
neither jar nor bundle. Is it still possible? I configured my pom.xml
like this, but it does not work:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<supportedProjectType>hk2-jar</supportedProjectType>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
Thanks,
Sahoo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to use maven-bundle-plugin for packaging type other than
bundle or jar
Posted by Sahoo <Sa...@Sun.COM>.
Stuart McCulloch wrote:
> Sahoo wrote:
>> Thank you, Stefan. That was it. It was my lack of knowledge of how to
>> set List type of properties in pom.xml. I wish Maven could tell me
>> that there is no configuration property called supportedProjectType
>> in maven-bundle-plugin. Secondly, maven-bundle-plugin issues a DEBUG
>> message if the project type is not suitable. If I run with -X option,
>> I see a debug message that says project type is not compatible. I
>> wish it were a WARNING from maven-bundle-plugin rather than a DEBUG
>> message.
> here's a wacky suggestion: raise a change request for this on JIRA ;)
>
> http://issues.apache.org/jira/browse/FELIX/component/12311143
>
> seriously, the main drive is to fix issues reported on JIRA - if
> no-one reports anything then we typically fix things that itch us
> first...
DONE: https://issues.apache.org/jira/browse/FELIX-519
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to use maven-bundle-plugin for packaging type other than
bundle or jar
Posted by Stuart McCulloch <mc...@gmail.com>.
Sahoo wrote:
> Thank you, Stefan. That was it. It was my lack of knowledge of how to
> set List type of properties in pom.xml. I wish Maven could tell me
> that there is no configuration property called supportedProjectType in
> maven-bundle-plugin. Secondly, maven-bundle-plugin issues a DEBUG
> message if the project type is not suitable. If I run with -X option,
> I see a debug message that says project type is not compatible. I wish
> it were a WARNING from maven-bundle-plugin rather than a DEBUG message.
here's a wacky suggestion: raise a change request for this on JIRA ;)
http://issues.apache.org/jira/browse/FELIX/component/12311143
seriously, the main drive is to fix issues reported on JIRA - if
no-one reports anything then we typically fix things that itch us first...
> Thanks, again.
> Sahoo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to use maven-bundle-plugin for packaging type other than
bundle or jar
Posted by Sahoo <Sa...@Sun.COM>.
Thank you, Stefan. That was it. It was my lack of knowledge of how to
set List type of properties in pom.xml. I wish Maven could tell me that
there is no configuration property called supportedProjectType in
maven-bundle-plugin. Secondly, maven-bundle-plugin issues a DEBUG
message if the project type is not suitable. If I run with -X option, I
see a debug message that says project type is not compatible. I wish it
were a WARNING from maven-bundle-plugin rather than a DEBUG message.
Thanks, again.
Sahoo
VUB Stefan Seidel wrote:
> The doc suggests
>
> <supportedProjectTypes>jar,bundle,hk2-jar</supportedProjectTypes>
> or maybe
> <supportedProjectTypes>
> <supportedProjectType>hk2-jar</supportedProjectType>
> <supportedProjectType>jar</supportedProjectType>
> <supportedProjectType>bundle</supportedProjectType>
> </supportedProjectTypes>
>
> Stefan
>
> Sahoo wrote:
>> I want to use maven-bundle-plugin in a project whose packaging type
>> is neither jar nor bundle. Is it still possible? I configured my
>> pom.xml like this, but it does not work:
>>
>> <plugin>
>> <artifactId>maven-jar-plugin</artifactId>
>> <configuration>
>> <archive>
>>
>> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>>
>> </archive>
>> </configuration>
>> </plugin>
>> <plugin>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>maven-bundle-plugin</artifactId>
>> <configuration>
>> <supportedProjectType>hk2-jar</supportedProjectType>
>> <supportedProjectType>jar</supportedProjectType>
>> <supportedProjectType>bundle</supportedProjectType>
>> </configuration>
>> <executions>
>> <execution>
>> <id>bundle-manifest</id>
>> <phase>process-classes</phase>
>> <goals>
>> <goal>manifest</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>>
>> Thanks,
>> Sahoo
>>
>> ---------------------------------------------------------------------
>> 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
Re: How to use maven-bundle-plugin for packaging type other than
bundle or jar
Posted by VUB Stefan Seidel <ss...@vub.de>.
The doc suggests
<supportedProjectTypes>jar,bundle,hk2-jar</supportedProjectTypes>
or maybe
<supportedProjectTypes>
<supportedProjectType>hk2-jar</supportedProjectType>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
</supportedProjectTypes>
Stefan
Sahoo wrote:
> I want to use maven-bundle-plugin in a project whose packaging type is
> neither jar nor bundle. Is it still possible? I configured my pom.xml
> like this, but it does not work:
>
> <plugin>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
>
> </archive>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <configuration>
> <supportedProjectType>hk2-jar</supportedProjectType>
> <supportedProjectType>jar</supportedProjectType>
> <supportedProjectType>bundle</supportedProjectType>
> </configuration>
> <executions>
> <execution>
> <id>bundle-manifest</id>
> <phase>process-classes</phase>
> <goals>
> <goal>manifest</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
best regards,
Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel. +49 (341) 9 60 50 07
fax. +49 (341) 9 60 50 92
mail. sseidel@vub.de
web. www.vub.de
HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org