Overriding a dependency in Maven's uberjar
Hi, I was getting an exception when deploying, so I needed to figure out exactly what SFTP commands were being issued. The stack trace indicated that JSch was issuing the commands, but it didn't seem to have any kind of debug switch, at least not one that I could enable from Maven. I decided to build JSch from source with my own logging statements inserted. This would require overriding the JSch dependency with my own version, as described here: http://www.sonatype.com/people/2008/04/how-to-override-a-plugins-dependency-in-maven/ But this didn't work at all. No matter what I tried, Maven refused to load my version of JSch. Fast forward through 90 minutes of hair pulling, and I finally figured out that Maven was ignoring my local repository and instead loading a copy of JSch that happened to be in its uberjar. So my question is... Is there some way I should have known this? What knowledge could I have had that would have told me that any attempt at loading a dependency from my local repo would fail because the dependency is in the uberjar? I'm asking not only to improve my understanding of Maven but also to question if there's some way to change Maven, or simply add to its documentation, so that this problem doesn't bite other users. Thanks, Trevor - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Fwd: [maven-release-plugin] Is it possible to configure maven-release-plugin to NOT pull in META-INF/LICENSE and NOTICE
Hi Dan, Really appreciated your reply. With the clue your provided, I solve my probjem as below. 1. update maven-remote-resource to version 1.1 2. set the option attached with false in maven-remote-resource plugin, this will disable the automatic copy of the files from remote resource bundle 3. use element in the pom.xml to only copy my interested files from target/maven-shared-archive-resources directory Thanks again Dan for your help. Best regards, Han Hong Fang On Fri, Sep 3, 2010 at 9:19 PM, Daniel Kulp wrote: > On Friday 03 September 2010 2:34:00 am han hongfang wrote: > > Forward to dev list to see if somebody has some advice for me on this > > question. > > It's not the release plugin, it's the remote-resources plugin generating > them. > You would need to figure out where the remote-resources thing is > configured. > You don't mention which project, but if it's and Apache project using the > Apache parent pom, that would be pulled in automatically. > > Th easy fix is to rename your files to LICENSE and and NOTICE. remote- > resources will not overwrite new files if existing files exist. > > Dan > > > > > > > Best regards, > > > > Han Hong Fang > > > > -- Forwarded message -- > > From: han hongfang > > Date: Fri, Aug 27, 2010 at 5:27 PM > > Subject: [maven-release-plugin] Is it possible to configure > > maven-release-plugin to NOT pull in META-INF/LICENSE and NOTICE > > To: users@maven.apache.org > > > > > > > > Hi, > > > > Our project uses maven-release-plugin in the release process. We maintain > > the LICENSE.txt and NOTICE.txt (which contains module specifc statement) > > for each of our modules in subversion. When we issue mvn release:prepare, > > standard LICENSE and NOTICE files are pulled into META-INF folder of > > target artifact. These standard files are duplicated with LICENSE.txt and > > NOTICE.txt we maintained. > > > > Is it possible to configure maven-release-plugin to not pull in these > > files? If yes, could you show me how to do it? > > > > Thanks in advance for your reply! > > -- > Daniel Kulp > dk...@apache.org > http://dankulp.com/blog > -- Best regards, Han Hong Fang
Re: Xdoc discards some href attributes
Thanks. On Sun, Sep 5, 2010 at 11:10 AM, Dennis Lundberg wrote: > On 2010-09-05 16:44, Benson Margulies wrote: > > Well, I just edited it extensively to get rid of all the title= > attributes, > > and this problem went away. The site plugin version is 2.0. > > Upgrading to Site Plugin 2.1.1 solves the problem for me. > > > I think you can see the problem with > > > > > https://svn.apache.org/repos/asf/webservices/commons/tags/XmlSchema/XmlSchema-1.4.6/ > > > > > > > > > > > > On Sun, Sep 5, 2010 at 10:37 AM, Dennis Lundberg > wrote: > > > >> Is the document in a public source repository somewhere? > >> > >> Which version of the Site Plugin are you using? > >> > >> On 2010-09-05 15:39, Benson Margulies wrote: > >>> I'm trying to maintain the XML Schema release page. It is written in > >> .xdoc. > >>> Attributes disappear from href elements. Of the three links below, the > >> last > >>> two retain their class attribute, but the first one loses it. > >>> > >>> Help? > >>> > >>> href="[preferred]/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip" > >>>class="externalLink" > >>> > >>> title="[preferred]/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip" > zip > >>> http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 > >>> " > >>>class="externalLink" > >>> title=" > >>> > >> > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 > >>> ">MD5 > >>> > >>> http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc > >>> " > >>>class="externalLink" > >>>title=" > >>> > >> > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc > >>> ">P > >>> > >> > >> > >> -- > >> Dennis Lundberg > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > >> For additional commands, e-mail: users-h...@maven.apache.org > >> > >> > > > > > -- > Dennis Lundberg > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Xdoc discards some href attributes
On 2010-09-05 16:44, Benson Margulies wrote: > Well, I just edited it extensively to get rid of all the title= attributes, > and this problem went away. The site plugin version is 2.0. Upgrading to Site Plugin 2.1.1 solves the problem for me. > I think you can see the problem with > > https://svn.apache.org/repos/asf/webservices/commons/tags/XmlSchema/XmlSchema-1.4.6/ > > > > > > On Sun, Sep 5, 2010 at 10:37 AM, Dennis Lundberg wrote: > >> Is the document in a public source repository somewhere? >> >> Which version of the Site Plugin are you using? >> >> On 2010-09-05 15:39, Benson Margulies wrote: >>> I'm trying to maintain the XML Schema release page. It is written in >> .xdoc. >>> Attributes disappear from href elements. Of the three links below, the >> last >>> two retain their class attribute, but the first one loses it. >>> >>> Help? >>> >>> >>class="externalLink" >>> >>> title="[preferred]/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip" zip >>> http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 >>> " >>>class="externalLink" >>> title=" >>> >> http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 >>> ">MD5 >>> >>> http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc >>> " >>>class="externalLink" >>>title=" >>> >> http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc >>> ">P >>> >> >> >> -- >> Dennis Lundberg >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Xdoc discards some href attributes
Well, I just edited it extensively to get rid of all the title= attributes, and this problem went away. The site plugin version is 2.0. I think you can see the problem with https://svn.apache.org/repos/asf/webservices/commons/tags/XmlSchema/XmlSchema-1.4.6/ On Sun, Sep 5, 2010 at 10:37 AM, Dennis Lundberg wrote: > Is the document in a public source repository somewhere? > > Which version of the Site Plugin are you using? > > On 2010-09-05 15:39, Benson Margulies wrote: > > I'm trying to maintain the XML Schema release page. It is written in > .xdoc. > > Attributes disappear from href elements. Of the three links below, the > last > > two retain their class attribute, but the first one loses it. > > > > Help? > > > > >class="externalLink" > > > > title="[preferred]/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip" > >> zip > > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 > > " > >class="externalLink" > > title=" > > > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 > > ">MD5 > > > > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc > > " > >class="externalLink" > >title=" > > > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc > > ">P > > > > > -- > Dennis Lundberg > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Xdoc discards some href attributes
Is the document in a public source repository somewhere? Which version of the Site Plugin are you using? On 2010-09-05 15:39, Benson Margulies wrote: > I'm trying to maintain the XML Schema release page. It is written in .xdoc. > Attributes disappear from href elements. Of the three links below, the last > two retain their class attribute, but the first one loses it. > > Help? > > class="externalLink" > > title="[preferred]/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip" >> zip > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 > " >class="externalLink" > title=" > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 > ">MD5 > > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc > " >class="externalLink" >title=" > http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc > ">P > -- Dennis Lundberg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Xdoc discards some href attributes
I'm trying to maintain the XML Schema release page. It is written in .xdoc. Attributes disappear from href elements. Of the three links below, the last two retain their class attribute, but the first one loses it. Help? zip http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 " class="externalLink" title=" http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.md5 ">MD5 http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc " class="externalLink" title=" http://www.apache.org/dist/ws/commons/XmlSchema/1_4_6/XmlSchema-1.4.6-src.zip.asc ">P
Re: Release Plugin Failing on Commit
What is your svn version ? Aren't you facing to this bug : http://jira.codehaus.org/browse/MRELEASE-375 Using the option true should slve it. (It is weird but I was sure we had a note somewhere about this annoying issue we had a long time ago, but I didn't find it) cheers Arnaud On Sep 4, 2010, at 12:16 AM, Neil Chaudhuri wrote: > I am using version 2.0 of the release plugin to tag a new version of my > multi-module application, but at the end when it goes to commit to SVN SCM, I > get the following: > > [INFO] Unable to tag SCM > Provider message: > The svn tag command failed. > Command output: > svn: Path 'svn:///data/svn/client/myapp/tags/myapp-1.1.rc4' does not > exist in revision 5218 > > To be fair, that's true--myapp-1.1.rc4 isn't a folder in the SVN tags folder. > But I figured the plugin would create it and put my source code underneath. > > Another weird thing is that the poms are updated to 1.1.rc4 and committed to > the trunk and checked out to my local machine. The expected behavior is for > 1.1.rc5-SNAPSHOT to be in the trunk and on my local while the 1.1.rc4 is in > the tagged version. > > Here is the plugin configuration: > > >org.apache.maven.plugins >maven-release-plugin >2.0 > > > false >clean install >clean install >-Dmaven.test.skip >svn:///data/svn/client/myapp/tags > >true > > > > Any advice on how to get the expected behavior is appreciated. > > Thanks. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org