Hi Geesara,

Can you please try with the absolute path to the project.outputDirectory?
It worked for me.
As I remember, there was a problem with having spaces in the path, for
folders.
But not sure whether it was for this plugin.

Thanks.

On Tue, Nov 10, 2015 at 9:16 PM, Geesara Prathap <gees...@wso2.com> wrote:

> 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
>
>


-- 
Hareendra Chamara P h i l i p s
*Software  Engineer*
Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
chama...@wso2.com <thili...@wso2.com>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to