Maven清理插件错误将更改推送到openshift项目

时间:2014-10-04 19:38:24

标签: maven openshift

我试图在开放班次项目中推动一些变化,但我每次都会遇到这个错误,厌倦了创建一个新项目或者通过向pom.xml添加一些拒绝工作的代码来强制清理项目。

构建日志:

    [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.4.1 from/to nexus (http://mirror.ops.rhcloud.com/nexus/content/groups/public): Failed to transfer file: http://mirror.ops.rhcloud.com/nexus/content/groups/public/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom. Return code is: 503, ReasonPhrase:Service Unavailable: Back-end server is at capacity. -> [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/PluginResolutionException
An error occurred executing 'gear postreceive' (exit code: 1)
Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/openshift/543020b45973ca088d00003d/jbossews

For more details about the problem, try running the command again with the '--trace' option.

的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>services</groupId>
 <artifactId>services</artifactId>
 <packaging>war</packaging>
 <version>1.0</version>
 <name>services</name>
 <repositories>
  <repository>
   <id>eap</id>
   <url>http://maven.repository.redhat.com/techpreview/all</url>
   <releases>
    <enabled>true</enabled>
   </releases>
   <snapshots>
    <enabled>true</enabled>
   </snapshots>
  </repository>
 </repositories>
 <pluginRepositories>
  <pluginRepository>
   <id>eap</id>
   <url>http://maven.repository.redhat.com/techpreview/all</url>
   <releases>
    <enabled>true</enabled>
   </releases>
   <snapshots>
    <enabled>true</enabled>
   </snapshots>
  </pluginRepository>
 </pluginRepositories>
 <properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <maven.compiler.source>1.6</maven.compiler.source>
  <maven.compiler.target>1.6</maven.compiler.target>
 </properties>
 <dependencies>
  <dependency>
   <groupId>org.postgresql</groupId>
   <artifactId>postgresql</artifactId>
   <version>9.2-1003-jdbc4</version>
  </dependency>
  <dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
   <version>5.1.25</version>
  </dependency>     
  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>javax.servlet-api</artifactId>
   <version>3.0.1</version>
   <scope>provided</scope>
  </dependency>

  <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>6.0</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
 <groupId>asm</groupId>
 <artifactId>asm-all</artifactId>
 <version>3.2</version>
        </dependency>

        <dependency>
 <groupId>com.sun.jersey</groupId>
 <artifactId>jersey-client</artifactId>
 <version>1.17</version>
        </dependency>

        <dependency>
 <groupId>com.sun.jersey</groupId>
 <artifactId>jersey-core</artifactId>
 <version>1.17</version>
        </dependency>

        <dependency>
 <groupId>com.sun.jersey</groupId>
 <artifactId>jersey-server</artifactId>
 <version>1.17</version>
        </dependency>

        <dependency>
 <groupId>com.sun.jersey</groupId>
 <artifactId>jersey-servlet</artifactId>
 <version>1.17</version>
        </dependency>

        <dependency>
 <groupId>javax.ws.rs</groupId>
 <artifactId>jsr311-api</artifactId>
 <version>1.1.1</version>
        </dependency>

 </dependencies>
 <profiles>
  <profile>
   <!-- When built in OpenShift the 'openshift' profile will be used when 
    invoking mvn. -->
   <!-- Use this profile for any OpenShift specific customization your app 
    will need. -->
   <!-- By default that is to put the resulting archive into the 'webapps' 
    folder. -->
   <!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html -->
   <id>openshift</id>
   <build>
    <finalName>services</finalName>
    <plugins>
     <plugin>
           <artifactId>maven-war-plugin</artifactId>
      <version>2.1.1</version>
      <configuration>
       <outputDirectory>  webapps</outputDirectory>
       <warName>ROOT</warName>
      </configuration>
     </plugin>


    </plugins>
   </build>
  </profile>
 </profiles>
</project>

1 个答案:

答案 0 :(得分:1)

我看到了同样的事情,我认为他们的回购已经失败了。

我在

上找到“找不到文件”

http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom

还有一些人,即使他们在maven中心

http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom