Fixed  ;)
The solution comes with the <Export-Package>, it was needed to export all 
packages mentionned "!! name_package,version=0.0.0 from -- Cannot be resolved"
I have also deleted the <DynamicImport-Package>*</DynamicImport-Package> and 
modified the Import-Package adding resolution:=optional

If it can help, here the pom.xml to see differences between the last one and 
those that works:

<project xmlns="http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.tb</groupId>
    <artifactId>postHandler</artifactId>
    <packaging>bundle</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>Tibtec TB Post Handler</name>
    <url>http://www.tibtec.org</url>

    <properties>
        <maven.test.skip>true</maven.test.skip>
        <file.encoding>utf-8</file.encoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <version>1.0-alpha-3</version>
                <executions>
                    <execution>
                        <id>enforce-java</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <configuration>
                            <rules>
                                <requireMavenVersion>
                                    <message>
                                        Project must be built with Maven 2.0.7 
or higher
                                    </message>
                                    <version>2.0.7</version>
                                </requireMavenVersion>
                                <requireJavaVersion>
                                    <message>
                                        Project must be compiled with Java 5 or 
higher
                                    </message>
                                    <version>1.5.0</version>
                                </requireJavaVersion>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
                <version>1.0.4</version>
                <executions>
                    <execution>
                        <id>generate-scr-scrdescriptor</id>
                        <goals>
                            <goal>scr</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Private-Package>org.tb.postHandler.*</Private-Package>
                        <Export-Package>
                            org.apache.jackrabbit.*,
                            
org.apache.xerces.parsers,org.apache.xerces.xni,org.apache.xerces.xni.parser,
                            org.cyberneko.html,
                            
org.pdfbox.pdfparser,org.pdfbox.pdmodel,org.pdfbox.util,
                            
org.apache.lucene.analysis,org.apache.lucene.analysis.standard,org.apache.lucene.document,
 
org.apache.lucene.index,org.apache.lucene.queryParser,org.apache.lucene.search, 
org.apache.lucene.store,org.apache.lucene.util,
                            
org.apache.poi.hslf.extractor,org.apache.poi.hssf.extractor,org.apache.poi.hwpf.extractor,
 
org.apache.poi.hsmf,org.apache.poi.poifs.eventfilesystem,org.apache.poi.poifs.filesystem,
                            EDU.oswego.cs.dl.util.concurrent
                        </Export-Package>
                        <Import-Package>*;resolution:=optional</Import-Package>
                    </instructions>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-sling-plugin</artifactId>
                <version>2.0.3-incubator-SNAPSHOT</version>
                <executions>
                    <execution>
                        <id>install-bundle</id>
                        <goals>
                            <goal>install</goal>
                        </goals>
                        <configuration>
                            ...
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
            <version>1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.api</artifactId>
            <version>2.0.3-incubator-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.servlets.post</artifactId>
            <version>2.0.3-incubator-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-api</artifactId>
            <version>1.6-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-core</artifactId>
            <version>1.6-SNAPSHOT</version>
        </dependency> 
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.5.3</version>
        </dependency>
    </dependencies>

    <repositories>
        ...       
    </repositories>
    <pluginRepositories>
        ...
    </pluginRepositories>
</project>

                                          
_________________________________________________________________
Nouveau Windows 7 : Simplifiez votre PC ! Trouvez le PC qui vous convient.
http://clk.atdmt.com/FRM/go/181574580/direct/01/

Reply via email to