私は Maven の初心者で、複数のサードパーティ ライブラリを使用して .java から .jar ファイルを作成したいと考えています。プロジェクトで使用する 32 以上のライブラリがあり、CQ5 OSGi で使用できるようにプロジェクトをコンパイルする必要があります。私はPOM.xmlにこれを持っています
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>info.hartmann.dfs</groupId>
<artifactId>dfs-connection-handler</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>DFS connection handler</name>
<build>
<sourceDirectory>C:\Users\302104\workspace\DFS\src</sourceDirectory>
<resources>
<resource>
<directory>C:\Users\302104\workspace\lib</directory>
</resource>
</resources>
<directory>C:\Users\302104\workspace\DFS\target</directory>
<finalName>dfs-connection-handler-0.0.1-SNAPSHOT</finalName>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>maven-sling-plugin</artifactId>
<executions>
<execution>
<id>install-bundle</id>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<slingUrl>http://localhost:4502/system/console</slingUrl>
<user>user</user>
<password>password</password>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
<extensions>true</extensions>
<executions>
<execution>
<id>wrap-my-dependency</id>
<goals>
<goal>wrap</goal>
</goals>
<configuration>
<wrapImportPackage>;</wrapImportPackage>
</configuration>
</execution>
</executions>
<configuration>
<instructions>
<export-package>info.hartmann.dfs</export-package>
<import-package>
java.util.List;resolution=optional,
com.emc.documentum.fs.datamodel.core.*;resolution=optional,
com.emc.documentum.fs.datamodel.core.content.*;resolution=optional,
com.emc.documentum.fs.datamodel.core.profiles.*;resolution=optional,
com.emc.documentum.fs.datamodel.core.query.*;resolution=optional,
com.emc.documentum.fs.rt.context.*;resolution=optional,
com.emc.documentum.fs.services.core.client.*;resolution=optional,
*
</import-package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</project>
この pom.xml で何をしているのかほとんどわからないので、何か助けていただければ幸いです。
ところで、次のようなマークを使用してその.javaファイルをコンパイルするにはどうすればよいですか
@Service(DfsHandler.class)
@Component(label = "DFS Connection Handler", immediate = true, metatype = true)
助けてくれてありがとう