Release maven2 plugin to java.net maven2 repositoty in Ubuntu

Source: Internet
Author: User
Recently I wrote the maven2 plug-in for project statistics and encountered an exception when publishing it to the maven2 library of java.net:
  1. Daniel @ Daniel-LAPTOP :~ /Work/sources/Java/Maven-statistic-plugin $ MVN deploy
  2. [Info] scanning for projects...
  3. -----------------------------------------------------
  4. This realm = plexus. Core. Child-container [extensions]
  5. URLs [0] = file:/home/Daniel/. m2/Repository/org/codehaus/plexus-utils/1.4.1/plexus-utils-1.4.1.jar
  6. URLs [1] = file:/home/Daniel/. m2/Repository/org/jvnet/wagon-SVN/1.9-Snapshot/wagon-svn-1.9-SNAPSHOT.jar
  7. URLs [2] = file:/home/Daniel/. m2/Repository/org/jvnet/Hudson/svnkit/1.1.4-Hudson-4/svnkit-1.1.4-hudson-4.jar
  8. URLs [3] = file:/home/Daniel/. m2/Repository/CH/ethz/ganymed/ganymed-ssh2/build210/ganymed-ssh2-build210.jar
  9. Number of imports: 0
  10. This realm = plexus. Core
  11. URLs [0] = file:/usr/share/maven2/lib/wagon-ssh-common.jar
  12. URLs [1] = file:/usr/share/maven2/lib/commons-cli.jar
  13. URLs [2] = file:/usr/share/maven2/lib/plexus-container-default.jar
  14. URLs [3] = file:/usr/share/maven2/lib/plexus-interactivity-api.jar
  15. URLs [4] = file:/usr/share/maven2/lib/wagon-ssh.jar
  16. URLs [5] = file:/usr/share/maven2/lib/maven2.jar
  17. URLs [6] = file:/usr/share/maven2/lib/jtidy. Jar
  18. URLs [7] = file:/usr/share/maven2/lib/plexus-utils.jar
  19. URLs [8] = file:/usr/share/maven2/lib/doxia-sink-api.jar
  20. URLs [9] = file:/usr/share/maven2/lib/wagon-http-shared.jar
  21. URLs [10] = file:/usr/share/maven2/lib/jsch. Jar
  22. URLs [11] = file:/usr/share/maven2/lib/wagon-file.jar
  23. URLs [12] = file:/usr/share/maven2/lib/wagon-http-lightweight.jar
  24. URLs [13] = file:/usr/share/maven2/lib/xml-apis.jar
  25. URLs [14] = file:/usr/share/maven2/lib/wagon-ssh-external.jar
  26. URLs [15] = file:/usr/share/maven2/lib/wagon-provider-api.jar
  27. Number of imports: 0
  28. -----------------------------------------------------
  29. [Info] ------------------------------------------------------------------------
  30. [Info] building statistic
  31. [Info] task-segment: [deploy]
  32. [Info] ------------------------------------------------------------------------
  33. [Info] [Plugin: descriptor]
  34. [Info] using 2 extractors.
  35. [Info] applying Extractor for language: Java
  36. [Info] Extractor for language: Java found 4 mojo descriptors.
  37. [Info] applying Extractor for language: bsh
  38. [Info] Extractor for language: bsh found 0 mojo descriptors.
  39. [Info] [resources: Resources]
  40. [Info] Using default encoding to copy filtered resources.
  41. [Info] [compiler: Compile]
  42. [Info] Nothing to compile-All classes are up to date
  43. [Info] [resources: testresources]
  44. [Info] Using default encoding to copy filtered resources.
  45. [Info] [Compiler: testcompile]
  46. [Info] Nothing to compile-All classes are up to date
  47. [Info] [surefire: Test]
  48. [Info] surefire report Directory:/home/Daniel/work/sources/Java/Maven-statistic-plugin/target/surefire-Reports
  49. -------------------------------------------------------
  50. T e S t s
  51. -------------------------------------------------------
  52. Running net. java. Dev. Statistic. csssourcestatisticmojotest
  53. Execute
  54. -----------------
  55. CSS source file count: 1
  56. White lines: 7
  57. Comment lines: 20
  58. Normal lines: 65
  59. Total: 92
  60. -----------------
  61. Tests run: 1, failures: 0, errors: 0, skipped: 0, time elapsed: 0.119 Sec
  62. Running net. java. Dev. Statistic. javasourcestatisticmojotest
  63. Execute
  64. -----------------
  65. Java source file count: 2
  66. White lines: 3
  67. Comment lines: 42
  68. Normal lines: 9
  69. Total: 54
  70. -----------------
  71. Tests run: 1, failures: 0, errors: 0, skipped: 0, time elapsed: 0.038 Sec
  72. Running net. java. Dev. Statistic. xhtmlsourcestatisticmojotest
  73. Execute
  74. -----------------
  75. XHTML source file count: 2
  76. White lines: 9
  77. Comment lines: 0
  78. Normal lines: 63
  79. Total: 72
  80. -----------------
  81. Tests run: 1, failures: 0, errors: 0, skipped: 0, time elapsed: 0.037 Sec
  82. Running net. java. Dev. Statistic. packagestatisticmojotest
  83. Execute
  84. -----------------
  85. Java non empty package count: 2
  86. Java empty package count: 3
  87. Java empty package path:
  88. Src/test/Java/NET/Java/dev/Statistic/project/main/Java/package3/emptypackage1
  89. Src/test/Java/NET/Java/dev/Statistic/project/main/Java/package2/emptypackage2
  90. Src/test/Java/NET/Java/dev/Statistic/project/main/Java/package1/package1_1/emptypackage3
  91. All Java package count: 5
  92. -----------------
  93. Tests run: 1, failures: 0, errors: 0, skipped: 0, time elapsed: 0.024 Sec
  94. Results:
  95. Tests run: 4, failures: 0, errors: 0, skipped: 0
  96. [Info] [jar: jar]
  97. [Info] building jar:/home/Daniel/work/sources/Java/Maven-statistic-plugin/target/maven-statistic-plugin-0.0.1.jar
  98. [Info] [Plugin: addpluginartifactmetadata]
  99. [Info] [install: Install]
  100. [Info] installing/home/Daniel/work/sources/Java/Maven-statistic-plugin/target/maven-statistic-plugin-0.0.1.jar to/home/Daniel /. m2/Repository/NET/Java/dev/Maven-statistic-plugin/0.0.1/maven-statistic-plugin-0.0.1.jar
  101. [Info] [Plugin: updateregistry]
  102. [Info] [deploy: deploy]
  103. Altdeploymentrepository = NULL
  104. [Info] ------------------------------------------------------------------------
  105. [Error] Build Error
  106. [Info] ------------------------------------------------------------------------
  107. [Info] Error deploying artifact: Unsupported Protocol: 'java-net': cannot find wagon which supports the requested protocol: Java-Net
  108. Component descriptor cannot be found in the component Repository: org. Apache. Maven. Wagon. wagonjava-net.
  109. [Info] ------------------------------------------------------------------------
  110. [Info] For more information, run Maven with the-e Switch
  111. [Info] ------------------------------------------------------------------------
  112. [Info] total time: 8 seconds
  113. [Info] finished at: Fri Dec 12 21:26:17 CST 2008
  114. [Info] final memory: 13 m/24 m
  115. [Info] ------------------------------------------------------------------------

The reason is that libwagon-Java is packaged in Ubuntu (Debian system). Please download the official Maven from Apache and specify the path of Apache Maven when running MVN.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.