directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: [Studio] How to speed up build time?
Date Fri, 26 Sep 2008 13:43:32 GMT
Pierre-Arnaud Marcelot schrieb:
>
>
> On Fri, Sep 26, 2008 at 3:11 PM, Felix Knecht <felixk@apache.org
> <mailto:felixk@apache.org>> wrote:
>
>     Retests failed.
>     in fact you should be able to have something like
>        <profile>
>          <id>build-help</id>
>          <activation>
>            <file>
>              <missing>${basedir}/timestamp</missing>
>            </file>
>          </activation>
>     in the help-pom.xml, but ${basedir} doesn't seems to be properly
>     resolved :-(
>
>
> That's exactly what I did but I used
>          <missing>timestamp</missing>
> instead of your
>          <missing>${basedir}/timestamp</missing>

It's confirmed not to work with ${basedir} missleading to the
documentation http://maven.apache.org/pom.html#Activation.

Response from Nicolas:
"

Profile activation doesn't support property interopolation, even the
${basedir} one
This makes this feature unusable in nested modules configuration, as the
file are tested from current dir, not active project root...
I already reported this issue in JIRA.

Nicolas

2008/9/26 Felix Knecht <felixk@apache.org>

> > Hi all
> >
> > The foofoo profile is always activated, no matter if a file 'timestamp'
> > exists in the same directory like the pom.xml or
> > not. It looks to me as the ${basedir} is not correctly resolved. Is this a
> > known problem?
> >
> > Thanks
> > Felix
> >
> > felix@pcfelix ~/tmp $ cat pom.xml
> > <project
> >  xmlns="http://maven.apache.org/POM/4.0.0"
> >  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >  <modelVersion>4.0.0</modelVersion>
> >
> >  <groupId>bar</groupId>
> >  <artifactId>foo</artifactId>
> >  <version>1.0.0</version>
> >  <name>foobar</name>
> >  <packaging>jar</packaging>
> >
> >  <profiles>
> >    <profile>
> >      <id>foofoo</id>
> >      <activation>
> >        <file>
> >          <missing>${basedir}/timestamp</missing>
> >        </file>
> >      </activation>
> >    </profile>
> >  </profiles>
> > </project>
> >
> > felix@pcfelix ~/tmp $ touch timestamp
> > felix@pcfelix ~/tmp $ mvn help:active-profiles
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'help'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building foobar
> > [INFO]    task-segment: [help:active-profiles] (aggregator-style)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] [help:active-profiles]
> > [INFO]
> > Active Profiles for Project 'bar:foo:jar:1.0.0':
> >
> > The following profiles are active:
> >
> >  - foofoo (source: pom)
> >
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Fri Sep 26 15:22:51 CEST 2008
> > [INFO] Final Memory: 19M/64M
> > [INFO]
> > ------------------------------------------------------------------------
> > felix@pcfelix ~/tmp $ rm timestamp
> > felix@pcfelix ~/tmp $ mvn help:active-profiles
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'help'.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building foobar
> > [INFO]    task-segment: [help:active-profiles] (aggregator-style)
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] [help:active-profiles]
> > [INFO]
> > Active Profiles for Project 'bar:foo:jar:1.0.0':
> >
> > The following profiles are active:
> >
> >  - foofoo (source: pom)
> >
> >
> >
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 1 second
> > [INFO] Finished at: Fri Sep 26 15:22:58 CEST 2008
> > [INFO] Final Memory: 19M/64M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> > For additional commands, e-mail: dev-help@maven.apache.org
> >
> >
>   

"

Mime
View raw message