Apache 目录服务器 maven 打包

丹尼尔森托

我已经检查了最新的Apache Directory-server 主干,并且正在尝试让打包工作。我在protocol-ntp. 当我运行mvn packagein 时protocol-ntp,生成的 jar intarget包含新类。

但是,我无法让新类出现在包含所有项目的 jar 中。当我mvn packageall文件夹运行时,它“成功”打包,但 jar 文件(确实有更新的时间戳)只包含旧项目,没有新类。mvn package在主干根目录中运行会产生以下错误:

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.directory.ldap.client.template.LdapConnectionTemplateTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.718 sec - in org.apache.directory.ldap.client.template.LdapConnectionTemplateTest
Running org.apache.directory.shared.client.api.AdsSchemaLoaderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.378 sec - in org.apache.directory.shared.client.api.AdsSchemaLoaderTest
Running org.apache.directory.shared.client.api.LdapConnectionPoolTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.171 sec - in org.apache.directory.shared.client.api.LdapConnectionPoolTest
Running org.apache.directory.shared.client.api.LdapConnectionTest
Tests run: 13, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 64.625 sec <<< FAILURE! - in org.apache.directory.shared.client.api.LdapConnectionTest
testConnectionWrongHost(org.apache.directory.shared.client.api.LdapConnectionTest)  Time elapsed: 30.056 sec  <<< FAILURE!
java.lang.AssertionError: Expected exception: org.apache.directory.ldap.client.api.exception.InvalidConnectionException
    at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:32)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.apache.directory.server.core.integ.FrameworkRunner.runChild(FrameworkRunner.java:391)
    at org.apache.directory.server.core.integ.FrameworkRunner.runChild(FrameworkRunner.java:64)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.apache.directory.server.core.integ.FrameworkRunner.run(FrameworkRunner.java:164)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
    at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

Running org.apache.directory.shared.client.api.LdapSSLConnectionTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.409 sec - in org.apache.directory.shared.client.api.LdapSSLConnectionTest
Running org.apache.directory.shared.client.api.LightweightLdapConnectionPoolTest
Max Active connections =: 8
Tests run: 6, Failures: 0, Errors: 0, Skipped: 5, Time elapsed: 3.851 sec - in org.apache.directory.shared.client.api.LightweightLdapConnectionPoolTest
Running org.apache.directory.shared.client.api.operations.bind.SimpleBindRequestTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.147 sec - in org.apache.directory.shared.client.api.operations.bind.SimpleBindRequestTest
Running org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.442 sec - in org.apache.directory.shared.client.api.operations.ClientAbandonRequestTest
Running org.apache.directory.shared.client.api.operations.ClientAddRequestTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.067 sec - in org.apache.directory.shared.client.api.operations.ClientAddRequestTest
Running org.apache.directory.shared.client.api.operations.ClientCompareRequestTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.913 sec - in org.apache.directory.shared.client.api.operations.ClientCompareRequestTest
Running org.apache.directory.shared.client.api.operations.ClientDeleteRequestTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 4.525 sec - in org.apache.directory.shared.client.api.operations.ClientDeleteRequestTest
Running org.apache.directory.shared.client.api.operations.ClientExtendedRequestTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.875 sec - in org.apache.directory.shared.client.api.operations.ClientExtendedRequestTest
Running org.apache.directory.shared.client.api.operations.ClientModifyDnRequestTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 4.896 sec - in org.apache.directory.shared.client.api.operations.ClientModifyDnRequestTest
Running org.apache.directory.shared.client.api.operations.ClientModifyRequestTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.234 sec - in org.apache.directory.shared.client.api.operations.ClientModifyRequestTest
Running org.apache.directory.shared.client.api.operations.ConcurrentSearchAndUnbindTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 4.257 sec - in org.apache.directory.shared.client.api.operations.ConcurrentSearchAndUnbindTest
Running org.apache.directory.shared.client.api.operations.GetRootDseTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.234 sec - in org.apache.directory.shared.client.api.operations.GetRootDseTest
Running org.apache.directory.shared.client.api.operations.search.AnonymousClientSearchRequestTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.928 sec - in org.apache.directory.shared.client.api.operations.search.AnonymousClientSearchRequestTest
Running org.apache.directory.shared.client.api.operations.search.ClientSearchRequestTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 5.169 sec - in org.apache.directory.shared.client.api.operations.search.ClientSearchRequestTest
Running org.apache.directory.shared.client.api.operations.search.OperationWithIndexTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 21.043 sec - in org.apache.directory.shared.client.api.operations.search.OperationWithIndexTest
Running org.apache.directory.shared.client.api.operations.search.SearchRequestReturningAttributesTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.254 sec - in org.apache.directory.shared.client.api.operations.search.SearchRequestReturningAttributesTest
Running org.apache.directory.shared.client.api.operations.search.SearchWithReferralsTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.803 sec - in org.apache.directory.shared.client.api.operations.search.SearchWithReferralsTest
Running org.apache.directory.shared.client.api.ServerSchemaLoaderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.399 sec - in org.apache.directory.shared.client.api.ServerSchemaLoaderTest
Running org.apache.directory.shared.client.api.ValidatingLdapConnectionPoolTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.835 sec - in org.apache.directory.shared.client.api.ValidatingLdapConnectionPoolTest

