pom.xml出现问题

xiehanwei 2014-01-25 11:04:16
在一台电脑上好用 在另一台电脑上就不好用了
我的项目是maven + tomcat
在我的电脑上需要通过pom.xml加载maven库 但是一直无法下载
在最上面的第一行<?xml version="1.0" encoding="UTF-8"?>报错:
Project build error: Non-resolvable parent POM: Could not find artifact weixin:weixin:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM


...全文
41131 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_34164868 2016-07-26
  • 打赏
  • 举报
回复
使用<relativePath>父pom相当地址</relativePath>
qq_34164868 2016-07-26
  • 打赏
  • 举报
回复
引用 9 楼 ChenQin091017 的回复:
引用 8 楼 dafeizi 的回复:
结果解决了吗?
你也出现相同的问题么?问题解决了没?如果解决掉了,麻烦告诉我方法,谢谢。
详见http://www.iteye.com/problems/87931
CUBE_TECH 2016-07-11
  • 打赏
  • 举报
回复
引用 8 楼 dafeizi 的回复:
结果解决了吗?
你也出现相同的问题么?问题解决了没?如果解决掉了,麻烦告诉我方法,谢谢。
dafeizi 2015-04-08
  • 打赏
  • 举报
回复
结果解决了吗?
hanfeng_st 2014-01-27
  • 打赏
  • 举报
回复
<parent> <artifactId>weixin</artifactId> <groupId>weixin</groupId> <version>0.0.1-SNAPSHOT</version> </parent> 看看指定仓库里有没有 weixin-0.0.1.pom 文件 没有的话,weixin工程没有install成功
李保强 2014-01-27
  • 打赏
  • 举报
回复
没有父项目或者父项目的坐标不正确。看看是不是父项目的名字或者版本号不对应。
Lsheep 2014-01-26
  • 打赏
  • 举报
回复
没有找到parent pom 1,看看这个parent pom坐标写的对不对 2,看看指定仓库里有没有这个pom
xiehanwei 2014-01-25
  • 打赏
  • 举报
回复
错误信息如下 [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project weixin:manager:0.0.1-SNAPSHOT (D:\work\manage\pom.xml) has 1 error [ERROR] Non-resolvable parent POM: Could not find artifact weixin:weixin:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
xiehanwei 2014-01-25
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="UTF-8"?>
<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>
    <parent>
        <artifactId>weixin</artifactId>
        <groupId>weixin</groupId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    
    

    <artifactId>manager</artifactId>
    <packaging>war</packaging>
    <name>manager</name>

    <properties>
        <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>6.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.4.3</version>
</dependency>
        <!-- 
        <dependency>
        	<groupId>javax.servlet</groupId>
        	<artifactId>servlet-api</artifactId>
        	<version>3.0-alpha-1</version>
        	<scope>provided</scope>
        </dependency>
         -->
        <dependency>
        	<groupId>org.apache.commons</groupId>
        	<artifactId>commons-lang3</artifactId>
        	<version>3.1</version>
        </dependency>
        <dependency>
        	<groupId>commons-httpclient</groupId>
        	<artifactId>commons-httpclient</artifactId>
        	<version>20020423</version>
        </dependency>
        <dependency>
        	<groupId>org.apache.httpcomponents</groupId>
        	<artifactId>httpclient</artifactId>
        	<version>4.2.3</version>
        </dependency>
        <dependency>
        	<groupId>org.springframework</groupId>
        	<artifactId>spring-webmvc</artifactId>
        	<version>3.1.4.RELEASE</version>
        </dependency>
		<dependency>
			<groupId>org.codehaus.jackson</groupId>
			<artifactId>jackson-mapper-asl</artifactId>
			<version>1.9.13</version>
		</dependency>
		<dependency>
			<groupId>dom4j</groupId>
			<artifactId>dom4j</artifactId>
			<version>1.6.1</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.data</groupId>
			<artifactId>spring-data-jpa</artifactId>
			<version>1.4.2.RELEASE</version>
		</dependency>
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>fastjson</artifactId>
			<version>1.1.36</version>
		</dependency>
		<dependency>
			<groupId>org.apache.stanbol</groupId>
			<artifactId>
				org.apache.stanbol.enhancer.engines.paoding.token
			</artifactId>
			<version>0.10.0</version>
		</dependency>
		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
			<version>5.1.26</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-entitymanager</artifactId>
			<version>4.1.7.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-core</artifactId>
			<version>4.1.6.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-validator</artifactId>
			<version>4.2.0.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate.common</groupId>
			<artifactId>hibernate-commons-annotations</artifactId>
			<version>4.0.1.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate.javax.persistence</groupId>
			<artifactId>hibernate-jpa-2.0-api</artifactId>
			<version>1.0.1.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-envers</artifactId>
			<version>4.1.0.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-infinispan</artifactId>
			<version>4.1.0.Final</version>
		</dependency>
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-ehcache</artifactId>
			<version>4.2.3.Final</version>
		</dependency>
		<dependency>
			<groupId>cglib</groupId>
			<artifactId>cglib-nodep</artifactId>
			<version>2.2</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>1.7.5</version>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
			<version>1.2</version>
		</dependency>
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>1.2</version>
		</dependency>
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.4</version>
		</dependency>
    </dependencies>

    <build>
        <plugins>
           <plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>tomcat-maven-plugin</artifactId>
				<configuration>
					<port>80</port>
					<url>http://192.168.1.172:80/manager</url>
					<path>/wx</path>
					<server>tomcat6</server>
					<uriEncoding>UTF-8</uriEncoding>
				</configuration>
			</plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                    <compilerArguments>
                        <endorseddirs>${endorsed.dir}</endorseddirs>
                    </compilerArguments>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
 
xiehanwei 2014-01-25
  • 打赏
  • 举报
回复
好像是需要手动导入什么东西 然后就可以读取了

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