3
在一些由Maven構建的與OSGi和OSGi容器Felix相關的項目中,有一個名爲felix.xml的文件。這個文件有什麼好處?felix.xml的用途是什麼?
其內容大多是這樣的:
<?xml version="1.0" encoding="UTF-8"?>
<assembly>
<id>all</id>
<formats>
<format>zip</format>
</formats>
<dependencySets>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>modules</outputDirectory>
<excludes>
<exclude>org.apache.felix:org.apache.felix.main</exclude>
</excludes>
</dependencySet>
</dependencySets>
<files>
<file>
<source>${project.build.directory}/${project.build.finalName}.jar</source>
<outputDirectory>modules</outputDirectory>
</file>
<file>
<source>${project.build.directory}/felix.jar</source>
<outputDirectory>bin</outputDirectory>
</file>
<file>
<source>${project.build.directory}/config.properties</source>
<outputDirectory>conf</outputDirectory>
</file>
</files>
</assembly>
謝謝,由netbeans創建的那些xml文件沒有太多關於它們的文檔。 – eduardohl