Maven dependency mgmt: am I doing something wrong?

(title shortened to simply not make it too long, not because I am l33t).
I have a little frustration that only makes me wonder if I am doing something wrong. My general opinion about maven is that it is a great tool that can save a lot of effort managing builds. However, I sometimes find myself traversing down dependency management hell. The source of my problems: transitive dependencies.
Is it me, or is the maven repository tree polluted? Sometimes I have no other option (that I know of) than adding manual exclusions to my parent poms to filter out transitive dependencies I really do not need, and in some cases even cause conflicts. Now I must say, most of these problems stem from JBoss endorsed projects such as Seam and JBPM.
If for example I add JBPM 3.3.2 to my application I get Jackrabbit, Lucene and whatever else for "free" with it - I exclude them to keep my dependency tree clean because during runtime these dependencies really are not needed.
Worse is when I want to use JBoss Seam 2.1.2 (on JBoss 4.2.3, unfortunately I cannot go to a newer JBoss yet) - to be able to do this I must include a dependency org.jboss.el/jboss-el to the project and war, otherwise a single util class cannot be found (grrr). But this dependency transitively adds javax.el / el-api - at compile scope! If this is let slip through and a war is deployed with this dependency present, a classpath isolated environment will give classloader clashes with the classes that the JBoss server itself provides. So I add an exclusion...
These were just isolated examples and certainly not the only ones I encountered so far. Does anybody else experience these kind of issues? And is there perhaps something obliviously obvious that I am failing to do which would rid me of the need to add manual exclusions? Or am I correct in stating that the repository really is this polluted?

I've seen that effect, but luckily not to a degree where it got a huge problem. Simply write the necessary excludes when you see such a case and go on. It wasn't necessary too often yet.
The problem seems to stem from the fact that many Maven artifacts are simply "project X". That means that each and every feature that project X provides is bundled in a single jar which draws in each and every dependency that project X has anywhere.
The smarter (or at least more maven-friendly) approach would have been to split project X in "project X - core functionality", "project X - lucene search support", "project X - frobnicator" and provide a "project X - everything" module that pulls in all there is for the project.
This way we could pick only those modules that we need in our dependency and therefore also get only those transitive dependencies that we really need.
Unfortunately only a few projects have that kind of architecture, so we'll have to live with the excludes for a while.

