2015-12-19 15 views
2

大家好,我是新開放班和GIT,我嘗試在開放班上討論我的spring mvc項目,並且遇到了無法解決他們部署應用程序的錯誤。部署開放式移動彈簧mvc項目

Plugin org.apache.maven.plugins:maven-war-plugin:2.5.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.5.1: Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.5.1 in http://maven.repository.redhat.com/techpreview/all was cached in the local repository, resolution will not be reattempted until the update interval of eap has elapsed or updates are forced -> [Help 1] 
[ERROR] 
read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException 
An error occurred executing 'gear postreceive' (exit code: 1) 
Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/openshift/5674c0e22d5271dc8d000016/jbossews 

的pom.xml

<build> 
     <plugins> 
      <plugin> 
       <artifactId>maven-eclipse-plugin</artifactId> 
       <version>2.5</version> 
       <configuration> 
        <additionalProjectnatures> 
         <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature> 
        </additionalProjectnatures> 
        <additionalBuildcommands> 
         <buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand> 
        </additionalBuildcommands> 
        <downloadSources>true</downloadSources> 
        <downloadJavadocs>true</downloadJavadocs> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-compiler-plugin</artifactId> 
       <version>2.5.1</version> 
       <configuration> 
        <source>1.6</source> 
        <target>1.6</target> 
        <compilerArgument>-Xlint:all</compilerArgument> 
        <showWarnings>true</showWarnings> 
        <showDeprecation>true</showDeprecation> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.codehaus.mojo</groupId> 
       <artifactId>exec-maven-plugin</artifactId> 
       <version>1.2.1</version> 
       <configuration> 
        <mainClass>org.test.int1.Main</mainClass> 
       </configuration> 
      </plugin> 
     </plugins> 
    </build> 
    <profiles> 
     <profile> 
      <id>openshift</id> 
      <build> 
       <finalName>GestionBP</finalName> 
       <plugins> 
        <plugin> 
         <artifactId>maven-war-plugin</artifactId> 
         <version>2.5.1</version> 
         <configuration> 
          <outputEncoding>UTF-8</outputEncoding> 
          <outputDirectory>webapps</outputDirectory> 
          <warName>ROOT</warName> 
         </configuration> 
        </plugin> 

       </plugins> 
      </build> 

有人可以幫助我。謝謝你很多

+0

請幫忙 – user0321

回答

0

你試過刪除強制版本號嗎?