<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
btw. why are we not just using Maven 2.1+ instead of Maven 2.0 ?<br>
<br>
/max<br>
<br>
Jaikiran Pai wrote:
<blockquote cite="mid:4AAD1DD2.6040507@redhat.com" type="cite">
  <pre wrap="">Ian Springer wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Maybe:

[1.6,1.8)

would work?
    </pre>
  </blockquote>
  <pre wrap=""><!---->After reading the profile activation doc, it turns out that for Maven 
2.0.x version the &lt;jdk&gt; doesn't recognize version ranges (Maven 2.1 
does) 
<a class="moz-txt-link-freetext" href="http://maven.apache.org/guides/introduction/introduction-to-profiles.html">http://maven.apache.org/guides/introduction/introduction-to-profiles.html</a>. 
The workaround is to introduce a new (duplicate) profile similar to 
jdk1.6 profile which will be activated on JDK-1.7:

 &lt;!-- Maven 2.0.x does not allow version ranges for &lt;jdk&gt; for activating 
profiles.
        Maven 2.1 does 
<a class="moz-txt-link-freetext" href="http://maven.apache.org/guides/introduction/introduction-to-profiles.html">http://maven.apache.org/guides/introduction/introduction-to-profiles.html</a>
        So for Maven 2.0.x we create another profile which will do the same
        as the jdk6 profile, except that it will be activated for JDK 
1.7 version --&gt;
    &lt;profile&gt;
      &lt;id&gt;jdk7&lt;/id&gt;
      &lt;activation&gt;
        &lt;jdk&gt;1.7&lt;/jdk&gt;
      &lt;/activation&gt;
      &lt;build&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;configuration&gt;
              &lt;source&gt;1.7&lt;/source&gt;
              &lt;target&gt;1.7&lt;/target&gt;
              &lt;excludes&gt;
                &lt;exclude&gt;org/jboss/resource/adapter/jdbc/jdk5/**&lt;/exclude&gt;
              &lt;/excludes&gt;
            &lt;/configuration&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/build&gt;
    &lt;/profile&gt;


Adding this to the "connector" and a similar one to the "varia" 
component pom.xml should get us past the profile activation issues.

After these changes however, i am running into a (Sun) JDK 1.7 bug which 
causes an Ant "unzip" task to fail:

[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred 
while executing this line:
/home/jpai/jbossas/trunk/build/build.xml:2302: 
java.lang.IllegalArgumentException: invalid entry crc-32

Sun Bug reference: 
<a class="moz-txt-link-freetext" href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6869274">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6869274</a>

java -version

java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b66)
Java HotSpot(TM) Server VM (build 16.0-b06, mixed mode)

As for the "profile" activation changes, i'll be committing them this 
week after a quick discussion Paul Gier. The JIRA for this is 
<a class="moz-txt-link-freetext" href="https://jira.jboss.org/jira/browse/JBAS-7243">https://jira.jboss.org/jira/browse/JBAS-7243</a>

regards,
-Jaikiran


  </pre>
  <blockquote type="cite">
    <pre wrap="">On 9/12/2009 1:11 PM, Jaikiran Pai wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Ian Springer wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Building AS trunk w/ JDK7 also fails for me 
(<a class="moz-txt-link-freetext" href="http://wwwapps.rdu.redhat.com/w3xpastebin/pastebin.php?show=13872">http://wwwapps.rdu.redhat.com/w3xpastebin/pastebin.php?show=13872</a>). 
        </pre>
      </blockquote>
      <pre wrap="">This one is because of the way the profile activation configuration 
in connector/pom.xml 
<a class="moz-txt-link-freetext" href="http://anonsvn.jboss.org/repos/jbossas/trunk/connector/pom.xml:">http://anonsvn.jboss.org/repos/jbossas/trunk/connector/pom.xml:</a>

&lt;profiles&gt;
&lt;profile&gt;
&lt;id&gt;jdk6&lt;/id&gt;
&lt;activation&gt;
&lt;jdk&gt;1.6&lt;/jdk&gt;
&lt;/activation&gt;
&lt;build&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;source&gt;1.6&lt;/source&gt;
&lt;target&gt;1.6&lt;/target&gt;
&lt;excludes&gt;
&lt;exclude&gt;org/jboss/resource/adapter/jdbc/jdk5/**&lt;/exclude&gt;
&lt;/excludes&gt;


This profile is activated only with JDK-6 because of the 
configuration. I tried changing it to :

&lt;activation&gt;
&lt;jdk&gt;[1.6,)&lt;/jdk&gt;
&lt;/activation&gt;

to activate it even with JDK-7 but for some reason Maven doesn't 
activate this profile. I'll discuss with Paul Gier to see what can be 
done.

regards,
-Jaikiran



      </pre>
      <blockquote type="cite">
        <pre wrap="">If this is expected, we should also disallow JDK7, e.g.:

&lt;requireJavaVersion&gt;
&lt;version&gt;[1.5,1.7)&lt;/version&gt; &lt;!-- 1.5.x, 1.6.x --&gt;
&lt;/requireJavaVersion&gt;

On 9/9/2009 11:43 AM, Jaikiran Pai wrote:
        </pre>
        <blockquote type="cite">
          <pre wrap="">Stan Silvert wrote:
          </pre>
          <blockquote type="cite">
            <pre wrap="">Is it possible to require a certain revision (or higher) of 1.6?  I
can remember that the build wouldn't work with some older 
revisions of
1.6.

Stan
            </pre>
          </blockquote>
          <pre wrap="">That should be possible
<a class="moz-txt-link-freetext" href="http://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html">http://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html</a> 



-Jaikiran

          </pre>
          <blockquote type="cite">
            <pre wrap="">Jaikiran Pai wrote:
            </pre>
            <blockquote type="cite">
              <pre wrap="">Resending, since the previous mail never made it to the list.

-Jaikiran

Jaikiran Pai wrote:

              </pre>
              <blockquote type="cite">
                <pre wrap="">Hello everyone,

Half way while building a clean AS trunk today, the build failed 
with
incompatible class versions. With the recent changes to AS 
trunk, JDK6
is now mandatory for the build to complete successfully. If no 
one has
any objections, i'll update the parent pom.xml in AS trunk to 
enforce
this through the enforcer plugin:


Index: pom.xml
===================================================================
--- pom.xml     (revision 93223)
+++ pom.xml     (working copy)
@@ -609,7 +609,7 @@
&lt;version&gt;2.0.9&lt;/version&gt;
&lt;/requireMavenVersion&gt;
&lt;requireJavaVersion&gt;
-&lt;version&gt;1.5&lt;/version&gt;
+&lt;version&gt;1.6&lt;/version&gt;
&lt;/requireJavaVersion&gt;
&lt;/rules&gt;
&lt;/configuration&gt;


regards,
-Jaikiran


                </pre>
              </blockquote>
              <pre wrap="">_______________________________________________
jboss-development mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-development">https://lists.jboss.org/mailman/listinfo/jboss-development</a>

              </pre>
            </blockquote>
          </blockquote>
          <pre wrap="">_______________________________________________
jboss-development mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-development">https://lists.jboss.org/mailman/listinfo/jboss-development</a>
          </pre>
        </blockquote>
        <pre wrap="">
        </pre>
      </blockquote>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
jboss-development mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-development@lists.jboss.org">jboss-development@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-development">https://lists.jboss.org/mailman/listinfo/jboss-development</a>
  </pre>
</blockquote>
</body>
</html>