我想在我的网站上使用Wildfly 9.
我创建的buildInfo.properties
with 来显示构建时间戳build.timestamp=${timestamp}
.
pom.xml:
4.0.0 com.daksa.consolidated.statement consolidated-statement 1.0-SNAPSHOT consolidated-statement-war war consolidated-statement-war consolidated-statement-war UTF-8 1.7 1.7 ${maven.build.timestamp} com.daksa.sandra sandra-api 2.0-SNAPSHOT javax javaee-api 7.0 provided org.slf4j slf4j-api 1.7.12 ch.qos.logback logback-classic 1.1.1 ch.qos.logback logback-core 1.1.1 junit junit 4.12 test org.mockito mockito-all 1.9.5 test org.primefaces primefaces 5.3 org.primefaces.extensions primefaces-extensions 3.0.0 org.apache.shiro shiro-core 1.2.3 org.apache.shiro shiro-web 1.2.3 org.apache.poi poi 3.13 org.apache.poi poi-ooxml 3.13 org.apache.commons commons-csv 1.2 com.fasterxml.jackson.core jackson-core 2.6.3 com.fasterxml.jackson.core jackson-databind 2.6.3 com.fasterxml.jackson.core jackson-annotations 2.6.3 com.fasterxml.jackson.module jackson-module-jaxb-annotations 2.6.3 com.google.guava guava 18.0 org.atmosphere atmosphere-runtime 2.4.1 commons-codec commons-codec 1.10 net.sf.ehcache ehcache 2.10.1 net.sf.jasperreports jasperreports 6.2.0 jar javassist jboss org.codehaus.groovy groovy-all 2.4.5 javassist jboss commons-net commons-net 3.4 jar default true maven-surefire-plugin 2.16 true src/main/resources true
当我运行程序时,出现错误:
"{\"WFLYCTL0080:服务失败\"=> {\"jboss.persistenceunit.\\"consolidated-statement-war-1.0-SNAPSHOT.war#consolidatedStatement \\".服务jboss.persistenceunit中的FIRST_PHASE \"=> \"org.jboss.msc.service.StartException.\\"consolidated-statement-war-1.0-SNAPSHOT.war#consolidatedStatement \\".FIRST_PHASE:org.hibernate.jpa.boot.archive.spi.ArchiveException:无法构建ClassFile引起:org.hibernate.jpa.boot.archive.spi.ArchiveException:无法构建ClassFile \"}}"
但是如果我删除了我的pom.xml中的构建部分,则应用程序会运行,但时间戳不会显示.如何显示时间戳?