You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Sébastien Brisard <se...@m4x.org> on 2012/11/19 08:20:27 UTC

[math] custom profiles in our pom

Hi,
someone (I think it was sebb) wrote some months ago about defining custom
profiles in the pom.xml to allow for faster compilation (cobertura being
the culprit).
I've done that locally, and I'm probably not the only one. So I was
wondering whether we could commit one or two custom profiles which would
make our life easier?
The profile I'm using is the following
  <profiles>
    <profile>
      <id>fast</id>
      <properties>
        <skipTests>true</skipTests>
        <maven.clover.skip>true</maven.clover.skip>
        <cobertura.skip>true</cobertura.skip>
        <findbugs.skip>true</findbugs.skip>
        <pmd.skip>true</pmd.skip>
      </properties>
    </profile>
  </profiles>
it allows me to quickly check the generated Javadoc + users guide.
Other profiles could be defined, of course.


What do you think?
Sébastien

Re: [math] custom profiles in our pom

Posted by sebb <se...@gmail.com>.
On 19 November 2012 11:16, Gilles Sadowski <gi...@harfang.homelinux.org> wrote:
> On Mon, Nov 19, 2012 at 10:38:27AM +0100, Thomas Neidhart wrote:
>> On Mon, Nov 19, 2012 at 8:20 AM, Sébastien Brisard <
>> sebastien.brisard@m4x.org> wrote:
>>
>> > Hi,
>> > someone (I think it was sebb) wrote some months ago about defining custom
>> > profiles in the pom.xml to allow for faster compilation (cobertura being
>> > the culprit).
>> > I've done that locally, and I'm probably not the only one. So I was
>> > wondering whether we could commit one or two custom profiles which would
>> > make our life easier?
>> > The profile I'm using is the following
>> >   <profiles>
>> >     <profile>
>> >       <id>fast</id>
>> >       <properties>
>> >         <skipTests>true</skipTests>
>> >         <maven.clover.skip>true</maven.clover.skip>
>> >         <cobertura.skip>true</cobertura.skip>
>> >         <findbugs.skip>true</findbugs.skip>
>> >         <pmd.skip>true</pmd.skip>
>> >       </properties>
>> >     </profile>
>> >   </profiles>
>> > it allows me to quickly check the generated Javadoc + users guide.
>> > Other profiles could be defined, of course.
>> >
>> >
>> > What do you think?
>> >
>>
>> Hi Sebastien,
>>
>> I have the same profile in my local pom, so I am +1 on adding it by default.
>>

BTW, I think the profile name should be a bit more descriptive.
[Certainly if this is ever to be added to the parent POM it needs to
have a much more specifc name]

"fast" could mean various things.

>
> It would be nice to have several profiles.

That's possible.

> Is it possible to include profiles into profiles?

AFAIK it's not possible to nest profiles.

> Gilles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [math] custom profiles in our pom

Posted by "Honton, Charles" <Ch...@intuit.com>.
Several of the apache provided maven plugins use the convention of a
define; e.g., -D skipTests -D skipITs

To extend this convention, you could use -D skipCoverage

Regards,
chas




On 11/19/12 3:22 AM, "Sébastien Brisard" <se...@m4x.org> wrote:

>Hi,
>
>
>2012/11/19 Gilles Sadowski <gi...@harfang.homelinux.org>
>
>> On Mon, Nov 19, 2012 at 10:38:27AM +0100, Thomas Neidhart wrote:
>> > On Mon, Nov 19, 2012 at 8:20 AM, Sébastien Brisard <
>> > sebastien.brisard@m4x.org> wrote:
>> >
>> > > Hi,
>> > > someone (I think it was sebb) wrote some months ago about defining
>> custom
>> > > profiles in the pom.xml to allow for faster compilation (cobertura
>> being
>> > > the culprit).
>> > > I've done that locally, and I'm probably not the only one. So I was
>> > > wondering whether we could commit one or two custom profiles which
>> would
>> > > make our life easier?
>> > > The profile I'm using is the following
>> > >   <profiles>
>> > >     <profile>
>> > >       <id>fast</id>
>> > >       <properties>
>> > >         <skipTests>true</skipTests>
>> > >         <maven.clover.skip>true</maven.clover.skip>
>> > >         <cobertura.skip>true</cobertura.skip>
>> > >         <findbugs.skip>true</findbugs.skip>
>> > >         <pmd.skip>true</pmd.skip>
>> > >       </properties>
>> > >     </profile>
>> > >   </profiles>
>> > > it allows me to quickly check the generated Javadoc + users guide.
>> > > Other profiles could be defined, of course.
>> > >
>> > >
>> > > What do you think?
>> > >
>> >
>> > Hi Sebastien,
>> >
>> > I have the same profile in my local pom, so I am +1 on adding it by
>> default.
>> >
>>
>> It would be nice to have several profiles.
>>
>Yes, one profile to do the tests without cobertura, one profile to create
>the Javadoc + users doc without other reports, and so on. We should list a
>few of those.
>
>
>> Is it possible to include profiles into profiles?
>>
>You mean that you are afraid of the pom becoming huge ? ;-)
>I don't know about that, maybe Thomas does.
>Sébastien
>
>>
>> Gilles
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [math] custom profiles in our pom

