You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by robert <ro...@gliesian.com> on 2011/02/10 16:52:12 UTC

Profile in CXF that uses activation

Just wondering, what does this profile do:

        <profile>
            <id>jdk15</id>
            <activation>
                <jdk>1.5</jdk>
            </activation>
            <properties>
                <jdk.version>1.5</jdk.version>
            </properties>
        </profile>

It causes the POM Model window to return an error in NetBeans 7.0, but 
not NetBeans 6.9.1.

As such, I opened up a NetBeans issue:

POM Model - Error While reading inheritance hierarchy‏
http://netbeans.org/bugzilla/show_bug.cgi?id=195295


Re: Profile in CXF that uses activation

Posted by Daniel Kulp <dk...@apache.org>.
On Thursday 10 February 2011 10:52:12 am robert wrote:
> Just wondering, what does this profile do:
> 
>         <profile>
>             <id>jdk15</id>
>             <activation>
>                 <jdk>1.5</jdk>
>             </activation>
>             <properties>
>                 <jdk.version>1.5</jdk.version>
>             </properties>
>         </profile>

Basically, it detects when things are being built with Java5 instead of java6 
and turns on the jdk15 profile.   If you look in the poms, there are few 
places where the jdk15 profiles changes things.   The two major things that  
happen are:

1) Add additional dependencies - when on Java6, we don't need thinks like 
saaj-*, activation, annotation, etc... as they are built into the JDK.   On 
Java5, we need them.

2) JAX-WS 2.2 - by default, we don't use jaxws/jaxb 2.2 by default on Java6 as 
it requires a lot of endorsing and such.  With Java5, we can.

Dan


> 
> It causes the POM Model window to return an error in NetBeans 7.0, but
> not NetBeans 6.9.1.
> 
> As such, I opened up a NetBeans issue:
> 
> POM Model - Error While reading inheritance hierarchy‏
> http://netbeans.org/bugzilla/show_bug.cgi?id=195295

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog