Maven assembly.xml 未从 Eclipse 读取

Maven assembly.xml is not reading from Eclipse

我正在尝试使用 Maven 程序集插件构建 tar 文件,下面是相同的代码片段。当我使用 mvn install 命令从 CMD 提示符进行构建时,tar 正在生成,而它在 eclipse 中不起作用并获取以下日志。注意:- Maven 和 JDK 对这两种执行都是通用的。

pom.xml

    <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
                <descriptors>
                    <descriptor>assembly.xml</descriptor>
                </descriptors>
                <appendAssemblyId>false</appendAssemblyId>
                <tarLongFileMode>gnu</tarLongFileMode>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>                           
                        <goal>attached</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

Eclipse 控制台

[INFO] --- maven-assembly-plugin:2.2.1:attached (default) @ test ---
[INFO] Assemblies have been skipped per configuration of the skipAssembly parameter.
[INFO] 
[INFO] --- test-assembly-verifier:1.4:verify (default) @ test ---
[INFO] Skipping assembly verification.
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ test ---
[INFO] Skipping artifact installation
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

CMD 控制台

[INFO] --- maven-assembly-plugin:2.2.1:attached (default) @ test   ---
[INFO] Reading assembly descriptor: assembly.xml

看起来 maven-assembly-plugin 目标 [assembly:single] 只能是来自命令行的 运行。

http://maven.apache.org/plugins-archives/maven-assembly-plugin-2.5.5/attached-mojo.html

如有解决方法,请指教