2017-10-27 23 views
0

mvn clean 또는 mvn clean install 또는 mvn eclipse:eclipse과 같은 maven 명령을 실행할 때 아래 오류가 발생합니다.확인할 수없는 빌드 확장 : 플러그인 com.opencloud.maven.plugins : maven-opencloud-jainslee-plugin : 1.1

하지만 내 시스템에서 다른 다른 프로젝트를 실행할 수 있으므로 경로 문제 또는 프록시와 관련이없는 것으로 확신합니다. 다음은

내 오류입니다

1. 빌드 한 프로젝트를 읽을 수 없습니다 [ERROR] -> [도움말 1] org.apache.maven.project.ProjectBuildingException : 일부 문제가 가 발생하고 처리하는 동안 리딩 :

2. [ERROR] Unresolveable 빌드 확장 : 플러그인 com.opencloud.maven.plugins : 받는다는 - opencloud-jainslee - 플러그인 : 해당 종속성 중 1.1 또는 1 확인할 수 없습니다 : 을 찾을 실패 "COM .opencloud.maven.plugins : maven-opencloud-jainslee-plugin : jar : 1.1 "의 "로컬 저장소에 캐시 된, 해상도는 중앙의 업데이트 간격이 경과하거나 업데이트 @ 강제 될 때까지 재 시도되지 않습니다

3. [ERROR] 알 수없는 포장 :"나는 생성

maven 명령을 사용하는 sbb 파일 mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://developer.opencloud.com/maven2/public이 성공적으로 생성되었습니다.

그러나 깨끗한 MVN과 빌드가 설치할 때이 오류

다음

이상이 내가 명령 라인과 일식 모두 깨끗한 받는다는을 실행할 때 오류 아래 얻을 것이다 내 pom.xml 파일

<modelVersion>4.0.0</modelVersion> 
    <groupId>com.bt</groupId> 
    <artifactId>myapp-sbb</artifactId> 
    <packaging>jainslee-sbb-jar</packaging> 
    <version>1.0-SNAPSHOT</version> 
    <name>myapp SBB</name> 

    <dependencies> 
     <dependency> 
      <groupId>javax.slee</groupId> 
      <artifactId>jainslee-api</artifactId> 
      <version>1.1</version> 
     </dependency> 
     <dependency> 
      <groupId>com.opencloud</groupId> 
      <artifactId>jainslee-base-classes</artifactId> 
      <version>1.1</version> 
     </dependency> 
     <dependency> 
      <groupId>junit</groupId> 
      <artifactId>junit</artifactId> 
      <version>3.8.1</version> 
      <scope>test</scope> 
     </dependency> 
    </dependencies> 

    <build> 
     <resources> 
      <resource> 
       <directory>src/main/resources</directory> 
       <filtering>true</filtering> 
      </resource> 
     </resources> 

     <plugins> 
      <plugin> 
       <groupId>com.opencloud.maven.plugins</groupId> 
       <artifactId>maven-opencloud-jainslee-plugin</artifactId> 
       <extensions>true</extensions> 
       <version>1.1</version> 
       <configuration> 
        <jainsleeVersion>1.1</jainsleeVersion> 
        <createLibrary>true</createLibrary> 
        <createDeploymentUnit>true</createDeploymentUnit> 
       </configuration> 
      </plugin> 
     </plugins> 

    </build> 

입니다

C:\Users\611542579\Documents\NOAS-CSG\Sample\com.bt>mvn clean

[INFO] Scanning for projects... 
[ERROR] The build could not read 1 project -> [Help 1] 
[ERROR] 
[ERROR] The project myApp:com.bt-sbb:1.0-SNAPSHOT 
     (C:\Users\611542579\Documents\NOAS-CSG\Sample\com.bt\pom.xml) has 2 errors 
[ERROR]  Unresolveable build extension: Error resolving version for plugin 
    'com.opencloud.maven.plugins:maven-opencloud-jainslee-plugin' 
     from the repositories 
     [local (C:\Users\611542579\.m2\repository), 
     central (http://repo.maven.apache.org/maven2)]: 
     Plugin not found in any plugin repository -> [Help 2] 
[ERROR]  Unknown packaging: jainslee-sbb-jar @ line 7, column 16 
[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/ProjectBuildingException 
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException 

답변

0

아마 당신에게 당신의 치어이 같은 뭔가가 필요 :

<pluginRepositories> 
    <pluginRepository> 
     <id>jainslee</id> 
     <name>Jainslee repos</name> 
     <url>http://developer.opencloud.com/maven2/public</url> 
     <releases> 
      <enabled>false</enabled> 
     </releases> 
    </pluginRepository> 
</pluginRepositories> 

http://developer.opencloud.com/maven2/public

당신이 명령 줄에 제공 할뿐만 아니라 당신의 치어에 무엇인가?

또한 로컬 메이븐 레포에 문제가있을 수 있습니다. 다음보십시오 : 지역 받는다는의 repo에

찾아 해당 경로를

{홈}/m2/저장소/COM/opencloud/받는다는/플러그인/받는다는-opencloud-jainslee - 플러그인

. 해당 디렉토리를 삭제하십시오. 다시 시도하십시오.

UPDATE는 : 오류 메시지

[ERROR]  Unresolveable build extension: Error resolving version for plugin 
    'com.opencloud.maven.plugins:maven-opencloud-jainslee-plugin' 
     from the repositories 
     [local (C:\Users\611542579\.m2\repository), 
     central (http://repo.maven.apache.org/maven2)]: 
     Plugin not found in any plugin repository -> [Help 2] 

당신은 그 플러그인이 처음으로 중앙 받는다는 저장소에서 다음 지역에서 검색하여 볼 수 있습니다에 좀이 참여한다. 거기에서 찾을 수 없습니다. 그것은 http://developer.opencloud.com/maven2/public

여기에서 검색해야하고 치어의 그 <pluginRepositories> 부분에 대한 필요가있는 이유입니다.

더미 프로젝트를 편집 할 수없는 경우 해당 프로젝트에이 pluginRepository 및 플러그인을 추가하고 mvn install과 같이 실행하십시오. 로컬 리포에 플러그인을 다운로드해야합니다.

아마도 원본 프로젝트를 오류없이 실행할 수 있습니다.

+0

안녕하세요 Pirho, 답장을 보내 주셔서 감사합니다. mvn org.apache.maven.plugins를 실행할 때 자동 생성 된 POM입니다. maven-archetype-plugin : 2.4 : generate -DarchetypeCatalog = http : //developer.opencloud.com/maven2/public 명령. 다른 시스템에서도 작동합니다. 그러나이 문제가 발생하는 것은 이상합니다. –

+0

@chethanbhounsleyg는이 _system_s에 관한 정보를 제공하는 질문을 편집 할 수 있습니까? 그 중 어떤 것이 작동하고 작동하지 않습니까? – pirho

+0

@chethanbhounsleyg 대답은 – pirho