0
我承諾並首次將第一個更改推送到openshift聯機,並且出現錯誤。該項目是一個java應用程序,它使用Jbossas7彈夾和mysql5.5上的Spring 3.1。該項目由spring roo創建並廣泛使用aspectj文件。以下是錯誤我得到:無法提交併將更改推送到openshift聯機GIT存儲庫
Stopping jbossas cartridge
Repairing links for 1 deployments
Building git ref 'master', commit cccfbcb
Found pom.xml... attempting to build with 'mvn -e clean package -Popenshift -DskipTests'
Apache Maven 3.0.4 (r1232336; 2012-12-18 14:36:37-0500)
Maven home: /usr/share/java/apache-maven-3.0.4
Java version: 1.7.0_71, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.32-431.29.2.el6.x86_64", arch: "i386", family: "unix"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Numbers 1.0.0.BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Numbers ---
[INFO]
[INFO] --- aspectj-maven-plugin:1.4:compile (default) @ Numbers ---
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[INFO]
[INFO] --- aspectj-maven-plugin:1.4:test-compile (default) @ Numbers ---
[WARNING] this affected type is not exposed to the weaver: net.mfjassociates.utilities.domain.Document [Xlint:typeNotExposedToWeaver]
[WARNING] this affected type is not exposed to the weaver: net.mfjassociates.utilities.domain.Prefix [Xlint:typeNotExposedToWeaver]
[WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Numbers ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ Numbers ---
[INFO] Compiling 9 source files to /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/util/GeneratorUtils.java:[133,47] error: cannot find symbol
[ERROR] symbol: method getCode()
location: variable prefix of type Prefix
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[33,7] error: Document is not abstract and does not override abstract method setInUse(Boolean) in Generatable
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[87,21] error: cannot find symbol
[ERROR] symbol: method getCode()
location: variable prefix of type Prefix
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[87,65] error: cannot find symbol
[ERROR] symbol: method getNumerical()
location: class Document
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[99,15] error: cannot find symbol
[ERROR] symbol: method entityManager()
location: class Document
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[105,15] error: cannot find symbol
[ERROR] symbol: method findAllDocuments()
location: class Document
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[111,15] error: cannot find symbol
[ERROR] symbol: method merge()
location: class Document
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[117,19] error: cannot find symbol
[ERROR] symbol: method findDocumentsByInUse(Boolean,String,String)
location: class Document
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[30,7] error: Prefix is not abstract and does not override abstract method setInUse(Boolean) in Generatable
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[88,15] error: cannot find symbol
[ERROR] symbol: method entityManager()
location: class Prefix
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[96,15] error: cannot find symbol
[ERROR] symbol: method findAllPrefixes()
location: class Prefix
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[102,15] error: cannot find symbol
[ERROR] symbol: method merge()
location: class Prefix
/var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[108,19] error: cannot find symbol
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.492s
[INFO] Finished at: Fri Oct 17 21:49:52 EDT 2014
[INFO] Final Memory: 19M/154M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "openshift" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project Numbers: Compilation failure: Compilation failure:
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/util/GeneratorUtils.java:[133,47] error: cannot find symbol
[ERROR] symbol: method getCode()
[ERROR] location: variable prefix of type Prefix
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[33,7] error: Document is not abstract and does not override abstract method setInUse(Boolean) in Generatable
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[87,21] error: cannot find symbol
[ERROR] symbol: method getCode()
[ERROR] location: variable prefix of type Prefix
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[87,65] error: cannot find symbol
[ERROR] symbol: method getNumerical()
[ERROR] location: class Document
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[99,15] error: cannot find symbol
[ERROR] symbol: method entityManager()
[ERROR] location: class Document
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[105,15] error: cannot find symbol
[ERROR] symbol: method findAllDocuments()
[ERROR] location: class Document
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[111,15] error: cannot find symbol
[ERROR] symbol: method merge()
[ERROR] location: class Document
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Document.java:[117,19] error: cannot find symbol
[ERROR] symbol: method findDocumentsByInUse(Boolean,String,String)
[ERROR] location: class Document
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[30,7] error: Prefix is not abstract and does not override abstract method setInUse(Boolean) in Generatable
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[88,15] error: cannot find symbol
[ERROR] symbol: method entityManager()
[ERROR] location: class Prefix
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[96,15] error: cannot find symbol
[ERROR] symbol: method findAllPrefixes()
[ERROR] location: class Prefix
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[102,15] error: cannot find symbol
[ERROR] symbol: method merge()
[ERROR] location: class Prefix
[ERROR] /var/lib/openshift/543f207ce0b8cda5a1000194/app-root/runtime/repo/src/main/java/net/mfjassociates/utilities/domain/Prefix.java:[108,19] error: cannot find symbol
[ERROR] -> [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/MojoFailureException
An error occurred executing 'gear postreceive' (exit code: 1)
Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/openshift/543f207ce0b8cda5a1000194/jbossas
For more details about the problem, try running the command again with the '--trace' option.
任何想法是怎麼回事,或者我應該怎樣做才能使這項工作?爲了實現這個目標,我需要做些什麼特別的建設嗎?正如你將看到aspectj-maven-plugin正在被使用。