Coder Social home page Coder Social logo

安装alipay的jar到本地 about roncoo-pay HOT 5 OPEN

roncoo avatar roncoo commented on May 31, 2024
安装alipay的jar到本地

from roncoo-pay.

Comments (5)

TorGor avatar TorGor commented on May 31, 2024 1

@cuisongliu
我已经在本地maven 仓库配置了 alipay 的两个 sdk,然后pom 中加入依赖。
显然现在maven 依赖是添加成功了,然后执行了 mvn install 命令,不幸的是出现了一个 javac 的错误
【javac: 无效的标记: D:/Git Repository/Github/roncoo-pay/roncoo-pay-service/lib】,
我不太能理解为什么会去找这个lib,project 中也没有lib。

我尝试了将 两个jar 放到了新建的 lib 目录下,然后仿照 core 的pom再次配置,发现还是失败了。

bingo,roncoo-pay-service** 的 pom 中,使用的 maven plugin 有段配置了使用外部 jar,需要注释掉中的内容。
然后,引用最新的 alipay-java-sdk,2017 or 3.1 ,否则 AliPayUtil 中会爆构造器错误:、
AlipayClient alipayClient = new DefaultAlipayClient();参数不匹配;

from roncoo-pay.

cuisongliu avatar cuisongliu commented on May 31, 2024

我已经把包上传到maven.cuisongliu.com 配置maven**仓库即可。

from roncoo-pay.

north0808 avatar north0808 commented on May 31, 2024

我写了一个脚本,支持安装到本地仓库
查看Pull request #24

from roncoo-pay.

TorGor avatar TorGor commented on May 31, 2024

我并不能执行一楼的两句 mvn command,可能因为maven 仓库没有资源,而且我尝试了很多maven仓库,都没有找到jar

from roncoo-pay.

cuisongliu avatar cuisongliu commented on May 31, 2024

@TorGor http://maven.cuisongliu.com/#nexus-search;quick~alipay
<dependency> <groupId>alipay</groupId> <artifactId>alipay-sdk-java20151021120052</artifactId> <version>1.0</version> </dependency>
这个就是你想要的

from roncoo-pay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.