Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过使用Maven的替代存储库,我无法下载java项目中的一些依赖项?_Java_Maven_Proxy - Fatal编程技术网

通过使用Maven的替代存储库,我无法下载java项目中的一些依赖项?

通过使用Maven的替代存储库,我无法下载java项目中的一些依赖项?,java,maven,proxy,Java,Maven,Proxy,我正在代理服务器后面工作,我面临SSL问题。因此,我无法正确使用HTTPS,因此在Eclipse中,在maven的settings.xml文件中,我将存储库设置为“”,即HTTP,如下所示: <settings> <activeProfiles> <activeProfile>securecentral</activeProfile> </activeProfiles> <profiles> &l

我正在代理服务器后面工作,我面临SSL问题。因此,我无法正确使用HTTPS,因此在Eclipse中,在maven的settings.xml文件中,我将存储库设置为“”,即HTTP,如下所示:

<settings>
  <activeProfiles>
    <activeProfile>securecentral</activeProfile>
  </activeProfiles>
  <profiles>
    <profile>
      <id>securecentral</id>
      <repositories>
        <repository>
          <id>central</id>
          <url>http://repo1.maven.org/maven2</url>
          <releases>
            <enabled>true</enabled>
          </releases>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>central</id>
          <url>http://repo1.maven.org/maven2</url>
          <releases>
            <enabled>true</enabled>
          </releases>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</settings>


限制使用普通存储库下载的插件、库或任何东西的数量“,或者它完全相同,没有任何限制或区别,除了第一个是通过HTTP而不是HTTPS?

我希望您理解,这两个都是存储库,其中包括开发人员通过
distributionManagement上传的工件

它们在你到达的终点上是不同的

首选的是maven central,可查看


有一个有用的链接供消费者开始使用。-而共享的代码似乎很有可能会遵循这一点()

当您尝试通过
http://repo1.maven.org/maven2
?由于工件在那里可见-@nullpointer,这是一个传输失败的问题。但回到我的问题:这与插件、库等完全相同。。。。。或者第二个是标准的和更大的存储库?我希望您理解,这两个都是存储库,包括开发人员通过distributionManagement上传的工件。它们在你将到达的终点方面是不一样的,第一个是首选的maven central,这一点可以看清楚。不是maven本身可以使用的maven存储库,也与maven Central无关…@khmarbaise,nullpointer:在本例中,maven使用的默认存储库是什么。如果“mvnrepository.com”不是一个存储库,那么它是什么(你的意思是它只是一个在存储库中搜索工件的web界面)?感谢你的回复,在提供的链接中,我不理解Sonatype本质上是什么,它和ApacheMaven之间的关系是什么?你说的“端点”是指存储库本身吗?
<dependency>
    <groupId>com.twelvemonkeys.imageio</groupId>
    <artifactId>imageio-tiff</artifactId>
    <version>3.3.2</version>
</dependency>