2017-04-10 27 views
1

我在linux centOS7服務器上安裝了sonarqube 5.6.6。 安裝似乎是確定的,因爲我可以在95.xx.xx.xx訪問Web界面:9000sonarqube maven(連接到maven服務器的錯誤)

但是,每當我試圖從我的筆記本電腦 「MVN -X -Dmaven運行Maven。 test.skip =真乾淨驗證聲納:聲納」 我得到這個錯誤: 無法從服務器獲取引導指數:無法連接到/95.xx.xx.xx:9000:連接被拒絕:連接

爲什麼無法連接和檢索索引? 當我從我的瀏覽器嘗試去http://95.xx.xx.xx:9000/batch/index 它返回這一行: 聲納掃描引擎陰影-5.6.6.jar | d8869f7e1501c7163b7cfbec9ed6ff1d

因此,我不明白爲什麼Maven的無法訪問網址。

THX很多, 問候

---------我貼我的pom.xml這裏下面:---------

<?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> 
    <packaging>war</packaging> 
    <artifactId>reply-webseed-angular2</artifactId> 
    <version>1.0</version> 

    <parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.3.2.RELEASE</version> 
    </parent> 

    <properties> 
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
     <java.version>1.8</java.version> 
    </properties> 

    <dependencies> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-web</artifactId> 
     <!-- <exclusions> 
       <exclusion> 
        <groupId>org.springframework.boot</groupId> 
        <artifactId>spring-boot-starter-tomcat</artifactId> 
       </exclusion> 
     </exclusions> --> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-security</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-cache</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-test</artifactId> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-test</artifactId> 
      <scope>test</scope> 
     </dependency> 

     <dependency> 
      <groupId>commons-codec</groupId> 
      <artifactId>commons-codec</artifactId> 
      <version>1.4</version> 
     </dependency> 
     <!-- JWT --> 
     <dependency> 
      <groupId>com.nimbusds</groupId> 
      <artifactId>nimbus-jose-jwt</artifactId> 
      <version>4.12</version> 
     </dependency> 
     <dependency> 
      <groupId>joda-time</groupId> 
      <artifactId>joda-time</artifactId> 
      <version>2.9.2</version> 
     </dependency> 
     <dependency> 
      <groupId>org.powermock</groupId> 
      <artifactId>powermock-core</artifactId> 
      <version>1.6.4</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.powermock</groupId> 
      <artifactId>powermock-module-junit4</artifactId> 
      <version>1.6.4</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.powermock</groupId> 
      <artifactId>powermock-api-mockito</artifactId> 
      <version>1.6.4</version> 
      <scope>test</scope> 
     </dependency> 

     <dependency> 
      <groupId>com.github.cage</groupId> 
      <artifactId>cage</artifactId> 
      <version>1.0</version> 
     </dependency> 

     <dependency> 
      <groupId>org.postgresql</groupId> 
      <artifactId>postgresql</artifactId> 
      <version>9.4.1212.jre7</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-jdbc</artifactId> 
     </dependency> 

     <dependency> 
      <groupId>javax.mail</groupId> 
      <artifactId>mail</artifactId> 
      <version>1.4.7</version> 
     </dependency> 

     <dependency> 
      <groupId>javax.mail</groupId> 
      <artifactId>javax.mail-api</artifactId> 
     </dependency> 


     <dependency> 
      <groupId>javax.servlet</groupId> 
      <artifactId>javax.servlet-api</artifactId> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>jstl</groupId> 
      <artifactId>jstl</artifactId> 
      <version>1.2</version> 
     </dependency> 
     <dependency> 
      <groupId>taglibs</groupId> 
      <artifactId>standard</artifactId> 
      <version>1.1.2</version> 
     </dependency> 

    </dependencies> 

    <profiles> 
     <profile> 
      <id>dev</id> 
      <activation> 
       <activeByDefault>true</activeByDefault> 
      </activation> 
      <build> 
       <plugins> 
        <plugin> 
         <groupId>org.codehaus.mojo</groupId> 
         <artifactId>exec-maven-plugin</artifactId> 
         <executions> 
          <execution> 
           <id>exec-npm-install</id> 
           <phase>generate-sources</phase> 
           <configuration> 
            <workingDirectory>${project.basedir}/src/main/webapp</workingDirectory> 
            <executable>npm</executable> 
            <arguments> 
             <argument>install</argument> 
            </arguments> 
           </configuration> 
           <goals> 
            <goal>exec</goal> 
           </goals> 

          </execution> 
          <execution> 
           <id>exec-npm-run-tsc</id> 
           <phase>generate-sources</phase> 
           <configuration> 
            <workingDirectory>${project.basedir}/src/main/webapp</workingDirectory> 
            <executable>npm</executable> 
            <arguments> 
             <argument>run</argument> 
             <argument>build</argument> 
            </arguments> 
           </configuration> 
           <goals> 
            <goal>exec</goal> 
           </goals> 
          </execution> 
         </executions> 
        </plugin> 

        <plugin> 
         <!-- <groupId>org.sonarsource.scanner.maven</groupId> 
         <artifactId>sonar-maven-plugin</artifactId>--> 
         <groupId>org.codehaus.mojo</groupId> 
         <artifactId>sonar-maven-plugin</artifactId> 
        </plugin> 

       </plugins> 
      </build> 
     </profile> 
     <profile> 
      <id>travis</id> 
      <build> 
       <plugins> 
        <plugin> 
         <groupId>org.springframework.boot</groupId> 
         <artifactId>spring-boot-maven-plugin</artifactId> 
        </plugin> 
       </plugins> 
      </build> 
     </profile> 
     <profile> 
      <id>sonar</id> 
      <activation> 
       <activeByDefault>true</activeByDefault> 
      </activation> 
      <properties> 
       <sonar.host.url>http://95.xx.xx.xx:9000/</sonar.host.url> 
      </properties> 
     </profile> 
    </profiles> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
      </plugin> 
     <!-- <plugin> 
       <artifactId>maven-war-plugin</artifactId> 
       <version>2.6</version> 

      </plugin>--> 
     </plugins> 

     <pluginManagement> 
      <plugins> 
       <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> 
       <plugin> 
        <groupId>org.eclipse.m2e</groupId> 
        <artifactId>lifecycle-mapping</artifactId> 
        <version>1.0.0</version> 
        <configuration> 
         <lifecycleMappingMetadata> 
          <pluginExecutions> 
           <pluginExecution> 
            <pluginExecutionFilter> 
             <groupId> 
              org.codehaus.mojo 
             </groupId> 
             <artifactId> 
              exec-maven-plugin 
             </artifactId> 
             <versionRange> 
              [1.3.2,) 
             </versionRange> 
             <goals> 
              <goal>exec</goal> 
             </goals> 
            </pluginExecutionFilter> 
            <action> 
             <execute/> 
             <!-- <ignore></ignore> --> 
            </action> 
           </pluginExecution> 
          </pluginExecutions> 
         </lifecycleMappingMetadata> 
        </configuration> 
       </plugin> 
      </plugins> 
     </pluginManagement> 
    </build> 



</project> 

回答