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

有个jar包找不到 #2

Closed
warriorSL2016 opened this issue Nov 21, 2017 · 1 comment
Closed

有个jar包找不到 #2

warriorSL2016 opened this issue Nov 21, 2017 · 1 comment

Comments

@warriorSL2016
Copy link

warriorSL2016 commented Nov 21, 2017

org.openjdk.jcstress jcstress-core ${project.version} 这个依赖找不着啊, 能提供下jar包吗? ps: 是不是另一个项目中的JavaMultiThreadInAction里的lib中的jcstress.jar包?
@Viscent
Copy link
Owner

Viscent commented Feb 19, 2018

解决方法:

  1. 从本项目中下载jar包jcstress-core-1.0-SNAPSHOT.jar。
    https://github.com/Viscent/javamtia/blob/master/jcstress-core-1.0-SNAPSHOT.jar?raw=true
    这里,假设你将jcstress-core-1.0-SNAPSHOT.jar放在目录/home/viscent/tmp下。

  2. 将上述jar包安装到本地Maven库。
    执行下列命令:
    cd /home/viscent/apps/apache-maven-3.3.9/bin
    ./mvn install:install-file -DgroupId=org.openjdk.jcstress -DartifactId=jcstress-core -Dversion=1.0-SNAPSHOT -Dpackaging=jar -DpomFile=pom.xml -Dfile=/home/viscent/tmp/jcstress-core-1.0-SNAPSHOT.jar
    这里,假设你的Maven安装目录是/home/viscent/apps/apache-maven-3.3.9。
    注意将上述命令中的目录/home/viscent/tmp替换为你的实际本地目录(用于存储jcstress-core-1.0-SNAPSHOT.jar)。

  3. 执行指导文档中的最后一步“运行JCStress测试用例”。

--结束

@Viscent Viscent closed this as completed Feb 19, 2018
Viscent added a commit that referenced this issue Feb 19, 2018
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