Hi All,

I started creating an OSGI bundle. So It works fine. But when I add output
directory in configuration section in maven bundle plugin, it won't add any
of compiled classes. Simply say, the classpath is empty.  Is there anything
which I configured in a wrong way.
This is the build section of pom.xml.

                           *<properties>*
*
 <project.outputDirectory>/home/wso2/products/wso2esb-
4.9.0/repository/components/dropins</project.outputDirectory>*
*                           </properties>*

*    <build>*

*        <plugins>*

*            <plugin>*

*                <artifactId>maven-compiler-plugin</artifactId>*

*                <version>3.3</version>*

*                <configuration>*

*                    <source>1.7</source>*

*                    <target>1.7</target>*

*                </configuration>*

*            </plugin>*

*            <plugin>*

*                <groupId>org.apache.felix</groupId>*

*                <artifactId>maven-bundle-plugin</artifactId>*

*                <version>1.4.0</version>*

*                <extensions>true</extensions>*

*                <configuration>*

*                    <instructions>*

*
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>*

*                        <Bundle-Name>${project.artifactId}</Bundle-Name>*

*
<Bundle-Activator>org.wso2.carbon.demo.Activator</Bundle-Activator>*

*                        <Export-Package>*

*                            org.wso2.carbon.demo.orderprocess.**

*                        </Export-Package>*

*                    </instructions>*

*
<outputDirectory>${project.outputDirectory}</outputDirectory>*

*                </configuration>*

*            </plugin>*

*        </plugins>*

*    </build>*


According to this[1]
<http://stackoverflow.com/questions/9943392/classpath-empty-when-adding-outputdirectory-to-pom>,
it is a bug in the maven bundle plugin. Is this actually a bug or something
wrong with my configuration.

1.
http://stackoverflow.com/questions/9943392/classpath-empty-when-adding-outputdirectory-to-pom

Thanks,
-- 
Geesara Prathap Kulathunga
Software Engineer
WSO2 Inc; http://wso2.com
Mobile : +940772684174
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to