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 项目spring swagger wordnik客户端的分发管理中缺少站点信息_Maven_Https_Ssl Certificate - Fatal编程技术网

Maven 项目spring swagger wordnik客户端的分发管理中缺少站点信息

Maven 项目spring swagger wordnik客户端的分发管理中缺少站点信息,maven,https,ssl-certificate,Maven,Https,Ssl Certificate,我正在尝试为我的一个项目创建一个Maven存储库 我的项目的pom.xml文件中的相关行是: <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://m

我正在尝试为我的一个项目创建一个Maven存储库

我的项目的
pom.xml
文件中的相关行是:

<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>edu.mills.cs180a</groupId>
    <artifactId>spring-swagger-wordnik-client</artifactId>
    <packaging>jar</packaging>
    <name>spring-swagger-wordnik-client</name>
    <version>0.0.2A-SNAPSHOT</version>
...
  <distributionManagement>
    <repository>
      <id>CS180A site</id>
      <url>file:///C:/Users/ellen/Dropbox/Apps/site44/www.spertus.com/cs180a</url>
    </repository>
  </distributionManagement>
...
  <build> 
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.7.1</version>
      </plugin>
    ...
    </plugins>
</project>
除此之外,分销管理还应该做些什么

  <distributionManagement>
    <repository>
      <id>CS180A site</id>
      <url>file:///C:/Users/ellen/Dropbox/Apps/site44/www.spertus.com/cs180a</url>
    </repository>
  </distributionManagement>

CS180A站点
file:///C:/Users/ellen/Dropbox/Apps/site44/www.spertus.com/cs180a

查看您的配置,您需要在distributionManagement中添加元素,如下所述:。

似乎无法解决依赖关系。在pom.xml(或任何可传递的依赖项)中,有如下依赖项:edu.mills.cs180a.wordui:wordui,但此资源不存在。你的依赖是正确的吗?注意:此下载使用的是http而不是https。@lquitadamo感谢您的评论。我意识到问题出在创建网站上,并重写了我的问题。在tag distributionManagement中,您必须定义标签,如下所述:。你能试着设置站点元素吗?@lquitadamo谢谢!成功了。我很困惑,我需要一个
标签和一个
标签具有相同的内容。你愿意回答我可以接受的问题吗?我也很乐意给你赏金,谢谢。我发现我需要添加相同的和标签。
 Missing site information in the distribution management of the project spring-swagger-wordnik-client
  <distributionManagement>
    <repository>
      <id>CS180A site</id>
      <url>file:///C:/Users/ellen/Dropbox/Apps/site44/www.spertus.com/cs180a</url>
    </repository>
  </distributionManagement>