Hi,

thanks for the report, I gonna take a look and try to reproduce.

I keep you posted.

Regards
JB

On 10/30/2012 04:43 AM, Kemix Koo wrote:
For example, simply, I just want to remove the "MavenDescriptor" in my Karaf.
I thought I can do it like this.

                        <plugin>
                                <groupId>org.apache.karaf.tooling</groupId>
                                <artifactId>features-maven-plugin</artifactId>
                                <version>2.2.9</version>
                                <executions>
                                        <execution>
                                                <id>create-kar</id>
                                                <goals>
                                                        <goal>create-kar</goal>
                                                </goals>
                                                <configuration>
                                                        <archive>
                                                                
<addMavenDescriptor>false</addMavenDescriptor>
                                                        </archive>
                                                        
<featuresFile>src/main/resources/feature/feature.xml</featuresFile>
                                                </configuration>
                                        </execution>
                                </executions>
                        </plugin>


But, it doesn't work at all. After I research the source codes for
CreateKarMojo. I found that, the "createArchive" only use a default
MavenArchiveConfiguration which set the "addMavenDescriptor" to true by
default.

So,  If I want to set other parameters for the archive in configuration, is
it a problem or bug? Maybe, it's just do it like this for some reasons? Who
can help me?

PS, I check the newest version 2.3.0 too. it's same.



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Can-t-set-the-archive-for-create-kar-in-CreateKarMojo-tp4026605.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to