Posted by Sébastien Brisard <se...@m4x.org>.
Hi,


2012/11/19 Gilles Sadowski <gi...@harfang.homelinux.org>

> On Mon, Nov 19, 2012 at 10:38:27AM +0100, Thomas Neidhart wrote:
> > On Mon, Nov 19, 2012 at 8:20 AM, Sébastien Brisard <
> > sebastien.brisard@m4x.org> wrote:
> >
> > > Hi,
> > > someone (I think it was sebb) wrote some months ago about defining
> custom
> > > profiles in the pom.xml to allow for faster compilation (cobertura
> being
> > > the culprit).
> > > I've done that locally, and I'm probably not the only one. So I was
> > > wondering whether we could commit one or two custom profiles which
> would
> > > make our life easier?
> > > The profile I'm using is the following
> > >   <profiles>
> > >     <profile>
> > >       <id>fast</id>
> > >       <properties>
> > >         <skipTests>true</skipTests>
> > >         <maven.clover.skip>true</maven.clover.skip>
> > >         <cobertura.skip>true</cobertura.skip>
> > >         <findbugs.skip>true</findbugs.skip>
> > >         <pmd.skip>true</pmd.skip>
> > >       </properties>
> > >     </profile>
> > >   </profiles>
> > > it allows me to quickly check the generated Javadoc + users guide.
> > > Other profiles could be defined, of course.
> > >
> > >
> > > What do you think?
> > >
> >
> > Hi Sebastien,
> >
> > I have the same profile in my local pom, so I am +1 on adding it by
> default.
> >
>
> It would be nice to have several profiles.
>
Yes, one profile to do the tests without cobertura, one profile to create
the Javadoc + users doc without other reports, and so on. We should list a
few of those.


> Is it possible to include profiles into profiles?
>
You mean that you are afraid of the pom becoming huge ? ;-)
I don't know about that, maybe Thomas does.
Sébastien

>
> Gilles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: [math] custom profiles in our pom

Posted by Gilles Sadowski <gi...@harfang.homelinux.org>.
On Mon, Nov 19, 2012 at 10:38:27AM +0100, Thomas Neidhart wrote:
> On Mon, Nov 19, 2012 at 8:20 AM, Sébastien Brisard <
> sebastien.brisard@m4x.org> wrote:
> 
> > Hi,
> > someone (I think it was sebb) wrote some months ago about defining custom
> > profiles in the pom.xml to allow for faster compilation (cobertura being
> > the culprit).
> > I've done that locally, and I'm probably not the only one. So I was
> > wondering whether we could commit one or two custom profiles which would
> > make our life easier?
> > The profile I'm using is the following
> >   <profiles>
> >     <profile>
> >       <id>fast</id>
> >       <properties>
> >         <skipTests>true</skipTests>
> >         <maven.clover.skip>true</maven.clover.skip>
> >         <cobertura.skip>true</cobertura.skip>
> >         <findbugs.skip>true</findbugs.skip>
> >         <pmd.skip>true</pmd.skip>
> >       </properties>
> >     </profile>
> >   </profiles>
> > it allows me to quickly check the generated Javadoc + users guide.
> > Other profiles could be defined, of course.
> >
> >
> > What do you think?
> >
> 
> Hi Sebastien,
> 
> I have the same profile in my local pom, so I am +1 on adding it by default.
> 

It would be nice to have several profiles.
Is it possible to include profiles into profiles?

Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [math] custom profiles in our pom

Posted by Thomas Neidhart <th...@gmail.com>.
On Mon, Nov 19, 2012 at 8:20 AM, Sébastien Brisard <
sebastien.brisard@m4x.org> wrote:

> Hi,
> someone (I think it was sebb) wrote some months ago about defining custom
> profiles in the pom.xml to allow for faster compilation (cobertura being
> the culprit).
> I've done that locally, and I'm probably not the only one. So I was
> wondering whether we could commit one or two custom profiles which would
> make our life easier?
> The profile I'm using is the following
>   <profiles>
>     <profile>
>       <id>fast</id>
>       <properties>
>         <skipTests>true</skipTests>
>         <maven.clover.skip>true</maven.clover.skip>
>         <cobertura.skip>true</cobertura.skip>
>         <findbugs.skip>true</findbugs.skip>
>         <pmd.skip>true</pmd.skip>
>       </properties>
>     </profile>
>   </profiles>
> it allows me to quickly check the generated Javadoc + users guide.
> Other profiles could be defined, of course.
>
>
> What do you think?
>

Hi Sebastien,

I have the same profile in my local pom, so I am +1 on adding it by default.

Thomas

Re: [math] custom profiles in our pom

