我在安装puma gem时遇到以下错误
$ gem install puma Fetching: puma-2.11.2.gem (100%) Building native extensions. This could take a while... ERROR: Error installing puma: ERROR: Failed to build gem native extension. ruby extconf.rb checking for BIO_read() in -lcrypto... no checking for BIO_read() in -llibeay32... no *** extconf.rb failed ***
我已经将性能测试创建为主模块的maven子模块.所有测试类都是在src/main/java 下编写的,而不是在src/test/java 下编写的
我能够将项目打包为jar并将其运行到性能测试我的项目.
我想执行mvn test
.为了mvn test
工作,我应该有<testSourceDirectory>
价值观.在这种情况下我在src/main/java中有我的代码我将其设置为:
<testSourceDirectory>src/main/java</testSourceDirectory>
Run Code Online (Sandbox Code Playgroud)
现在mvn test
有效.
但问题是声纳构建失败,错误抱怨:can't be indexed twice
.这对于我的pom来说是显而易见的testSourceDirectory
并且sourceDirectory
是相同的.
[ERROR] Failed to execute goal
org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli)
on project Blah: File [relative=XYZ.java, abs=/Path/XYZ.java] can't be indexed twice.
Please check that inclusion/exclusion patterns produce
disjoint sets for main and test files ->
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?
尝试使用安装时出现以下异常pip
:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', error(111, 'Connection refused'))': /simple/<package>/
pip
软件包从哪里安装?
如何代理或使用备用内部站点来获取这些软件包?