小编dip*_*pti的帖子

导入Eclipse后,Maven项目中的pom文件出错

我实际上是Maven框架的新手.我已经有了一个Maven项目.我从http://m2eclipse.sonatype.org/sites/m2e将Maven插件等安装到我的EclipseIDE中.然后我导入了我的项目并启用了依赖项,但该项目显示的错误太多.pom.xml本身显示错误.错误是

Project Build Error:unknown packaging:apk
Project Build Error:unresolvable build extension:plugin" 
Run Code Online (Sandbox Code Playgroud)

等等

我的错误区域是:

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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.nbc.cnbc.android</groupId>
<artifactId>android.domain.tests</artifactId>
<version>1.0.0</version>
<packaging>apk</packaging>

<parent>
    <groupId>com.nbc.cnbc.android</groupId>
    <artifactId>android.domain.parent</artifactId>
    <version>1.0.0</version>
    <relativePath>../android.domain.parent/pom.xml</relativePath>
</parent>

<name>android.domain.tests</name>
<url>http://maven.apache.org</url>
Run Code Online (Sandbox Code Playgroud)

可能是因为最后一行中指定的网址可能不同吗?任何想法为什么会发生这种情况?任何回复都非常感谢.非常感谢提前!!

android m2eclipse maven-plugin android-maven-plugin

13
推荐指数
1
解决办法
2万
查看次数