我開始創建一個OSGI包。所以它工作正常。但是當我把輸出目錄放在maven bundle插件的配置部分時,它不會添加任何編譯類。簡單地說,類路徑是空的。我也使用maven編譯器插件。他們互相沖突嗎?有什麼我配置錯誤的方式。這是我的pox.xml文件的構建部分。如何在maven bundle插件中提供輸出目錄
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</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>
<Export-Package>
demo.wso2.orderprocess.*
</Export-Package>
</instructions>
<outputDirectory>/home/wso2/product/wso2esb-4.9.0/repository/components/dropins</outputDirectory>
</configuration>
</plugin>
</plugins>
我還沒有試過。但這可能是一個插件http://stackoverflow.com/questions/19964391/output-directory-for-maven-bundle-plugin中的錯誤,也參考http://stackoverflow.com/questions/9943392/classpath- empty-when-adding-outputdirectory-to-pom –
Yeap我看到了。應該有辦法做到這一點。不應該? – GPrathap
可能是你可以檢查maven來源:) –