Handler Sample pom file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Handler Sample pom file

Rodolfo Rieckhof
Hello i have 3 question to the pom file form the Handler sample.
1) Fist  of all, why do the dependencies don't have any version and why so many. All off them aren't use  in the handler, don't they? :

....
<dependencies>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.registry.core</artifactId>
        </dependency>
        <!-- Junit testing environment-->
        <dependency>
            <groupId>org.wso2.commons</groupId>
            <artifactId>authenticator</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
        </dependency>
....

2) Why is abdera and common imported?  Is that standard? or only because it is a handler?
...
<plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>1.4.0</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Fragment-Host>org.wso2.carbon.registry.core</Fragment-Host>
                        <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
                        <Bundle-Name>${pom.artifactId}</Bundle-Name>
                        <Private-Package>
                            common.*,
                            org.wso2.carbon.registry.samples.handler.*,
                        </Private-Package>
                        <Import-Package>
                            org.wso2.carbon.registry.core.*,
                            !javax.xml.namespace, javax.xml.namespace; version=0.0.0, javax.servlet; version=2.4.0,           javax.servlet.http; version=2.4.0, org.apache.axiom.*; version="${axiom.osgi.version.range}", org.apache.lucene.*,             *;resolution:=optional
                        </Import-Package>
                        <Embed-Dependency>
                            abdera-client|abdera-core|abdera-i18n|abdera-parser|abdera-server|acegi-security;scope=compile|runtime;inline=false
                        </Embed-Dependency>
                    </instructions>
                </configuration>
            </plugin>
...

3) When writing my own pom for my handler, I use also the code in 2), but when compiling, I get the following:
 [WARNING] POM for 'org.apache.lucene:lucene-core:pom:2.3.1:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.

how do i fix it?


_______________________________________________
Registry-dev mailing list
[hidden email]
https://wso2.org/cgi-bin/mailman/listinfo/registry-dev
Loading...