私は ejb をパッケージ化しており、依存関係からいくつかの .classes を jar に含める必要があります。maven-dependency-pluginを使用してアーティファクトをアンパックし、ファイルを${project.build.directoryに配置しようとしています}/classesディレクトリをパッケージフェーズで作成しましたが、mvn パッケージを実行すると、ログや maven-dependency-plugin への参照が表示されず (何も起こりません)、プラグインの無効なバージョンを入れてみましたが、それもありません。例外をスローします。
私のpom.xmlの下
....
<packaging>ejb</packaging>
<name>myapp</name>
...repository and props
<build>
<pluginManagement>
<plugins>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>unpack</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.myapp</groupId>
<artifactId>model</artifactId>
<version>1.0.0</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<includes>**/shared/*.class</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<version>2.3</version>
<configuration>
<ejbVersion>3.0</ejbVersion>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
<dependency>
<groupId>com.myapp</groupId>
<artifactId>model</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
私は何が欠けていますか?
PS: アーティファクト モデルはローカル リポジトリにインストールされており、他のフェーズでも試しました。