私はマルチモジュールプロジェクトを持っています。これは親pomです。
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.atoms</groupId>
<artifactId>atoms-parent</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<url/>
<modules>
<module>atoms-persistence</module>
<module>atoms-reglas</module>
<module>atoms-webservice</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>assemble.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</project>
プロジェクトatoms-persitenceには、次のファイルがあります。
com.atoms.vo。*
com.atoms.service。*
com.atoms.dao。*
そして、原子の中で-私が持っているreglas:
com.atoms.rules。*
アセンブリプラグインを使用して、次のクラスのみを含むjarを作成するにはどうすればよいですか。
com.atoms.vo。*およびcom.atoms.rules。*?