Similar Messages

  • HT201318 Hello. I have just built a website using iWeb but cannot upload it. I curently have the 25gb account. There doesn't appear to be any facility here for the net. ASm I correct in thinking I need an upgrade, or am I doing something wrong?  Thanks

    Hello. I have just built a website using iWeb but cannot upload it. I curently have the 25gb account. There doesn't appear to be any facility here for the net. Am I correct in thinking I need an upgrade, or am I doing something wrong?  Thanks

    iCloud does not provide website hosting. You will need to find another website hosting service - there are many to choose from - and upload your site there. How you do this depends on what version of iWeb you have.
    In order to upload your existing site in iWeb '09 and above:
    Click on the name of the site in the sidebar: the publishing settings pane will open. Set 'Publish to' to 'FTP'. Enter the name of the site and a contact address (if desired).
    In the 'FTP Server Settings' section you will need to know the server address (your hosting service can tell you that), and your username and password for that service. Your site will be published in a folder with its name at root level of the server, with an index.html file at root level (which will overwrite any index.html file which may be there already). The 'Directory/Path' field may need to include a path such as '/webspace/' or 'ht_docs/' - this is dependent on your hosting service and they should tell you this. If you want to publish within a folder you can add that to the path.
    You can then click the 'Test connection' button so that iWeb can check that it can get access to your server space. You should enter the URL of the site in the 'URL' field so that rss feeds and internal links have the correct address.
    To publish using an earlier version of iWeb:
    From the File menu choose 'Publish to a folder'. You should create a folder somewhere convenient specifically for this and choose it when publishing to a folder: this folder should not contain anything else.
    You now need an FTP program (FTP is the 'protocol' used for uploading) to upload the contents of the folder to your server.Cyberduck is free (donation requested): Transmit is $34 but I think better. You will need the server address (your hosting service can tell you that), and your username and password for that service. You can drag the contents of your folder to your webspace, or create a folder there and drag the contents to that if you prefer.
    Some facilities that iWeb provided when hosted on MobileMe will not work on other servers: comments on weblogs and photos, password-protecting your site (some hosts may provide this), searching in the weblog, and a hits counter (again, some hosts can provide code for this). Slideshows in iWeb will work on other hosts than MobileMe (they use different code when FTPing which doesn't depend on scripts hosted on MobileMe as the MobileMe version does); however there is an issue with the 'buttons' which control the slideshow which are images hosted on me.com - these depend on images which used to be hosted on MobileMe. The poster 'Old Toad' on the Apple Forums has provided a workaround, described at http://oldtoadstutorials.net/No.26.html.

  • IndentAndSpacingFormat - Bug in API or am I doing something wrong?

    I have a FieldObject in my report with double line spacing (LineSpacing=2) and then try following code to see its spacing format:
    double lineSpacing = myFieldObject.FieldFormat.StringFormat.IndentAndSpacingFormat.LineSpacing;
    Unfortunately this returns 1 instead of 2! It always returns 1, no matter which field object I try it for. Am I doing something wrong?
    Thanks in advance...

    Hi John,
    I've duplicated the issue. It seems to be a problem only when the field type is defined as Memo in CR Designer. If the field is a String type then it returns the correct value.
    I'll have to escalate this to R&D to fix. It will take 2 or more months depending on their load or more.
    Verified indents do not return the correct value also. Likely related to the field type.
    Thank you
    Don
    Edited by: Don Williams on Jan 29, 2009 2:17 PM
    Edited by: Don Williams on Jan 29, 2009 2:46 PM

  • I cannot change from grid view to list view when i contol click on the downloads folder on the dock am i doing something wrong? if so how do i change the ?view in the dock

    when i contol click on the downloads icon in the dock i get the gris view . I thought if you control click, you are able to change the view to fan or list. am I doing something wrong.? Icheck to make sure the contol key is working by doing a screenshot and it works there. What am I doing wrong?

    Needs to be a Stack ?

  • I have added photos to My Photo Stream on my PC (Windows 7). They appear in the Uploads folder instead. They do not upload to iCloud. Am I doing something wrong?

    I have added photos to My Photo Stream on my PC (Windows 7). They appear in the Uploads folder instead. They do not upload to iCloud. Am I doing something wrong?

    Unfortunately, photo stream on a PC is iffy at best.  Many people have problems getting it to work properly, including myself.  A work around would be to use an app like PhotoSync on your PC, which can send photos wirelessly to the camera roll on any of your iOS devices on the same wifi network.  Once in the camera roll, you iOS device will be added to your photo stream.

  • Iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone.

    My iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone. I am still able to download apps and music from itunes on my phone though.
    I already restored it but that didn't help.
    TIA for any replies.

    iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup? 

  • I have backed up my old phone to itunes, however, when I try to restore data to new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I have backed up my old phone to itunes, however, when I try to restore data to my new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I'm having this EXACT same problem with my iPhone 4, and I have the same computer stats (I have a Samsung Series 7)

  • I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what....

    I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what.
    The tools are not responding when I try to use them.  Some of them work sometimes, but not others and some don't work at all.  I'm in a design class online and I need these tools desperately.  I have an assignment due Monday and I'm losing the whole weekend because Tech Support is only open M-F!
    Any help anyone can give me will be appreciated.
    Thanks,
    Rose Ireland

    Maybe these links provide some pertinent information.
    Optimize performance | Photoshop CS4, CS5, CS6, CC
    Photoshop: Basic Troubleshooting steps to fix most issues

  • HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    I have the same problem, and the solutions in   Error changing modules | Lightroom do not work.  Even uninstalling and reinstalling a new copy did not solve the problem.  As anyone got an idea what other lingering files might be causing the problem?

  • After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    DVD's are only 640 x 480 (interlaced), so yes, the quality is not nearly as good.  You should probably create your .mov in DV format to best match the DVD format

  • Is this a bug in ipod software or am i doing something wrong?

    I got my ipod video a few weeks ago and was excited to be able to carry all 7000+ songs around in one place.. but then i ran into this problem and i'm not sure if it's a bug or if i'm doing something wrong.
    let's say i have exactly one album by an artist.. and i also happen to have some singles from the artist, with no album set... (i prefer not to have albums set for songs i don't have the entire album for, to keep from having to sort through a truckload of albums i don't completely have).
    when i browse by artist, and i select the artist, only the songs in the album shows up, all the non-album labeled songs are not visible! the same thing happens when i choose by genre..
    in fact the only way to find those songs not bound to an album is to select them from the song list.. and having to scroll through 7000+ songs to find one really bites..
    curiously enough, if there is two or more albums, then i can find the songs without albums.. definately sounds like a bug to me.. the software for the ipod video is only at v1.0, maybe they'll fix this (hopefully other ipods don't have this problem, i have no way of knowing though).
    one work around i have tried is to set an empty album for the artist's song that has none, but i mean i don't want to do that for all my non-albumed songs because i'm interested in preserving the timestamp of songs (to know when i got them) and i can't reasonably search for songs that have exactly one album to just set those..

    when i go to Music > Artist > All, as you suggested, i see all the albums i have listed. doesn't really relate to my problem with artists with songs in one album, as well as song w/o album set, and the latter not showing up.
    but that reminds me, why is it when i go to the All section from a particular artist and they do have more than one album (or even no albums), the order of the songs is in the order they are in the albums.. if i wanted the order it is on albums, i would have selected that album for example.. it would be nice if the songs were in alphabetical order when you're NOT browsing by album, making a particular song easier to find (what if you have thirteen albums for example and u aren't sure which album a song is on, now you have to scroll through a seemingly random ordered list to find one song, alphabetical would be SOOOO helpful!)

  • I just purchased Adobe Acrobat in order to convert a pdf to an excel program but it appears that it will only convert to Word, not excel? Am I doing something wrong or should I cancel my subscription?

    I just purchased Adobe Acrobat in order to convert a pdf to an excel program but it appears that it will only convert to Word, not excel? Am I doing something wrong or should I cancel my subscription?

    What happens when you convert to excel?

  • Using the crop tool in Lightroom 5 I can only move and crop my photos from the top. Am I doing something wrong?

    I am new to Lightroom 5 and find I cannot crop my photos as easily as I did in iPhoto. I would like to be able to drag them if I choose a custom size or crop them from the bottom as well as from the top but my two sided arrow disappears when I work at the bottom of the photo. Am I doing something wrong?

    I would suggest you trash the prefs.
    Quit Lightroom
    Launch Finder and find the user Library by clicking the Go menu whilst holding down the Optn (alt) key (n.b. the library is hidden until you press the optn key) and inside the Library folder select the preferences folder. Then trash the following file:
    com.adobe.Lightroom5.plist
    Then re-launch Lightroom
    It’s then worth clearing each cache. Go to the top menu bar:
    Lightroom >> Preferences >> File Handling (tab)
    Click the Purge Cache button under Camera Raw Cache Settings; then click the Purge Cache button under Video Cache Settings. Finally click OK.

  • Ive just signed up for the adobe photoshop pack, i use a mac, when i click download, nothing is happening..  Am I doing something wrong?? When I try and open the software I already had from trial it says its expired,  or i need to use a serial number... H

    Ive just signed up for the adobe photoshop pack, i use a mac, when i click download, nothing is happening..  Am I doing something wrong?? When I try and open the software I already had from trial it says its expired,  or i need to use a serial number... HELP Anyone else experienced this?

    If there is an option to "license this software", and it takes you to a sign-in page with username and password (not a serial number) - then just go ahead and sign in.
    If it insists on a serial number you need to uninstall the trial. Then try to download again.

  • IPhoto won't delete the photos from my iphone once I have imported them and indicated to delete the photos from my phone.  Am I doing something wrong?

    I have imported several hundred photos from my iPhoen 5C into iPhoto library.  I selected yes to delete them from my iPhone but the photos remain on the phone.  Am i doing something wrong.  I don't want to pay apple a fee to get this answered via their support system.  This should be straight forward, shouldn't it?  Thanks.

    Are you asking about iCloud Photo Library (Beta) as described in: iCloud Photo Library beta FAQ - Apple Support   ?
    In that case you will still see all photos on your iPhone, even after uploading the Photos to the iCloud Photo Library.  The photos on your iPhone may be light-weight optimized previews, if you have the setting
    Settings > iCloud > Photos or Settings > Photos & Camera > iCloud Photo Library > Optimize [device] Storage   enabled.
    But as long as you have enough free storage, will the your iPhone keep the full resolution versions of the photos you access most frequently.

Maybe you are looking for