Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure #50

Open
jsbaka opened this issue Oct 26, 2019 · 1 comment
Open

Compilation failure #50

jsbaka opened this issue Oct 26, 2019 · 1 comment

Comments

@jsbaka
Copy link

jsbaka commented Oct 26, 2019

How can one package it as a JAR?

Tried mvn package -DskipTests but got the following compilation failure

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mundi-apilib: Compilation failure: Compilation failure: 
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/plan/CreatePlan.java:[45,37] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/plan/CreatePlan.java:[45,38] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/plan/CreatePlan.java:[51,34] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/customer/CreateCustomer.java:[30,41] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidBankSlip.java:[55,69] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidBankSlip.java:[55,70] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidBankSlip.java:[61,66] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/UpdateSubscription.java:[32,58] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderBankSlip.java:[36,64] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/address/CreateAddress.java:[27,28] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidCreditCard.java:[48,58] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidCreditCard.java:[70,69] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidCreditCard.java:[70,70] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidCreditCard.java:[76,66] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/cards/CreateCard.java:[37,48] unmappable character for encoding UTF8
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderEmpty.java:[43,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/plan/CreatePlan.java:[65,25] method createPlanAsync in class com.mundipagg.api.controllers.PlansController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreatePlanRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetPlanResponse>
[ERROR]   found: com.mundipagg.api.models.CreatePlanRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetPlanResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/marketplace/CreateTransfer.java:[25,30] method createTransferAsync in class com.mundipagg.api.controllers.RecipientsController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateTransferRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetTransferResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateTransferRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetTransferResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/marketplace/CreateAnticipation.java:[29,30] method createAnticipationAsync in class com.mundipagg.api.controllers.RecipientsController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateAnticipationRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetAnticipationResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateAnticipationRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetAnticipationResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/charge/CaptureCharge.java:[27,27] method captureChargeAsync in class com.mundipagg.api.controllers.ChargesController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateCaptureChargeRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateCaptureChargeRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/customer/CreateCustomer.java:[51,29] method createCustomerAsync in class com.mundipagg.api.controllers.CustomersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateCustomerRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetCustomerResponse>
[ERROR]   found: com.mundipagg.api.models.CreateCustomerRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetCustomerResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidBankSlip.java:[73,33] method createSubscriptionAsync in class com.mundipagg.api.controllers.SubscriptionsController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateSubscriptionRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>
[ERROR]   found: com.mundipagg.api.models.CreateSubscriptionRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateCancelSubscription.java:[25,33] method cancelSubscriptionAsync in class com.mundipagg.api.controllers.SubscriptionsController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateCancelSubscriptionRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateCancelSubscriptionRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/charge/CreateCaptureChargePartial.java:[28,27] method captureChargeAsync in class com.mundipagg.api.controllers.ChargesController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateCaptureChargeRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateCaptureChargeRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderCreditCard.java:[53,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/UpdateSubscription.java:[38,33] method updateSubscriptionCardAsync in class com.mundipagg.api.controllers.SubscriptionsController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.UpdateSubscriptionCardRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.UpdateSubscriptionCardRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderBankSlip.java:[58,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/address/CreateAddress.java:[38,29] method createAddressAsync in class com.mundipagg.api.controllers.CustomersController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateAddressRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetAddressResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateAddressRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetAddressResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderCheckout.java:[48,97] incompatible types: java.util.List<java.util.ArrayList<java.util.ArrayList<java.lang.String>>> cannot be converted to java.util.List<java.lang.Object>
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderCheckout.java:[111,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/marketplace/CreateSplit.java:[70,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/charge/CreateCancelCharge.java:[24,27] method cancelChargeAsync in class com.mundipagg.api.controllers.ChargesController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateCancelChargeRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateCancelChargeRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/customer/UpdateCustomer.java:[28,29] method updateCustomerAsync in class com.mundipagg.api.controllers.CustomersController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.UpdateCustomerRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetCustomerResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.UpdateCustomerRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetCustomerResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/subscription/CreateSubscriptionPrePaidCreditCard.java:[90,33] method createSubscriptionAsync in class com.mundipagg.api.controllers.SubscriptionsController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateSubscriptionRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>
[ERROR]   found: com.mundipagg.api.models.CreateSubscriptionRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetSubscriptionResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderDebitCard.java:[54,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/cards/CreateCard.java:[47,29] method createCardAsync in class com.mundipagg.api.controllers.CustomersController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateCardRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetCardResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateCardRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetCardResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderBankTransfer.java:[46,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/charge/RetryCharge.java:[22,27] method retryChargeAsync in class com.mundipagg.api.controllers.ChargesController cannot be applied to given types;
[ERROR]   required: java.lang.String,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>
[ERROR]   found: java.lang.String,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/charge/CreateCancelChargePartial.java:[27,27] method cancelChargeAsync in class com.mundipagg.api.controllers.ChargesController cannot be applied to given types;
[ERROR]   required: java.lang.String,com.mundipagg.api.models.CreateCancelChargeRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>
[ERROR]   found: java.lang.String,com.mundipagg.api.models.CreateCancelChargeRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetChargeResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/order/CreateOrderVoucher.java:[54,26] method createOrderAsync in class com.mundipagg.api.controllers.OrdersController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateOrderRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>
[ERROR]   found: com.mundipagg.api.models.CreateOrderRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetOrderResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] /private/var/tmp/MundiAPI-JAVA/src/main/java/examples/marketplace/CreateRecipient.java:[42,30] method createRecipientAsync in class com.mundipagg.api.controllers.RecipientsController cannot be applied to given types;
[ERROR]   required: com.mundipagg.api.models.CreateRecipientRequest,java.lang.String,com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetRecipientResponse>
[ERROR]   found: com.mundipagg.api.models.CreateRecipientRequest,<anonymous com.mundipagg.api.http.client.APICallBack<com.mundipagg.api.models.GetRecipientResponse>>
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
@vitorfarias86
Copy link

That errors was because the examples, they not considering the idempotency_key in the examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants