将项目作为Maven构建运行后(mvn clean compile install)。在Eclipse中尝试使用以下步骤将项目导出为Jar文件。
导出 - > JAR文件 - >导出生成的类文件和资源 - >导出具有编译器错误的类文件&警告
我收到以下错误
> JAR creation failed. See details for additional information. Class
> files on classpath not found or not accessible for:
> 'VeryOldccstore/src/test/java/com/oracle/cloud/commerce/test/AdminAbstract.java'
> Exported with compile warnings:
> VeryOldccstore/src/test/java/com/oracle/cloud/commerce/test/AdminOrderTest.java
> Class files on classpath not found or not accessible for:
> 'VeryOldccstore/src/test/java/com/oracle/cloud/commerce/test/AdminOrderTest.java'
> Class files on classpath not found or not accessible for:
> 'VeryOldccstore/src/test/java/com/oracle/cloud/commerce/test/AdminInventoryTest.java'
> Problem writing VeryOldccstore/src/main/java/com/.svn/all-wcprops to
> JAR: duplicate entry: com/.svn/all-wcprops duplicate entry:
> com/.svn/all-wcprops Problem writing
> VeryOldccstore/src/main/java/com/.svn/entries to JAR: duplicate entry:
> com/.svn/entries duplicate entry: com/.svn/entries Problem writing
> VeryOldccstore/src/main/java/com/oracle/.svn/all-wcprops to JAR:
> duplicate entry: com/oracle/.svn/all-wcprops duplicate entry:
> com/oracle/.svn/all-wcprops Problem writing
> VeryOldccstore/src/main/java/com/oracle/.svn/entries to JAR: duplicate
> entry: com/oracle/.svn/entries duplicate entry:
> com/oracle/.svn/entries Problem writing
> VeryOldccstore/src/main/java/com/oracle/cloud/.svn/all-wcprops to JAR:
> duplicate entry: com/oracle/cloud/.svn/all-wcprops duplicate entry:
> com/oracle/cloud/.svn/all-wcprops Problem writing
> VeryOldccstore/src/main/java/com/oracle/cloud/.svn/entries to JAR:
> duplicate entry: com/oracle/cloud/.svn/entries duplicate entry:
> com/oracle/cloud/.svn/entries Exported with compile warnings:
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/CCClient.java
> Exported with compile warnings:
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/CCClientUtils.java
> Problem writing
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/.svn/all-wcprops
> to JAR: duplicate entry: com/oracle/cloud/commerce/.svn/all-wcprops
> duplicate entry: com/oracle/cloud/commerce/.svn/all-wcprops Problem
> writing
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/.svn/entries to
> JAR: duplicate entry: com/oracle/cloud/commerce/.svn/entries
> duplicate entry: com/oracle/cloud/commerce/.svn/entries Exported
> with compile warnings:
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/model/inventory/SkuInventory.java
> Exported with compile warnings:
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/model/order/PriceDetails.java
> Exported with compile warnings:
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/model/order/CommerceItem.java
> Exported with compile warnings:
> VeryOldccstore/src/main/java/com/oracle/cloud/commerce/services/AdminOrderService.java
> Problem writing VeryOldccstore/src/main/java/.svn/all-wcprops to JAR:
> duplicate entry: .svn/all-wcprops duplicate entry: .svn/all-wcprops
> Problem writing VeryOldccstore/src/main/java/.svn/entries to JAR:
> duplicate entry: .svn/entries duplicate entry: .svn/entries
但Jar文件是在目标文件夹中成功生成的。我不确定这个错误的原因