我根据发行说明手动升级到最新的jhipster版本,但最初没有升级我的实体。
,我让'jhipster'覆盖一切。 当我运行./gradlew时,文件中出现了7个编译错误
//= require jquery
//= require jquery_ujs
我似乎是一个依赖问题。找不到:
format: :js
我做错了什么?
编译器的输出如下:
config/JacksonConfiguration
config/SecurityConfiguration
答案 0 :(得分:0)
io.github.jhipster.security.AjaxAuthenticationFailureHandler
和net.amfibia.colony.security.AjaxAuthenticationFailureHandler
都提供相同的bean,而您的配置只需要一个。这只是意味着这个类是在你最初使用的Jhipster版本中生成的,现在它们是jhipster lib的一部分。
只需删除生成的课程net.amfibia.colony.security.AjaxAuthenticationFailureHandler
,因为只要您没有对其进行自定义,就不再需要它。
其他人也一样。
自动jhipster upgrade
命令很好地涵盖了这类问题,因为它使用分支来比较旧版本和新版本的生成,然后与您的自定义项合并。
答案 1 :(得分:0)
如果你的项目是Git,请git reset --hard HEAD
; git clean -f -d
重置您手动完成的所有内容并运行jhipster upgrade
进行自动升级。
答案 2 :(得分:0)
当我使用版本4.6.2创建一个新项目时,一切正常,我可以使用./gradlew运行它 但是,根据指南手动升级时,Gradle最终会遇到一些依赖性问题。
gradle中缺少此行: 编译“org.springframework.boot:spring-boot-starter-data-elasticsearch” ,与新项目样本进行比较时。它现在编译,但其他东西是错误的,因为我得到运行时错误:
有谁能看到发生了什么?
./gradlew
> Task :bootRun
Ignoring Class-Path entry lib/snakeyaml-1.13.jar found in/home/amfibia/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/3.5.3/f346404c3876c5bd0e07a7e10b7565bdcd35dbab/liquibase-core-3.5.3.jar as /home/amfibia/.gradle/caches/modules-2/files-2.1/org.liquibase/liquibase-core/3.5.3/f346404c3876c5bd0e07a7e10b7565bdcd35dbab/lib/snakeyaml-1.13.jar does not exist
13:50:22.175 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []
13:50:22.180 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]
13:50:22.181 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/home/amfibia/projects/colony/build/classes/java/main/, file:/home/amfibia/projects/colony/build/resources/main/]
██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗
██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║
╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗
╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝
:: JHipster :: Running Spring Boot 1.5.4.RELEASE ::
:: https://jhipster.github.io ::
2017-07-31 13:50:23.399 INFO 6678 --- [ restartedMain] net.amfibia.colony.ColonyApp : Starting ColonyApp on x53s-mint with PID 6678 (/home/amfibia/projects/colony/build/classes/java/main started by amfibia in /home/amfibia/projects/colony)
2017-07-31 13:50:23.400 DEBUG 6678 --- [ restartedMain] net.amfibia.colony.ColonyApp : Running with Spring Boot v1.5.4.RELEASE, Spring v4.3.9.RELEASE
2017-07-31 13:50:23.401 INFO 6678 --- [ restartedMain] net.amfibia.colony.ColonyApp : The following profiles are active: swagger,dev
2017-07-31 13:50:23.725 DEBUG 6678 --- [kground-preinit] org.jboss.logging : Logging Provider: org.jboss.logging.Slf4jLoggerProvider found via system property
2017-07-31 13:50:27.871 DEBUG 6678 --- [ restartedMain] n.a.colony.config.AsyncConfiguration : Creating Async Task Executor
2017-07-31 13:50:29.055 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.User : Initialize successful.
2017-07-31 13:50:29.071 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Authority : Initialize successful.
2017-07-31 13:50:29.077 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.User.authorities : Initialize successful.
2017-07-31 13:50:29.083 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.PersistentToken : Initialize successful.
2017-07-31 13:50:29.087 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.User.persistentTokens : Initialize successful.
2017-07-31 13:50:29.094 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.SocialUserConnection : Initialize successful.
2017-07-31 13:50:29.101 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Contact : Initialize successful.
2017-07-31 13:50:29.108 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Colony : Initialize successful.
2017-07-31 13:50:29.113 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.Colony.residences : Initialize successful.
2017-07-31 13:50:29.118 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.Colony.residenceTags : Initialize successful.
2017-07-31 13:50:29.123 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Residence : Initialize successful.
2017-07-31 13:50:29.127 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.Residence.residenceTags : Initialize successful.
2017-07-31 13:50:29.131 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.ResidenceTag : Initialize successful.
2017-07-31 13:50:29.135 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.ResidenceTag.residences : Initialize successful.
2017-07-31 13:50:29.138 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.AccountingAccount : Initialize successful.
2017-07-31 13:50:29.140 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.AccountingAccount.entries : Initialize successful.
2017-07-31 13:50:29.143 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.AccountingEntry : Initialize successful.
2017-07-31 13:50:29.145 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.AccountDetails : Initialize successful.
2017-07-31 13:50:29.148 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.AccountingTransaction : Initialize successful.
2017-07-31 13:50:29.151 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.A.entries : Initialize successful.
2017-07-31 13:50:29.154 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Ledger : Initialize successful.
2017-07-31 13:50:29.156 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.Ledger.accountingAccounts : Initialize successful.
2017-07-31 13:50:29.159 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.Ledger.transactions : Initialize successful.
2017-07-31 13:50:29.161 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Invoice : Initialize successful.
2017-07-31 13:50:29.163 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.Invoice.payments : Initialize successful.
2017-07-31 13:50:29.166 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.d.I.invoiceCreditNotes : Initialize successful.
2017-07-31 13:50:29.168 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Product : Initialize successful.
2017-07-31 13:50:29.171 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Payment : Initialize successful.
2017-07-31 13:50:29.173 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.BankAccount : Initialize successful.
2017-07-31 13:50:29.175 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.PaymentConditions : Initialize successful.
2017-07-31 13:50:29.178 DEBUG 6678 --- [ restartedMain] c.e.c.E.amfibia.colony.domain.Purchase : Initialize successful.
2017-07-31 13:50:29.182 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.SubAccountTag : Initialize successful.
2017-07-31 13:50:29.186 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.PurchaseCreditNote : Initialize successful.
2017-07-31 13:50:29.189 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.c.domain.InvoiceCreditNote : Initialize successful.
2017-07-31 13:50:29.193 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.BalanceOut : Initialize successful.
2017-07-31 13:50:29.196 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.Notification : Initialize successful.
2017-07-31 13:50:29.198 DEBUG 6678 --- [ restartedMain] c.e.c.E.a.colony.domain.FundsTransfer : Initialize successful.
2017-07-31 13:50:29.622 DEBUG 6678 --- [ restartedMain] n.a.colony.config.MetricsConfiguration : Registering JVM gauges
2017-07-31 13:50:29.641 DEBUG 6678 --- [ restartedMain] n.a.colony.config.MetricsConfiguration : Monitoring the datasource
2017-07-31 13:50:29.641 DEBUG 6678 --- [ restartedMain] n.a.colony.config.MetricsConfiguration : Initializing Metrics JMX reporting
2017-07-31 13:50:30.570 DEBUG 6678 --- [ restartedMain] net.amfibia.colony.config.WebConfigurer : Registering CORS filter
2017-07-31 13:50:30.800 INFO 6678 --- [ restartedMain] net.amfibia.colony.config.WebConfigurer : Web application configuration, using profiles: swagger
2017-07-31 13:50:30.801 DEBUG 6678 --- [ restartedMain] net.amfibia.colony.config.WebConfigurer : Initializing Metrics registries
2017-07-31 13:50:30.804 DEBUG 6678 --- [ restartedMain] net.amfibia.colony.config.WebConfigurer : Registering Metrics Filter
2017-07-31 13:50:30.805 DEBUG 6678 --- [ restartedMain] net.amfibia.colony.config.WebConfigurer : Registering Metrics Servlet
2017-07-31 13:50:30.808 INFO 6678 --- [ restartedMain] net.amfibia.colony.config.WebConfigurer : Web application fully configured
2017-07-31 13:50:31.133 DEBUG 6678 --- [ restartedMain] n.a.colony.config.DatabaseConfiguration : Configuring Liquibase
2017-07-31 13:50:31.141 WARN 6678 --- [lony-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Starting Liquibase asynchronously, your database might not be ready at startup!
2017-07-31 13:50:37.037 DEBUG 6678 --- [lony-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Liquibase has updated your database in 5895 ms
2017-07-31 13:50:37.037 WARN 6678 --- [lony-Executor-1] i.g.j.c.liquibase.AsyncSpringLiquibase : Warning, Liquibase took more than 5 seconds to start up!
2017-07-31 13:50:37.553 DEBUG 6678 --- [ restartedMain] n.a.c.config.social.SocialConfiguration : Configuring GoogleConnectionFactory
2017-07-31 13:50:37.559 DEBUG 6678 --- [ restartedMain] n.a.c.config.social.SocialConfiguration : Configuring FacebookConnectionFactory
2017-07-31 13:50:37.561 DEBUG 6678 --- [ restartedMain] n.a.c.config.social.SocialConfiguration : Configuring TwitterConnectionFactory
2017-07-31 13:50:37.988 WARN 6678 --- [ restartedMain] c.r.metrics.spring.AnnotationFilter : Ignoring @Timed on method net.amfibia.colony.web.rest.ColonyResource.updateInitialBalances due to illegal modifiers: private
2017-07-31 13:50:39.246 INFO 6678 --- [ restartedMain] org.elasticsearch.node : [Midnight] version[2.4.5], pid[6678], build[c849dd1/2017-04-24T16:18:17Z]
2017-07-31 13:50:39.246 INFO 6678 --- [ restartedMain] org.elasticsearch.node : [Midnight] initializing ...
2017-07-31 13:50:39.246 DEBUG 6678 --- [ restartedMain] org.elasticsearch.node : [Midnight] using config [/home/amfibia/projects/colony/config], data [[/home/amfibia/projects/colony/data]], logs [/home/amfibia/projects/colony/logs], plugins [/home/amfibia/projects/colony/plugins]
2017-07-31 13:50:39.250 DEBUG 6678 --- [ restartedMain] org.elasticsearch.plugins : [/home/amfibia/projects/colony/plugins] directory does not exist.
2017-07-31 13:50:39.251 INFO 6678 --- [ restartedMain] org.elasticsearch.plugins : [Midnight] modules [], plugins [], sites []
2017-07-31 13:50:39.275 DEBUG 6678 --- [ restartedMain] org.elasticsearch.env : [Midnight] using node location [[NodePath{path=/home/amfibia/projects/colony/data/elasticsearch/nodes/0, spins=false}]], local_node_id [0]
2017-07-31 13:50:39.279 DEBUG 6678 --- [ restartedMain] org.elasticsearch.env : [Midnight] node data locations details:
-> /home/amfibia/projects/colony/data/elasticsearch/nodes/0, free_space [14.3gb], usable_space [6.6gb], total_space [151.2gb], spins? [no], mount [/ (/dev/sda5)], type [ext4]
2017-07-31 13:50:39.280 INFO 6678 --- [ restartedMain] org.elasticsearch.env : [Midnight] heap size [3.4gb], compressed ordinary object pointers [true]
2017-07-31 13:50:39.281 WARN 6678 --- [ restartedMain] org.elasticsearch.env : [Midnight] max file descriptors [4096] for elasticsearch process likely too low, consider increasing to at least [65536]
2017-07-31 13:50:39.293 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [force_merge], type [fixed], size [1], queue_size [null]
2017-07-31 13:50:39.307 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [percolate], type [fixed], size [8], queue_size [1k]
2017-07-31 13:50:39.320 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [fetch_shard_started], type [scaling], min [1], size [16], keep_alive [5m]
2017-07-31 13:50:39.321 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [listener], type [fixed], size [4], queue_size [null]
2017-07-31 13:50:39.322 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [index], type [fixed], size [8], queue_size [200]
2017-07-31 13:50:39.322 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [refresh], type [scaling], min [1], size [4], keep_alive [5m]
2017-07-31 13:50:39.322 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [suggest], type [fixed], size [8], queue_size [1k]
2017-07-31 13:50:39.322 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [generic], type [cached], keep_alive [30s]
2017-07-31 13:50:39.323 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [warmer], type [scaling], min [1], size [4], keep_alive [5m]
2017-07-31 13:50:39.323 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [search], type [fixed], size [13], queue_size [1k]
2017-07-31 13:50:39.323 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [flush], type [scaling], min [1], size [4], keep_alive [5m]
2017-07-31 13:50:39.324 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [fetch_shard_store], type [scaling], min [1], size [16], keep_alive [5m]
2017-07-31 13:50:39.324 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [management], type [scaling], min [1], size [5], keep_alive [5m]
2017-07-31 13:50:39.324 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [get], type [fixed], size [8], queue_size [1k]
2017-07-31 13:50:39.324 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [bulk], type [fixed], size [8], queue_size [50]
2017-07-31 13:50:39.325 DEBUG 6678 --- [ restartedMain] org.elasticsearch.threadpool : [Midnight] creating thread_pool [snapshot], type [scaling], min [1], size [4], keep_alive [5m]
2017-07-31 13:50:39.721 DEBUG 6678 --- [ restartedMain] org.elasticsearch.script : [Midnight] failed to load mustache
java.lang.ClassNotFoundException: com.github.mustachejava.Mustache
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.elasticsearch.script.ScriptModule.configure(ScriptModule.java:80)
at org.elasticsearch.common.inject.AbstractModule.configure(AbstractModule.java:60)
at org.elasticsearch.common.inject.spi.Elements$RecordingBinder.install(Elements.java:233)
at org.elasticsearch.common.inject.spi.Elements.getElements(Elements.java:105)
at org.elasticsearch.common.inject.InjectorShell$Builder.build(InjectorShell.java:143)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:99)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:46)
at org.elasticsearch.node.Node.<init>(Node.java:213)