Posted by sebb <se...@gmail.com>.
On 19 November 2012 19:42, Sébastien Brisard <se...@m4x.org> wrote:
> Hi,
>
>
> 2012/11/19 Phil Steitz <ph...@gmail.com>
>
>> On 11/18/12 11:20 PM, Sébastien Brisard wrote:
>> > Hi,
>> > someone (I think it was sebb) wrote some months ago about defining custom
>> > profiles in the pom.xml to allow for faster compilation (cobertura being
>> > the culprit).
>> > I've done that locally, and I'm probably not the only one. So I was
>> > wondering whether we could commit one or two custom profiles which would
>> > make our life easier?
>> > The profile I'm using is the following
>> >   <profiles>
>> >     <profile>
>> >       <id>fast</id>
>> >       <properties>
>> >         <skipTests>true</skipTests>
>> >         <maven.clover.skip>true</maven.clover.skip>
>> >         <cobertura.skip>true</cobertura.skip>
>> >         <findbugs.skip>true</findbugs.skip>
>> >         <pmd.skip>true</pmd.skip>
>> >       </properties>
>> >     </profile>
>> >   </profiles>
>> > it allows me to quickly check the generated Javadoc + users guide.
>> > Other profiles could be defined, of course.
>> >
>> >
>> > What do you think?
>> > Sébastien
>> >
>> I don't really care, but I wonder if this is really just working
>> around broken-ness.  Until one of the tests started hanging (can't
>> remember which one) with Coberta, this was not an issue.
>
> That's a  fair point. Cobertura is actually the main issue, but not the
> only one. There are many reports which take for ages to generate (JIRA
> report, which consistently fails on my machine, ...).

I certainly find it useful to be able to generate a basic site without
having to run all the javadoc etc.
For example when editting the user manual or checking certain site changes.

> I tend to
>> just use -DskipTests when I need to gen the site now and sometimes
>> -Dtest= which is no harder to remember than a special profile name,
>> but I am OK if others want to add this.  I have no way now of
>> generating the full site including Coberta now, though, so it would
>> be great if we could figure out a way to fix that.
>>
>> Phil
>>
>
> Sébastien

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [math] custom profiles in our pom

Posted by Sébastien Brisard <se...@m4x.org>.
Hi,


2012/11/19 Phil Steitz <ph...@gmail.com>

> On 11/18/12 11:20 PM, Sébastien Brisard wrote:
> > Hi,
> > someone (I think it was sebb) wrote some months ago about defining custom
> > profiles in the pom.xml to allow for faster compilation (cobertura being
> > the culprit).
> > I've done that locally, and I'm probably not the only one. So I was
> > wondering whether we could commit one or two custom profiles which would
> > make our life easier?
> > The profile I'm using is the following
> >   <profiles>
> >     <profile>
> >       <id>fast</id>
> >       <properties>
> >         <skipTests>true</skipTests>
> >         <maven.clover.skip>true</maven.clover.skip>
> >         <cobertura.skip>true</cobertura.skip>
> >         <findbugs.skip>true</findbugs.skip>
> >         <pmd.skip>true</pmd.skip>
> >       </properties>
> >     </profile>
> >   </profiles>
> > it allows me to quickly check the generated Javadoc + users guide.
> > Other profiles could be defined, of course.
> >
> >
> > What do you think?
> > Sébastien
> >
> I don't really care, but I wonder if this is really just working
> around broken-ness.  Until one of the tests started hanging (can't
> remember which one) with Coberta, this was not an issue.

That's a  fair point. Cobertura is actually the main issue, but not the
only one. There are many reports which take for ages to generate (JIRA
report, which consistently fails on my machine, ...).

I tend to
> just use -DskipTests when I need to gen the site now and sometimes
> -Dtest= which is no harder to remember than a special profile name,
> but I am OK if others want to add this.  I have no way now of
> generating the full site including Coberta now, though, so it would
> be great if we could figure out a way to fix that.
>
> Phil
>

Sébastien

Re: [math] custom profiles in our pom

Posted by Phil Steitz <ph...@gmail.com>.
On 11/18/12 11:20 PM, Sébastien Brisard wrote:
> Hi,
> someone (I think it was sebb) wrote some months ago about defining custom
> profiles in the pom.xml to allow for faster compilation (cobertura being
> the culprit).
> I've done that locally, and I'm probably not the only one. So I was
> wondering whether we could commit one or two custom profiles which would
> make our life easier?
> The profile I'm using is the following
>   <profiles>
>     <profile>
>       <id>fast</id>
>       <properties>
>         <skipTests>true</skipTests>
>         <maven.clover.skip>true</maven.clover.skip>
>         <cobertura.skip>true</cobertura.skip>
>         <findbugs.skip>true</findbugs.skip>
>         <pmd.skip>true</pmd.skip>
>       </properties>
>     </profile>
>   </profiles>
> it allows me to quickly check the generated Javadoc + users guide.
> Other profiles could be defined, of course.
>
>
> What do you think?
> Sébastien
>
I don't really care, but I wonder if this is really just working
around broken-ness.  Until one of the tests started hanging (can't
remember which one) with Coberta, this was not an issue.  I tend to
just use -DskipTests when I need to gen the site now and sometimes
-Dtest= which is no harder to remember than a special profile name,
but I am OK if others want to add this.  I have no way now of
generating the full site including Coberta now, though, so it would
be great if we could figure out a way to fix that.

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org