2014-12-09 18 views
0

Мой проект работает локально, и он работал 3-4 часа назад и на сервере. Я сделал большую фиксацию, и теперь она перепуталась. Я уже решил довольно много сообщений об ошибках, и это то, что осталось. Я использую «force_clean_build» маркерного таким образом DOWNLOADS SERVER все банки в середине толчка, но сразу же после нажатия мерзавец Баш говорит:Не удалось выполнить: 'control build' & Не удалось выполнить цель: maven-compiler

remote: [INFO] Compiling 30 source files to /var/lib/openshift/547b2214e0b8cd9044g83940/app-root/runtime/repo/target/classes 
remote: [INFO] ------------------------------------------------------------- 
remote: [ERROR] COMPILATION ERROR : 
remote: [INFO] ------------------------------------------------------------- 
remote: [ERROR] /var/lib/openshift/547b2214e0b8cd9044g83940/app-root/runtime/repo/src/main/java/com/mvcproject/RowMapper/UserRowMapper.java:[4,53] error: package com.sun.xml.internal.bind.v2.schemagen.episode does not exist 
remote: [INFO] 1 error 
remote: [INFO] ------------------------------------------------------------- 
remote: [INFO] ------------------------------------------------------------------------ 
remote: [INFO] BUILD FAILURE 
remote: [INFO] ------------------------------------------------------------------------ 
remote: [INFO] Total time: 31.508s 
remote: [INFO] Finished at: Tue Dec 09 16:30:41 EST 2014 
remote: [INFO] Final Memory: 13M/142M 
remote: [INFO] ------------------------------------------------------------------------ 
remote: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler- plugin:2.3.2:compile (default-compile) on project javaproject: Compilation failure 
remote: [ERROR] /var/lib/openshift/547b2214e0b8cd9044g83940/app-root/runtime/repo/src/main/java/com/mvcproject/RowMapper/UserRowMapper.java:[4,53] error: package com.sun.xml.internal.bind.v2.schemagen.episode does not exist 
remote: [ERROR] -> [Help 1] 
remote: [ERROR] 
remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging. 
remote: [ERROR] 
remote: [ERROR] For more information about the errors and possible solutions, please read the following articles: 
remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
remote: An error occurred executing 'gear postreceive' (exit code: 1) 
remote: Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/openshift/547b2214e0b8cd9044g83940/jbossews 
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option. 
To ssh://[email protected]/~/git/javaproject.git/639492e..ff379cc master -> master 

Я понятия не имею, что «com.sun.xml.internal .bind.v2.schemagen.episode "или" передача после сна ". Этот UserRowMapper работал до этого. Я также удалил мою папку .m2 локально, но не понял, где она находится на сервере, но я думаю, что «force clean build» будет делать трюк?

Мой pom.xml без зависимостей (потому что их слишком много) выглядит следующим образом:

<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> 
    <spring.version>4.0.0.RELEASE</spring.version> 
    <spring.security.version>3.2.1.RELEASE</spring.security.version> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <maven.compiler.source>1.7</maven.compiler.source> 
    <maven.compiler.target>1.7</maven.compiler.target> 
</properties> 

... dependecies .... 

<profiles> 
    <profile> 
     <id>openshift</id> 
     <build> 
      <finalName>javaproject</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> 

<build> 
    <finalName>javaproject</finalName> 
    <plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <version>2.3.2</version> 
      <configuration> 
       <source>1.7</source> 
       <target>1.7</target> 
      </configuration> 
     </plugin> 
     <plugin> 
      <artifactId>maven-surefire-plugin</artifactId> 
      <version>2.15</version> 
      <configuration> 
       <includes> 
        <include>**/*Tests.java</include> 
       </includes> 
      </configuration> 
     </plugin> 
    </plugins> 
</build> 

ответ

1

Я признаю, что я не знаю много о Java, но, похоже, вам не хватает в вашем pom.xml. Пакет компиляция жалуясь отсутствует внешний вид, предоставляемые JAXB-OSGi:

http://mvnrepository.com/artifact/com.sun.xml.bind/jaxb-osgi/2.2.1

По существу добавьте ниже вашего pom.xml:

<dependency> 
    <groupId>com.sun.xml.bind</groupId> 
    <artifactId>jaxb-osgi</artifactId> 
    <version>2.2.1</version> 
</dependency> 
+0

К сожалению, это не изменит выход из git bash. Я добавил jaxb-osgi, скомпилировал, все отлично локально, а затем переместил его в openhift repo, и ошибки все те же. –

+0

Я понял. У меня был импорт библиотеки в один из моих классов, о котором я не знал. Даже не знаю, для чего это. Наверное, я импортировал его случайно с авто-импортом. Все в порядке. –

Смежные вопросы