我在提问之前搜索了论坛,但目前无法找到答案。
我安装了 Maven,并在尝试进行全新安装时遇到问题。 您将在 POM 下面找到:
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.Sopra.sourcing</groupId>
<artifactId>my-sourcing</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>my-sourcing</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>2.37.0</version>
</dependency>
</dependencies>
我得到的错误是插件org.apache.maven.plugins:maven-clean-plugin:jar:2.5丢失,没有可用的依赖信息。
当我尝试在浏览器中查看这个网址时,我什么也没得到,所以有一个大问题。 我花了一天的时间在这件事上(不是经验丰富的开发人员),这里有人知道这个问题吗?
谢谢,非常感谢任何帮助;-)
最佳答案
尝试添加此依赖项
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</dependency>
关于java - Maven全新安装失败(无法通过浏览器访问url),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20354687/