我想添加CI到我當前的Spring啓動項目。
我在Travis上添加了一個版本。
對於由龍目島生成的方法,它總是會出現編譯錯誤。
有什麼,我失蹤?
我一直堅持這一個多星期。
我設置它在這個分支https://github.com/madicorp/smartinvestplus-back/tree/travis
特拉維斯工作:https://travis-ci.org/madicorp/smartinvestplus-back特拉維斯:在龍目島生成的方法編譯錯誤
編輯:
我特拉維斯配置
language: java
jdk:
- oraclejdk8
env:
- MVN_VERSION=3.3.9
cache:
directories:
- $HOME/.m2
install: eval mvn clean install -DskipTests=true -B -V
script: eval mvn clean install
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
獲取編譯錯誤的這些typse在受Lombok產生的所有方法我POJOs
symbol: method isGenerated()
location: variable closeRate of type net.madicorp.smartinvestplus.stockexchange.domain.CloseRate
[ERROR] diagnostic: /home/travis/build/madicorp/smartinvestplus-back/src/main/java/net/madicorp/smartinvestplus/stockexchange/service/CloseRateDivisionAdjuster.java:28: error: cannot find symbol
adjustedCloseRate.setRate(closeRate.getRate());
symbol: method getRate()
location: variable closeRate of type net.madicorp.smartinvestplus.stockexchange.domain.CloseRate
[ERROR] diagnostic: /home/travis/build/madicorp/smartinvestplus-back/src/main/java/net/madicorp/smartinvestplus/stockexchange/service/CloseRateDivisionAdjuster.java:32: error: invalid method reference
.map(Division::getRate)
我會幫忙,如果你發佈編譯錯誤stacktrace – noscreenname
看看travis作業,最後有編譯錯誤 –
你有沒有嘗試使用delombok插件的maven? – noscreenname