maven war依赖war问题

我有个项目,下面2个子项目,一个core项目,一个web项目,由于core中有java代码和配置文件,而web项目也有java代码和各种web代码,web的java代码需要依赖core项目中java代码进行编译,我就不知道咋搞了。在网上搜到maven的maven-warpath-plugin插件。
我把core代码打成war包【这个已经执行成功】
然后web的pom.xml中添加
                <dependency> 
<groupId>com.hanweis.core</groupId>
<artifactId>core</artifactId>
<version>3.x-SNAPSHOT</version>
<!-- <classifier>rest</classifier> -->
<type>war</type>
</dependency>

<dependency>
    <groupId>com.hanweis.core</groupId>
<artifactId>core</artifactId>
<version>3.x-SNAPSHOT</version>
    <type>warpath</type>
</dependency>


                       <plugin>
<groupId>org.appfuse.plugins</groupId>
<artifactId>maven-warpath-plugin</artifactId>
<version>2.1.0-M1</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>add-classes</goal>
</goals>
</execution>
</executions>
</plugin>

但是编译时老是报错
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Unable to read local copy of metadata: Cannot read metadata from 'C:\Users\arthrun\.m2\repository\com\hanweis\core\core\3.x-SNAPSHOT\maven-metadata-jarvana.xml': only whitespace content allowed before start tag and not P (position: START_DOCUMENT seen P... @1:1)
  com.hanweis.core:core:warpath:3.x-SNAPSHOT


Path to dependency:
1) com.hanweis.web:web:war:3.x-SNAPSHOT
2) com.hanweis.core:core:warpath:3.x-SNAPSHOT

请各位大神援助一下,郁闷了一个星期了,到底我哪里出错了?

猜你喜欢

转载自arthrunchenjing.iteye.com/blog/1702865