我的JavaScript的依賴globalmentor-core.jar添加一個圖書館,我用在另一個項目中的maven-依賴於JavaScript的轉移到Web目錄:Maven的依賴關係的插件:打開失敗,在Eclipse
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>unpack</id>
<phase>process-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.globalmentor</groupId>
<artifactId>globalmentor-core</artifactId>
<overWrite>true</overWrite>
<outputDirectory>${project.build.outputDirectory}/com/guiseframework/assets/javascript</outputDirectory>
<includes>**/*.js</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
這在命令行上非常有效。在Eclipse中使用m2eclipse的,我得到:
2/4/11 5:26:53 AM PST: Build errors for guiseframework; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack (unpack) on project guiseframework: Error unpacking file: R:\java\trunk\globalmentor-core\target\classes to: R:\java\trunk\guiseframework\target\classes\com\guiseframework\assets\javascript
org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
我能找到最接近的是http://jira.codehaus.org/browse/MDEP-187,如果有人聲稱,他們將「很快提供瑣碎補丁那是在2008年
是否有一個修復此,還是我堅持
還有一個仍未解決的錯誤:[http://jira.codehaus.org/browse/MDEP-98](http://jira.codehaus.org/browse/MDEP-98) – 2011-07-12 23:16:35
請大家:上投錯誤,這樣的maven人最終解決這個問題!順便說一下:在maven命令行上的某些情況下也會發生這種情況。 – 2011-10-05 10:06:27