jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Wagon
  • WAGON-370

Adding additional wagon provider as dependency does not work

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.2
  • Fix Version/s: None
  • Component/s: wagon-webdav
  • Labels:
    None
  • Environment:
    Mac OS 10.7.2, Apple Java 1.6.0_29, Maven 3.0.3/3.0.4
    Windows XP, SUN Java 1.6.0_24, Maven 3.0.4
  • Testcase included:
    yes

Description

According to http://maven.apache.org/plugins/maven-site-plugin/examples/adding-deploy-protocol.html is should be possible to add additional wagon provider as a dependency to the site plugin. For a project deploying via dav, doing so using the wagon-webdav-jackrabbit makes Maven through a NoClassDefFoundError. Of adding the wagon as a global extension it works.
Not sure if this is a maven-site-plugin issue though, or possible something in the specific wagon.

I'm attaching a test project as well as the console output showing the error.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    console.txt
    01/Feb/12 1:52 AM
    11 kB
    Anders Hammar
  2. Hide
    Zip Archive
    mvnsite-dav-dep-bug.zip
    01/Feb/12 1:52 AM
    5 kB
    Anders Hammar
    1. XML File
      mvnsite-dav-dep-bug/pom.xml 1 kB
    2. Java Source File
      mvnsite-dav-dep-bug/src/.../test/App.java 0.2 kB
    3. Java Source File
      mvnsite-dav-dep-bug/src/.../AppTest.java 0.6 kB
    Download Zip
    Show
    Zip Archive
    mvnsite-dav-dep-bug.zip
    01/Feb/12 1:52 AM
    5 kB
    Anders Hammar

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. WAGON-329 FtpWagon currently tries to invoka an invalid MKD command with nested directories

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Dennis Lundberg added a comment - 01/Feb/12 2:44 PM

I've tried this locally and was able to get past your error message, but ended up with another error due to the fact that I don't have a local Nexus installation. Can you try it and see if it works for you?

Add the following as an extra dependency to maven-site-plugin:

<dependency>
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-nop</artifactId>
              <version>1.5.3</version>
              <scope>runtime</scope>
            </dependency>
Show
Dennis Lundberg added a comment - 01/Feb/12 2:44 PM I've tried this locally and was able to get past your error message, but ended up with another error due to the fact that I don't have a local Nexus installation. Can you try it and see if it works for you? Add the following as an extra dependency to maven-site-plugin:
<dependency>
              <groupId>org.slf4j</groupId>
              <artifactId>slf4j-nop</artifactId>
              <version>1.5.3</version>
              <scope>runtime</scope>
            </dependency>
Hide
Permalink
Anders Hammar added a comment - 03/Feb/12 6:16 AM

Yes, that works!
I was thinking of that solution, but at the time of writing this ticket I didn't think that I should be forced to add it manually. But now I'm not that sure any more. What I don't really understand is why it works without this extra dep when the wagon is added as a global extension. There has to be a slf4j impl somewhere on the classpath. Why isn't it available when the wagon is added as a dep to the m-site-p?

Show
Anders Hammar added a comment - 03/Feb/12 6:16 AM Yes, that works! I was thinking of that solution, but at the time of writing this ticket I didn't think that I should be forced to add it manually. But now I'm not that sure any more. What I don't really understand is why it works without this extra dep when the wagon is added as a global extension. There has to be a slf4j impl somewhere on the classpath. Why isn't it available when the wagon is added as a dep to the m-site-p?
Hide
Permalink
Anders Hammar added a comment - 03/Feb/12 7:20 AM

I see that it's one of the dependencies of the wagon (jackrabbit-webdav) that uses slf4j. Shouldn't the wagon then include this runtime dependency?

Show
Anders Hammar added a comment - 03/Feb/12 7:20 AM I see that it's one of the dependencies of the wagon (jackrabbit-webdav) that uses slf4j. Shouldn't the wagon then include this runtime dependency?
Hide
Permalink
Dennis Lundberg added a comment - 03/Feb/12 5:22 PM

I think wagon needs to have some dependency on slf4j. When I looked at svn history for the POM there was a commit that removed such a dependency. I'll go and add that back. Until then you can use the above as a temporary workaround.

Show
Dennis Lundberg added a comment - 03/Feb/12 5:22 PM I think wagon needs to have some dependency on slf4j. When I looked at svn history for the POM there was a commit that removed such a dependency. I'll go and add that back. Until then you can use the above as a temporary workaround.
Hide
Permalink
Dennis Lundberg added a comment - 14/Mar/12 1:31 PM

The commit that removed the dependency is here:
https://svn.apache.org/viewvc?view=revision&revision=1127473

Show
Dennis Lundberg added a comment - 14/Mar/12 1:31 PM The commit that removed the dependency is here: https://svn.apache.org/viewvc?view=revision&revision=1127473

People

  • Assignee:
    Unassigned
    Reporter:
    Anders Hammar
Vote (0)
Watch (0)

Dates

  • Created:
    01/Feb/12 1:52 AM
    Updated:
    14/Mar/12 1:31 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.