Results :

Failed tests: 
  LdapConnectionTest.testConnectionWrongHost Expected exception: org.apache.directory.ldap.client.api.exception.InvalidConnectionException

Tests run: 162, Failures: 1, Errors: 0, Skipped: 14

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] ApacheDS Protocol Ntp .............................. SUCCESS [  4.451 s]
[INFO] Apacheds Server Annotations ........................ SUCCESS [ 34.057 s]
[INFO] ApacheDS Server Config ............................. SUCCESS [ 12.769 s]
[INFO] ApacheDS Server JNDI ............................... SUCCESS [  1.720 s]
[INFO] ApacheDS Test Framework ............................ SUCCESS [01:09 min]
[INFO] ApacheDS All ....................................... SUCCESS [  3.743 s]
[INFO] ApacheDS Logger Interceptor ........................ SUCCESS [  1.962 s]
[INFO] ApacheDS Password Hashing Interceptor .............. SUCCESS [  1.046 s]
[INFO] ApacheDS Core Integration .......................... SUCCESS [14:02 min]
[INFO] ApacheDS Protocol Kerberos Test .................... SUCCESS [ 27.092 s]
[INFO] ApacheDS Server Integration ........................ SUCCESS [10:50 min]
[INFO] ApacheDS DirectoryService-WebApp bridge ............ SUCCESS [  0.723 s]
[INFO] ApacheDS Jetty HTTP Server Integration ............. SUCCESS [  1.341 s]
[INFO] ApacheDS Service Builder ........................... SUCCESS [  3.739 s]
[INFO] Apache Directory LDAP Client API test .............. FAILURE [03:44 min]
[INFO] kerberos-client .................................... SKIPPED
[INFO] ApacheDS Service ................................... SKIPPED
[INFO] ApacheDS Wrapper ................................... SKIPPED
[INFO] ApacheDS Installers Maven Plugin ................... SKIPPED
[INFO] ApacheDS Installers ................................ SKIPPED
[INFO] ApacheDS OSGi Integration Tests .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31:21 min
[INFO] Finished at: 2017-04-25T21:53:52-04:00
[INFO] Final Memory: 118M/1407M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project ldap-client-test: There are test failures.
[ERROR] 
[ERROR] Please refer to /media/DataDrive/Projects/Parclock/git-repos/directory-server/ldap-client-test/target/surefire-reports for the individual test results.
[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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ldap-client-test

关于如何让这个工作的任何想法?

丹尼尔森托

我能够通过mvn package在根项目目录中运行来解决问题-Dmaven.test.skip=true

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Apache Maven资源插件排除目录

来自分类Dev

如何使用Maven将EAR for GlassFish打包?

来自分类Dev

网站运行时浏览Apache服务器目录

来自分类Dev

将目录添加到Apache服务器

来自分类Dev

基于配置文件的Maven打包类型

来自分类Dev

Artifact尚未打包-Maven-Dependency-plugin

来自分类Dev

打包WAR之前使用Maven替换插件

来自分类Dev

如何在Jenkins从属服务器上覆盖Maven主目录

来自分类Dev

Apache FTP服务器-闲置20秒后连接超时-无法检索目录列表

来自分类Dev

apache Web服务器作为文档根目录的GCS Fuse存储安装问题

来自分类Dev

损害Apache服务器

来自分类Dev

损害Apache服务器

来自分类Dev

如何访问存储在apache服务器中var / www / html目录之外的音频文件?

来自分类Dev

部署在apache tomcat 7.0服务器上时,读取目录返回null

来自分类Dev

如何使用filezilla ftp将文件上传到apache服务器根文档目录?

来自分类Dev

Apache Web服务器不显示目录列表,但显示403-优胜美地

来自分类Dev

如何保护数据安全,防止通过Apache服务器上的公共目录访问

来自分类Dev

安装Apache服务器

来自分类Dev

apache和rails可以在同一服务器上的不同目录中运行吗?

来自分类Dev

Maven打包后发生错误

来自分类Dev

启动码头服务器时java.lang.NullPointerException-> org.apache.maven.InternalErrorException

来自分类Dev

Linux中的Apache服务器文档根目录

来自分类Dev

Apache FTP服务器-闲置20秒后连接超时-无法检索目录列表

来自分类Dev

Apache目录服务器LDAP设置

来自分类Dev

Apache ScriptAlias目录仅执行.php,但通常将所有其他服务器设置为服务器

来自分类Dev

为什么未在apache2 Web服务器中添加目录?

来自分类Dev

通过 apache-maven 服务器运行 maven 项目

来自分类Dev

防止访问 apache 服务器上的目录

来自分类Dev

如何让 Apache 服务器指向 /var/www/html 目录

Related 相关文章

  1. 1

    Apache Maven资源插件排除目录

  2. 2

    如何使用Maven将EAR for GlassFish打包?

  3. 3

    网站运行时浏览Apache服务器目录

  4. 4

    将目录添加到Apache服务器

  5. 5

    基于配置文件的Maven打包类型

  6. 6

    Artifact尚未打包-Maven-Dependency-plugin

  7. 7

    打包WAR之前使用Maven替换插件

  8. 8

    如何在Jenkins从属服务器上覆盖Maven主目录

  9. 9

    Apache FTP服务器-闲置20秒后连接超时-无法检索目录列表

  10. 10

    apache Web服务器作为文档根目录的GCS Fuse存储安装问题

  11. 11

    损害Apache服务器

  12. 12

    损害Apache服务器

  13. 13

    如何访问存储在apache服务器中var / www / html目录之外的音频文件?

  14. 14

    部署在apache tomcat 7.0服务器上时,读取目录返回null

  15. 15

    如何使用filezilla ftp将文件上传到apache服务器根文档目录?

  16. 16

    Apache Web服务器不显示目录列表,但显示403-优胜美地

  17. 17

    如何保护数据安全,防止通过Apache服务器上的公共目录访问

  18. 18

    安装Apache服务器

  19. 19

    apache和rails可以在同一服务器上的不同目录中运行吗?

  20. 20

    Maven打包后发生错误

  21. 21

    启动码头服务器时java.lang.NullPointerException-> org.apache.maven.InternalErrorException

  22. 22

    Linux中的Apache服务器文档根目录

  23. 23

    Apache FTP服务器-闲置20秒后连接超时-无法检索目录列表

  24. 24

    Apache目录服务器LDAP设置

  25. 25

    Apache ScriptAlias目录仅执行.php,但通常将所有其他服务器设置为服务器

  26. 26

    为什么未在apache2 Web服务器中添加目录?

  27. 27

    通过 apache-maven 服务器运行 maven 项目

  28. 28

    防止访问 apache 服务器上的目录

  29. 29

    如何让 Apache 服务器指向 /var/www/html 目录

热门标签

归档