尝试解决 jenkins 在 jdk8 下编译时,报错

[ERROR] /home/runner/.jenkins/workspace/order-server/product/product-service-impl/src/main/java/cn/iocoder/mall/product/convert/ProductAttrConvert.java:[37,36] Ambiguous mapping methods found for mapping collection element to java.lang.Object: cn.iocoder.mall.product.api.bo.ProductAttrValueDetailBO convert(cn.iocoder.mall.product.dataobject.ProductAttrValueDO value), cn.iocoder.mall.product.api.bo.ProductAttrValueBO convert2(cn.iocoder.mall.product.dataobject.ProductAttrValueDO productAttrValueDO).
This commit is contained in:
YunaiV 2019-03-07 21:25:05 +08:00
parent 03f6b2b82c
commit 573671be83
3 changed files with 5 additions and 3 deletions

1
build_order.sh Normal file
View File

@ -0,0 +1 @@
mvn clean package -pl order/order-application -am -DskipTests

1
build_product.sh Normal file
View File

@ -0,0 +1 @@
mvn clean package -pl product/product-application -am -DskipTests

View File

@ -30,9 +30,9 @@ public interface ProductAttrConvert {
@Mappings({}) @Mappings({})
List<ProductAttrSimpleBO> convert3(List<ProductAttrDO> attrs); List<ProductAttrSimpleBO> convert3(List<ProductAttrDO> attrs);
// @Mappings({}) @Mappings({})
// ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); ProductAttrValueSimpleBO convert3(ProductAttrValueDO value); // 保证 convert4 能够映射到这个方法
//
@Mappings({}) @Mappings({})
List<ProductAttrValueSimpleBO> convert4(List<ProductAttrValueDO> values); List<ProductAttrValueSimpleBO> convert4(List<ProductAttrValueDO> values);