【发布时间】:2016-02-14 19:55:18
【问题描述】:
我想在 netbeans 中设置 duke 辅导项目。因为我有以下
配置-jdk8、netbeans 8.0.2、glassfish 4.1、apache-maven-3.3.3
我的 glassfish 目录 tut-install/examples/case-studies 中没有 duke 辅导项目,所以我下载了 java_ee_sdk-7u2.zip 并在解压缩后复制了该 duke 辅导项目并将该项目导入 netbeans 中的文件- >打开项目->
但是当我去构建和运行项目时,我得到了以下错误
[ERROR] Some problems were encountered while processing the POMs:
Non-resolvable parent POM for org.glassfish.javaeetutorial:dukes-tutoring:[unknown-version]: Failure to find org.glassfish.javaeetutorial:case-studies:pom:7.0.5 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 13
@
The build could not read 1 project -> [Help 1]
The project org.glassfish.javaeetutorial:dukes-tutoring:[unknown-version] (/home/yogesh/Downloads/dukes-tutoring/pom.xml) has 1 error
Non-resolvable parent POM for org.glassfish.javaeetutorial:dukes-tutoring:[unknown-version]: Failure to find org.glassfish.javaeetutorial:case-studies:pom:7.0.5 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> [Help 2]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
我的 pom 结构
<?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>case-studies</artifactId>
<groupId>org.glassfish.javaeetutorial</groupId>
<version>7.0.5</version>
</parent>
<groupId>org.glassfish.javaeetutorial</groupId>
<artifactId>dukes-tutoring</artifactId>
<packaging>pom</packaging>
<name>dukes-tutoring</name>
<modules>
<module>dukes-tutoring-common</module>
</modules>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<skip>true</skip>
<executable>${glassfish.home}/bin/asadmin${glassfish.executables.suffix}</executable>
</configuration>
</plugin>
</plugins>
</build>
</project>
【问题讨论】:
标签: java maven netbeans glassfish java-ee-7