2017-05-15 1 views
2

나는이 post을 java로 설정하려고 했으므로 (그 자체는 게시물 자체에 대해 언급 할 수없는 충분한 평판을 가지고 있습니다.) 모든 단계가 구현되었으며 wso2가 localhost에서 실행 중입니다.스프링이있는 wso2 구성. Maven 종속성 문제

나의 첫번째 발생한 문제는 내가 WSO2를 구성해야 종속성으로

mvn clean install 

를 실행할 수 있다는 것입니다. 나는 달인 저장소에서 dependencies의 여러 시도했습니다,하지만 난 깨끗한에서 같은 출력이

[ERROR] Failed to execute goal on project ku: Could not resolve dependencies for project jjsdmco:ku:jar:1.0-DEVELOP: Could not find artifact org.wso2.carbon:org.wso2.carbon.user.mgt:jar:4.2.2 in central (https://repo.maven.apache.org/maven2) -> [Help 1] 

유사한 문제에서 제공되는 솔루션은 도움이되지 않은 설치 얻을. 예를 들어 :

mvn clean install -U 

은 깨끗한에서 다음과 같은 출력이 설치 내가 얻을 대답에서 업데이트 된 치어 파일을 실행

[ERROR] Failed to execute goal on project ku: Could not resolve dependencies for project jjsdmco:ku:jar:1.0-DEVELOP: Failure to find org.wso2.carbon:org.wso2.carbon.user.mgt:jar:4.2.1 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 -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

실행 :

mvn clean install -U 

이 제공 :

[ERROR] Failed to execute goal on project ku: Could not resolve dependencies for project jjsdmco:ku:jar:1.0-DEVELOP: Could not find artifact org.wso2.carbon:org.wso2.carbon.user.mgt:jar:4.2.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

다음은 내 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> 

    <groupId>jjsdmco</groupId> 
    <artifactId>ku</artifactId> 

    <version>1.0-DEVELOP</version> 

    <parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.5.1.RELEASE</version> 
    </parent> 
    <pluginRepositories> 
     <pluginRepository> 
      <id>wso2-maven2-repository-1</id> 
      <url>http://dist.wso2.org/maven2</url> 
     </pluginRepository> 
     <pluginRepository> 
      <id>wso2-maven2-repository-2</id> 
      <url>http://dist.wso2.org/snapshots/maven2</url> 
     </pluginRepository> 
     <pluginRepository> 
      <id>wso2-maven2-repository-3</id> 
      <url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url> 
     </pluginRepository> 
    </pluginRepositories> 

    <dependencies> 
     <!-- Security implementations 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-web</artifactId> 
     </dependency> 

     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-security</artifactId> 
     </dependency> 
     END security implementation --> 
     <!-- https://mvnrepository.com/artifact/org.springframework.security.oauth/spring-security-oauth2 --> 
     <dependency> 
      <groupId>org.springframework.security.oauth</groupId> 
      <artifactId>spring-security-oauth2</artifactId> 
      <version>2.1.0.RELEASE</version> 
     </dependency> 

     <dependency> 
      <groupId>org.springframework.ws</groupId> 
      <artifactId>spring-ws-core</artifactId> 
      <version>2.4.0.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>4.11</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework</groupId> 
      <artifactId>spring-test</artifactId> 
      <version>4.3.0.RELEASE</version> 
      <scope>test</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.postgresql</groupId> 
      <artifactId>postgresql</artifactId> 
      <version>9.4-1206-jdbc42</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-autoconfigure</artifactId> 
      <version>1.5.1.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-web</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-web-services</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>wsdl4j</groupId> 
      <artifactId>wsdl4j</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-failsafe-plugin</artifactId> 
      <version>2.19.1</version> 
      <type>maven-plugin</type> 
     </dependency> 
     <!-- https://mvnrepository.com/artifact/org.jacoco/jacoco-maven-plugin --> 
     <dependency> 
      <groupId>org.jacoco</groupId> 
      <artifactId>jacoco-maven-plugin</artifactId> 
      <version>0.7.9</version> 
     </dependency> 
     <!-- https://mvnrepository.com/artifact/org.apache.maven.surefire/surefire-api --> 
     <dependency> 
      <groupId>org.apache.maven.surefire</groupId> 
      <artifactId>surefire-api</artifactId> 
      <version>2.18.1</version> 
     </dependency> 
     <!-- https://mvnrepository.com/artifact/org.apache.maven.surefire/surefire-junit4 --> 
     <dependency> 
      <groupId>org.apache.maven.surefire</groupId> 
      <artifactId>surefire-junit4</artifactId> 
      <version>2.18.1</version> 
     </dependency> 
     <!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient --> 
     <dependency> 
      <groupId>org.apache.httpcomponents</groupId> 
      <artifactId>httpclient</artifactId> 
      <version>4.5.3</version> 
     </dependency> 
     <dependency> 
      <groupId>javax.xml.bind</groupId> 
      <artifactId>jaxb-api</artifactId> 
      <version>2.2.7</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-config</artifactId> 
      <version>3.2.6.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.security</groupId> 
      <artifactId>spring-security-config</artifactId> 
      <version>3.2.6.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>com.sun.xml.bind</groupId> 
      <artifactId>jaxb-core</artifactId> 
      <version>2.2.7</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.data</groupId> 
      <artifactId>spring-data-commons</artifactId> 
      <version>1.6.1.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-autoconfigure</artifactId> 
      <version>1.5.1.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-autoconfigure</artifactId> 
      <version>1.5.1.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-autoconfigure</artifactId> 
      <version>1.5.1.RELEASE</version> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-autoconfigure</artifactId> 
      <version>1.5.1.RELEASE</version> 
     </dependency> 
     <!-- https://mvnrepository.com/artifact/org.apache.ant/ant --> 
     <dependency> 
      <groupId>org.apache.ant</groupId> 
      <artifactId>ant</artifactId> 
      <version>1.10.1</version> 
     </dependency> 

     <!-- https://mvnrepository.com/artifact/org.wso2.carbon/org.wso2.carbon.user.mgt --> 
     <dependency> 
      <groupId>org.wso2.carbon</groupId> 
      <artifactId>org.wso2.carbon.user.mgt</artifactId> 
      <version>4.2.1</version> 
     </dependency> 


    </dependencies> 




    <properties> 
     <java.version>1.8</java.version> 

    </properties> 

    <build> 
     <plugins> 
      <!-- Spring SOAP WS tutorial --> 

      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-failsafe-plugin</artifactId> 
       <version>2.18.1</version> 
       <executions> 
        <execution> 
         <id>integration-test</id> 
         <goals> 
          <goal>integration-test</goal> 
         </goals> 
        </execution> 
        <execution> 
         <id>verify</id> 
         <goals> 
          <goal>verify</goal> 
         </goals> 
        </execution> 
       </executions> 
      </plugin> 


      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
       <configuration> 
        <classifier>exec</classifier> 
       </configuration> 
      </plugin> 



      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-jar-plugin</artifactId> 

       <configuration> 
        <archive> 
         <manifest> 
          <addClasspath>true</addClasspath> 
          <mainClass>executor.Application</mainClass> 
         </manifest> 
        </archive> 
       </configuration> 

      </plugin> 
     </plugins> 
    </build> 
</project> 

답변

0

pom 파일에 다음 리포지토리를 추가해볼 수 있습니까?

<pluginRepositories> 
     <pluginRepository> 
      <id>wso2-maven2-repository-1</id> 
      <url>http://dist.wso2.org/maven2</url> 
     </pluginRepository> 
     <pluginRepository> 
      <id>wso2-maven2-repository-2</id> 
      <url>http://dist.wso2.org/snapshots/maven2</url> 
     </pluginRepository> 
     <pluginRepository> 
      <id>wso2-maven2-repository-3</id> 
      <url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url> 
     </pluginRepository> 
    </pluginRepositories> 
+0

나는 내 치어 파일 – Steingrrim

+0

에 대한 답을 추가하는 명령 '-U 새로 설치하는 MVN'을 함께 시도하십시오 후, 출력을 설치 깨끗한 내 대답을 업데이트했습니다. 해결되지 않으면 pom 파일을 첨부하십시오. –

+0

게시물에 내 POM 파일을 추가했습니다. – Steingrrim