Whos Online

Joomla

We have 194 guests and 0 members online

    Forums

    We have 27 guests and 0 members online

      Tags

      android (7) anonymity (9) ant (10) apache (54) apple (7) atv (18) australia (8) bernardet (7) bombardier (7) book (7) browser (10) business (8) caliber30 (61) canon (9) cedricwalter (6) checklist (9) chrome (6) classpath (6) collection (7) continuousbuild (25) design (13) designpattern (23) desktop (7) development (28) DIY (9) draganflyer5 (9) dslr (14) eclipse (30) ek4 (8) electronic (18) enfrancais (66) FAQ (6) figures (13) firefox (20) firmware (7) flash (9) flickr (6) framework (12) fud (9) game (19) gaming (6) girls (6) google (68) gpl (8) gps (9) hacking (23) hdtv (7) hollidays (15) homecinema (14) homepage (20) howto (66) infrastructure (6) innoveo (7) iphone (6) italy (10) itsatrap (8) java (73) javascript (11) joke (11) joomla (215) joomla15 (33) joomlacloud (7) junit (9) kde (10) kyosho (62) links (17) linux (122) LittleBigPlanet (16) mambo (18) manual (8) manurhin (9) maps (6) maven (36) mediacenter (9) microsoft (52) modding (10) module (17) morespeed (16) motor (8) motorcycle (13) myhomepage (14) mysql (14) nas (14) neogeo (20) opencomment (27) opensource (61) opensuse (10) oss (7) p2p (7) patch (32) pc (12) pdf (8) php (26) picasa (7) plugin (65) privacy (9) projector (11) protection (7) ps3 (42) publicity (9) quad (18) raptor30 (7) rchelicopter (161) review (32) robot (9) robotic (7) rss (8) safety (8) scooter (29) security (62) securityimage (8) securityimage3 (6) securityimage4 (21) securityimage5 (19) securityimages (14) securityimages5 (6) server (17) simulator (8) smugmug (12) snk (16) software (31) sony (38) spammer (7) statistics (13) storage (7) subversion (6) suse (12) switzerland (7) teamcity (15) testing (9) thundertiger (20) tips (31) tomcat (7) tomtom (7) translatetofrench (8) trip (17) troubleshooting (7) tutorial (9) twitter (6) upgrade (15) vespa (10) video (17) vintage (8) watercooling (9) web2.0 (28) windows (14) xbmc (7) xbox (10) zurich (16) zürich (11)

      Forums

      Live information from Open Source Joomla! 1.0/1.5 development and support for waltercedric.com components/plugins/modules

      Skype me

      My status

      Follow me

      Facebook Digg LinkedIn MySpace Twitter Playstation network Xbox Live
      Digg Del.icio.us Reddit Simpy StumbleUpon Ask Facebook Slashdot Backflip Spurl MisterWong Netvouz Diigo Segnalo RawSugar Shadows Google Furl Newsvine Yahoo Technorati Live Blogmarks Netscape Fark Wink LinkaGoGo Bibsonomy FeedMe Magnolia Blue Tailrank Del.irio.us Y PlugIM SpotBack LinkSwarm

      Gallery

      Twitter

      Google Buzz


      Re: No related articles are displayed - Not in my case. I have much more than one article in the categorie...
      8 hours ago,

      Re: Rocket Themes templates - Cedric, thanks for working on it! I have run the xdelta3 program to get the new template, but then it won't allow me to unzip the resulting file to patch the server. I had to use the -s switch to get the source file recognized so my code looks l...
      9 hours ago,

      Re: Rocket Themes templates - Hello again... I have more information Cedric. When I go into the contact details I want to display the captcha on, I get an error. Warning: file_get_contents(/home/mico7284/public_html/islandtrader.info/administrator/components/com_contact/contact_ite...
      10 hours ago,

      Re: Rocket Themes templates - Cedric YOU ROCK! Thanks so much for the patch on crystalline template! I now have captcha on my log in form... however, it is not showing up on my contact form... See attached jpeg for a screen shot of the error I get for the contact patch under check ...
      10 hours ago,

      Re: No related articles are displayed - HI all I am back for support. I did help another user having only one article in each categories in the past. This module or plugin display articles which are in the same categories. If you have only article in every categories, it wont display anythin...
      12 hours ago,
       
      Maven dependencies under control: excluding unwanted transitive dependencies Print E-mail
      User Rating: / 8
      PoorBest 
      Thursday, 17 July 2008 12:08

      maven-logo-2

      What can you do to avoid that when you use one Maven dependency, to also inherit some other undesirable older
      dependency (which is to say from an older transitive dependency).

      The fix to this is to add an exclusion to the dependency in question.
      For example, if we start with a dependency upon version 1.2 of the jxpath library:

      <dependency>
         <groupId>common-jxpath</groupId>
         <artifactId>common-jxpath</artifactId>
         <version>1.2</version>
         <scope>compile</scope> <!-- default scope for sake of example-->
      </dependency>

      This dependency to jxpath 1.2 will bring in an old version of log4j 3.8. In order to ensure that I am using the latest
      versions of log4j (4.4),

      I need to put in an exclusion for these transitive dependencies of common-jxpath, which I do as follows:

      <dependency>
         <groupId>common-jxpath</groupId>
         <artifactId>common-jxpath</artifactId>
         <version>1.2</version>
         <scope>compile</scope> 
         <exclusions>
            <exclusion>
               <artifactId>junit</artifactId>
               <groupId>junit</groupId>
            </exclusion>
            <!-- I can put many of these here -->
      </exclusions> </dependency>

      Having excluded them, they will be any longer in the build.

      Now, there is still too many thing that can occur in the background

      • Another 3rd party artifact may include log4j by using a transitive dependencies, and then you will have to rely/trust transitive
        dependency mediation
      • You can explicitly include the versions that you want in all pom.xml or better in your parent pom.xml

      Transitive dependency mediation

      Dependency mediation - this determines what version of a dependency will be used when multiple versions of an artifact are
      encountered. Currently, Maven 2.0 only supports using the "nearest definition" which means that it will use the version of
      the closest dependency to your project in the tree of dependencies. You can always guarantee a version by declaring it
      explicitly in your project's POM. Note that if two dependency versions are at the same depth in the dependency tree, until
      Maven 2.0.4 it was not defined which one would win, but since Maven 2.0.5 it's the order in the declaration that counts: the
      first declaration wins.
      "nearest definition" means that the version used will be the closest one to your project in the tree of dependencies, eg. if
      dependencies for A, B, and C are defined as A -> B -> C -> D 2.0 and A -> E -> D 1.0, then D 1.0 will be used when building A
      because the path from A to D through E is shorter. You could explicitly add a dependency to D 2.0 in A to force the use of D 2.0

      find out what the transitive dependencies are?

      You can't control what you do not know!

      One that can be use during build stage or explicitly use on command line, is the maven plugin maven-dependency-plugin

         <build>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-dependency-plugin</artifactId>
               </plugin>
            </plugins>
         </build>

      and then use the goal dependency:tree, so a typical build strategy could look like 

      mvn clean install dependency:tree 
      or
      mvn clean install dependency:list   (easier to tokenize in excel sheet)
      So it look like
      With no exclusions

      [INFO] [dependency:tree]
      [INFO] com.test:test:jar:0.0.1-SNAPSHOT
      [INFO] \- commons-jxpath:commons-jxpath:jar:1.2:compile
      [INFO]    +- xerces:xerces:jar:1.2.3:compile
      [INFO]    +- javax.servlet:servlet-api:jar:2.2:compile
      [INFO]    +- junit:junit:jar:3.8:compile
      [INFO]    +- ant:ant-optional:jar:1.5.1:compile
      [INFO]    +- xml-apis:xml-apis:jar:1.0.b2:compile
      [INFO]    +- jdom:jdom:jar:b9:compile
      [INFO]    +- commons-beanutils:commons-beanutils:jar:1.4:compile
      [INFO]    +- commons-logging:commons-logging:jar:1.0:compile
      [INFO]    \- commons-collections:commons-collections:jar:2.0:compile
      [INFO] [dependency:list]
      [INFO]
      [INFO] The following files have been resolved:
      [INFO]    ant:ant-optional:jar:1.5.1:compile
      [INFO]    commons-beanutils:commons-beanutils:jar:1.4:compile
      [INFO]    commons-collections:commons-collections:jar:2.0:compile
      [INFO]    commons-jxpath:commons-jxpath:jar:1.2:compile
      [INFO]    commons-logging:commons-logging:jar:1.0:compile
      [INFO]    javax.servlet:servlet-api:jar:2.2:compile
      [INFO]    jdom:jdom:jar:b9:compile
      [INFO]    junit:junit:jar:3.8:compile
      [INFO]    xerces:xerces:jar:1.2.3:compile
      [INFO]    xml-apis:xml-apis:jar:1.0.b2:compile

       

      With exclusions

      [dependency:tree]
      [INFO] com.test:test:jar:0.0.1-SNAPSHOT
      [INFO] \- commons-jxpath:commons-jxpath:jar:1.2:compile
      [INFO]    +- xerces:xerces:jar:1.2.3:compile
      [INFO]    +- javax.servlet:servlet-api:jar:2.2:compile
      [INFO]    +- ant:ant-optional:jar:1.5.1:compile
      [INFO]    +- xml-apis:xml-apis:jar:1.0.b2:compile
      [INFO]    +- jdom:jdom:jar:b9:compile
      [INFO]    +- commons-beanutils:commons-beanutils:jar:1.4:compile
      [INFO]    +- commons-logging:commons-logging:jar:1.0:compile
      [INFO]    \- commons-collections:commons-collections:jar:2.0:compile
      [INFO] [dependency:list]
      [INFO]
      [INFO] The following files have been resolved:
      [INFO]    ant:ant-optional:jar:1.5.1:compile
      [INFO]    commons-beanutils:commons-beanutils:jar:1.4:compile
      [INFO]    commons-collections:commons-collections:jar:2.0:compile
      [INFO]    commons-jxpath:commons-jxpath:jar:1.2:compile
      [INFO]    commons-logging:commons-logging:jar:1.0:compile
      [INFO]    javax.servlet:servlet-api:jar:2.2:compile
      [INFO]    jdom:jdom:jar:b9:compile
      [INFO]    xerces:xerces:jar:1.2.3:compile
      [INFO]    xml-apis:xml-apis:jar:1.0.b2:compile

       
      see Maven Dependency Plugin

      Related Posts

      relatedArticles

      Tags See All Tags Add New Tag...

      Please Enter New Tags Separated By Comma's
        Or Close

      apache  classpath  control  dependencies  maven 



      Comments
      Add New Search RSS
      +/-
      Write comment
      Name:
      Email:
       
      Website:
      Title:
      UBBCode:
      [b] [i] [u] [url] [quote] [code] [img] 
       
       
      :):grin;)8):p:roll:eek:upset:zzz:sigh:?:cry
      :(:x
       
      Please input the anti-spam code that you can read in the image.
      Benoît  - Thanks |200.111.84.xxx |2008-10-11 03:52:58
      Thank you Cédric.
      It's exactly what i was looking for.
      Martin  - Thanks |89.57.35.xxx |2009-01-12 19:58:46
      This post helped me a lot! Thx. :)
      Teva BREDIN  - Thanks too :) |192.44.63.xxx |2009-02-16 11:51:22
      This is what i was looking for too!

      Thx ;)
       

      Top 200 Tags

      Donation

      Thank You for supporting my work
      Click Here to make a donation