<br><br><div class="gmail_quote">On Thu, Feb 24, 2011 at 10:21 PM, Thomas Heute <span dir="ltr">&lt;<a href="mailto:theute@redhat.com">theute@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  
    
  
  <div bgcolor="#ffffff" text="#000000"><div class="im">
    On 02/24/2011 12:20 PM, <a href="mailto:aheritier@gmail.com" target="_blank">aheritier@gmail.com</a> wrote:
    <blockquote type="cite">
      <div><br>
        <div class="gmail_quote">On Thu, Feb 24, 2011 at 6:01 PM, Thomas
          Heute <span dir="ltr">&lt;<a href="mailto:theute@redhat.com" target="_blank">theute@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            Now that our Maven expert is back :)<br>
          </blockquote>
          
          He he :-)
          <div>Effectively, I&#39;m back and in VN this time :-D</div>
        </div>
      </div>
    </blockquote></div>
    Oh, still on vacation then ;) <br></div></blockquote><div><br></div><div>almost :-) </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">

<div class="im">
    <blockquote type="cite">
      <div>
        <div class="gmail_quote">
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            I plan to do some update in our GateIn parent, the diff
            below is pretty much self explanatory, but here are the
            points:<br>
            <br>
               - Removed repositories + pluginRepositories definitions,
            it&#39;s supposed to be a best practice, correct me if I&#39;m wrong
            (But will require people to have those defined in their
            local installation or we add them in the root pom.xml
            instead)<br>
          </blockquote>
          <div>+10000 : It will also increse your build time as more you
            have repositories in your settings/poms, more maven will
            loose time to try missing deps or snapshots updates in them</div>
          <div><a href="http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/" target="_blank">http://www.sonatype.com/people/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/</a></div>


          <div>In theory (sorry the wiki is down I hope it is the good
            link:( ) you should follow this doc and ask gatein community
            to do it to contribute :</div>
          <div><a href="http://community.jboss.org/wiki/mavensettings" target="_blank">http://community.jboss.org/wiki/mavensettings</a></div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">    - Added JDK 6 as min version<br>
          </blockquote>
          <div><br>
          </div>
          <div>Instead of setting jdk.min.version you should better set
            maven.compiler.source and maven.compiler.target to 1.6 if
            this is what is targeted now</div>
          <div>
            You can see them here : <a href="http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/jboss-parent-5/pom.xml" target="_blank">http://anonsvn.jboss.org/repos/maven/poms/jboss-parent-pom/tags/jboss-parent-5/pom.xml</a></div>


        </div>
      </div>
    </blockquote>
    <br></div>
    Shouldn&#39;t we do all ?<br>
    jdk.min.version for the maven checker so that it gives a nice error
    message if one tries to build with JDK 5 or older and
    maven.compiler.* to pass to the Java compiler ?<br>
    PS: jdk.min.version was defined in GateIn root pom, I just moved it
    up to the shared parent.</div></blockquote><div><br></div><div>By default in jboss-parent pom you have : <span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; ">&lt;jdk.min.version&gt;${maven.compiler.source}&lt;/jdk.min.version&gt;</span></div>

<div><span class="Apple-style-span" style="font-family: monospace; white-space: pre-wrap; font-size: medium; ">thus it takes the value of compiler source level</span></div><meta charset="utf-8"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div bgcolor="#ffffff" text="#000000"><div class="im"><br>
    <br>
    <blockquote type="cite">
      <div>
        <div class="gmail_quote">
          <div>
             </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">    - Removed the Maven release plugin
            parameters, they are only meaningful for GateIn Portal and
            not for the components. Plus we added new profiles for new
            packaging (AS6, AS6, Tomcat 6, Tomcat 7, Jetty). This would
            be added in the root pom of GateIn Portal<br>
          </blockquote>
          <div><br>
          </div>
          <div>I agree</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">    - Removed
            org.codehaus.mojo:jboss-packaging-maven-plugin declaration,
            I think it&#39;s only to build SAR packages. And SAR packages
            are only used for a component or 2.<br>
            <br>
          </blockquote>
          <div><br>
          </div>
          <div>+1</div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <br>
            Arnaud, what do you think ?<br>
          </blockquote>
          <div><br>
          </div>
          <div>It&#39;s a little bit out of your scope but we should either
            think to update plugins versions defined in jboss parent pom
            (we could see with Paul Gier) or override these properties
            in GateIn. A lot of plugins were updated to take care of
            Maven 3 and to have a better behavior in // builds for
            exemple.</div>
          <div>You can easily find the list of latest versions of
            plugins with : mvn <span style="font-family:Verdana,Helvetica,Arial,sans-serif;font-size:13px"><a href="http://mojo.codehaus.org/versions-maven-plugin/display-plugin-updates-mojo.html" style="text-decoration:none;color:rgb(51, 102, 170)" target="_blank">versions:display-plugin-updates</a></span></div>


          <div><a href="http://mojo.codehaus.org/versions-maven-plugin/examples/display-plugin-updates.html" target="_blank">http://mojo.codehaus.org/versions-maven-plugin/examples/display-plugin-updates.html</a></div>
          <div><br>
          </div>
          <div>I may do it but it won&#39;t be I think before my travel back
            from VN (in 10 days)</div>
          <div><br>
          </div>
          <div>If you have few time it is easy: You update these
            versions in gatein parent-pom, you install it, you update
            locally all your gatein projects to use this SNAPSHOT and
            you test a full build.</div>
        </div>
      </div>
    </blockquote>
    <br></div>
    Ok, i did the update in parent that gives this as a summarize:<br>
        &lt;version.antrun.plugin&gt;1.6&lt;/version.antrun.plugin&gt;<br>
        &lt;version.clean.plugin&gt;2.4.1&lt;/version.clean.plugin&gt;<br>
       
    &lt;version.checkstyle.plugin&gt;2.6&lt;/version.checkstyle.plugin&gt;<br>
       
    &lt;version.compiler.plugin&gt;2.3.2&lt;/version.compiler.plugin&gt;<br>
       
    &lt;version.dependency.plugin&gt;2.2&lt;/version.dependency.plugin&gt;<br>
        &lt;version.deploy.plugin&gt;2.5&lt;/version.deploy.plugin&gt;<br>
       
    &lt;version.install.plugin&gt;2.3.1&lt;/version.install.plugin&gt;<br>
        &lt;version.jar.plugin&gt;2.3.1&lt;/version.jar.plugin&gt;<br>
       
    &lt;version.surefire.plugin&gt;2.7.2&lt;/version.surefire.plugin&gt;<br>
       
    &lt;version.resources.plugin&gt;2.4.3&lt;/version.resources.plugin&gt;<br>
        &lt;version.war.plugin&gt;2.1.1&lt;/version.war.plugin&gt;<br>
        &lt;version.ear.plugin&gt;2.5&lt;/version.ear.plugin&gt;<br>
        &lt;version.site.plugin&gt;2.2&lt;/version.site.plugin&gt;<br>
        &lt;version.source.plugin&gt;2.1.2&lt;/version.source.plugin&gt;<br>
        &lt;version.javadoc.plugin&gt;2.7&lt;/version.javadoc.plugin&gt;<br>
       
&lt;version.buildnumber.plugin&gt;1.0-beta-4&lt;/version.buildnumber.plugin&gt;<br>
    <br>
    <br>
    Requires Maven 3, so I didn&#39;t update:<br>
    [INFO]   maven-site-plugin ................................. 2.2
    -&gt; 3.0-beta-3<br>
    <br></div></blockquote><div><br></div><div>I think we don&#39;t use the site thus we don&#39;t care. But if you want to be clean there is a tip to be compatible with both versions</div><div>You set the default version to 2.2 like you did</div>

<div>And you had this profile :</div><div><meta charset="utf-8"><span class="Apple-style-span" style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px; "><pre class="code-xml" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: left; overflow-x: auto; overflow-y: auto; font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 1.3; ">

    <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;profile&gt;</span>
      <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;id&gt;</span>maven-3<span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/id&gt;</span>
      <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;activation&gt;</span>
        <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;file&gt;</span>
          <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; "><span class="code-comment" style="color: rgb(128, 128, 128); background-color: inherit; ">&lt;!--  This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) --&gt;</span></span>
          <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;exists&gt;</span>${basedir}<span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/exists&gt;</span>
        <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/file&gt;</span>
      <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/activation&gt;</span>
      <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;build&gt;</span>
        <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;properties&gt;</span>
          <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; "><span class="Apple-style-span" style="font-family: arial; font-size: small; color: rgb(0, 0, 0); line-height: normal; white-space: normal; ">&lt;version.site.plugin&gt;2.3-beta-3&lt;/version.site.plugin&gt;</span></span>
        <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/properties&gt;</span>
      <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/build&gt;</span>
    <span class="code-tag" style="color: rgb(0, 0, 145); background-color: inherit; ">&lt;/profile&gt;</span></pre></span></div><div> </div><div>More details : <a href="https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html">https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html</a></div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">
    In root pom we should upgrade:<br>
    [INFO]   org.codehaus.mojo:build-helper-maven-plugin ..............
    1.4 -&gt; 1.5<br>
    [INFO]   org.codehaus.mojo:exec-maven-plugin ....................
    1.1.1 -&gt; 1.2<br>
    [INFO]   org.jibx:maven-jibx-plugin ...........................
    1.2.1 -&gt; 1.2.2<br>
    <br>
    We need to specify the plugin version in: web/eXoResources/pom.xml
    and examples/skins/simpleskin/pom.xml:<br>
    [WARNING] The following plugins do not have their version specified:<br>
    [WARNING]   gr.abiss.mvn.plugins:maven-jstools-plugin
    .................... 0.7<br>
    <br>
    In packaging/reports/pom.xml we should upgrade:<br>
    [INFO]  
    org.jvnet.maven-antrun-extended-plugin:maven-antrun-extended-plugin 
    1.13 -&gt; 1.41<br>
    <br>
    In testsuite/selenium-snifftests/pom.xml we should upgrade:<br>
    [INFO]   org.codehaus.mojo:selenium-maven-plugin ..................
    1.0 -&gt; 1.1<br>
    <br></div></blockquote><div><br></div><div>If they all extends the gatein-parent you can define this versions directly in it instead of hardcoding it in child projects.</div><div>Like in jboss-parent just declare all missing plugins in build/pluginsManagement/plugins with a property for each version.</div>

<div><br></div><div>Cheers</div><div><br></div><div>Arnaud</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">
    Thanks !<br><font color="#888888">
    Thomas.</font><div><div></div><div class="h5"><br>
    <br>
    <blockquote type="cite">
      <div>
        <div class="gmail_quote">
          <div><br>
          </div>
          
          <div>cheers</div>
          <div><br>
          </div>
          <div>arnaud</div>
          <div><br>
          </div>
          <div> </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <br>
            Thomas.<br>
            <br>
            <br>
            <br>
            <br>
            Here is the diff:
            <div><br>
              Index: pom.xml<br>
===================================================================<br>
              --- pom.xml    (revision 5914)<br>
              +++ pom.xml    (working copy)<br>
              @@ -14,7 +14,7 @@<br>
              <br>
              &lt;groupId&gt;org.gatein&lt;/groupId&gt;<br>
              &lt;artifactId&gt;gatein-parent&lt;/artifactId&gt;<br>
              - &lt;version&gt;1.0.3-GA-SNAPSHOT&lt;/version&gt;<br>
              + &lt;version&gt;1.1.0-GA-SNAPSHOT&lt;/version&gt;<br>
              &lt;packaging&gt;pom&lt;/packaging&gt;<br>
              <br>
              &lt;scm&gt;<br>
            </div>
            @@ -40,12 +40,11 @@
            <div><br>
              &lt;!-- maven-enforcer-plugin --&gt;<br>
              &lt;maven.min.version&gt;2.2.1&lt;/maven.min.version&gt;<br>
              <br>
              + &lt;jdk.min.version&gt;1.6&lt;/jdk.min.version&gt;<br>
              +<br>
              &lt;!-- maven-release-plugin --&gt;<br>
&lt;autoVersionSubmodules&gt;true&lt;/autoVersionSubmodules&gt;<br>
              <br>
              - &lt;!-- maven-release-plugin --&gt;<br>
              - &lt;arguments&gt;-Prelease,pkg-tomcat,pkg-jbossas
              -DskipTests&lt;/arguments&gt;<br>
            </div>
            <div>
              -<br>
              &lt;!-- cf <a href="http://jira.codehaus.org/browse/MRELEASE-3" target="_blank">http://jira.codehaus.org/browse/MRELEASE-3</a>
              --&gt;<br>
              &lt;preparationGoals&gt;clean
              install&lt;/preparationGoals&gt;<br>
            </div>
            &lt;/properties&gt;<br>
            @@ -60,11 +59,6 @@
            <div><br>
              &lt;!-- Plugins are sorted by shortname : clean, deploy,
              ... --&gt;<br>
              &lt;plugins&gt;<br>
              &lt;plugin&gt;<br>
              - &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;<br>
              -
              &lt;artifactId&gt;jboss-packaging-maven-plugin&lt;/artifactId&gt;<br>
              - &lt;version&gt;2.0-beta-1&lt;/version&gt;<br>
              - &lt;/plugin&gt;<br>
              - &lt;plugin&gt;<br>
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>
              &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;<br>
              &lt;configuration&gt;<br>
            </div>
            @@ -167,43 +161,6 @@
            <div>
              <div><br>
                &lt;/profiles&gt;<br>
                <br>
                &lt;!-- **************** --&gt;<br>
                - &lt;!-- Repositiories    --&gt;<br>
                - &lt;!-- **************** --&gt;<br>
                - &lt;repositories&gt;<br>
                - &lt;repository&gt;<br>
                - &lt;id&gt;jboss-public-repository-group&lt;/id&gt;<br>
                - &lt;name&gt;JBoss Public Maven Repository
                Group&lt;/name&gt;<br>
                - &lt;url&gt;<a href="https://repository.jboss.org/nexus/content/groups/public/" target="_blank">https://repository.jboss.org/nexus/content/groups/public/</a>&lt;/url&gt;<br>
                - &lt;layout&gt;default&lt;/layout&gt;<br>
                - &lt;releases&gt;<br>
                - &lt;enabled&gt;true&lt;/enabled&gt;<br>
                - &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;<br>
                - &lt;/releases&gt;<br>
                - &lt;snapshots&gt;<br>
                - &lt;enabled&gt;true&lt;/enabled&gt;<br>
                - &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;<br>
                - &lt;/snapshots&gt;<br>
                - &lt;/repository&gt;<br>
                - &lt;/repositories&gt;<br>
                -<br>
                - &lt;pluginRepositories&gt;<br>
                - &lt;pluginRepository&gt;<br>
                - &lt;id&gt;jboss-public-repository-group&lt;/id&gt;<br>
                - &lt;name&gt;JBoss Public Maven Repository
                Group&lt;/name&gt;<br>
                - &lt;url&gt;<a href="https://repository.jboss.org/nexus/content/groups/public/" target="_blank">https://repository.jboss.org/nexus/content/groups/public/</a>&lt;/url&gt;<br>
                - &lt;layout&gt;default&lt;/layout&gt;<br>
                - &lt;releases&gt;<br>
                - &lt;enabled&gt;true&lt;/enabled&gt;<br>
                - &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;<br>
                - &lt;/releases&gt;<br>
                - &lt;snapshots&gt;<br>
                - &lt;enabled&gt;true&lt;/enabled&gt;<br>
                - &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;<br>
                - &lt;/snapshots&gt;<br>
                - &lt;/pluginRepository&gt;<br>
                - &lt;/pluginRepositories&gt;<br>
                -<br>
                - &lt;!-- **************** --&gt;<br>
                &lt;!-- Reporting        --&gt;<br>
                &lt;!-- **************** --&gt;<br>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br>