for you case, you should pass the system property directly into surefire -D
On Fri, Feb 22, 2013 at 7:33 PM, Matthew Adams <[email protected]> wrote: > Hmmm. I'm using the goal > set-system-properties<http://mojo.codehaus.org/properties-maven-plugin/set-system-properties-mojo.html>and > specifying a phase explicitly. Seems to work fine. > > For the curious, my use case is trying to get rid of the annoying derby.log > file during my integration-test phase by using the derby system > property derby.stream.error.field=java.lang.System.out. > > Maybe we could move the set-system-properties goal over to the > build-helper-maven-plugin<http://mojo.codehaus.org/build-helper-maven-plugin/>. > Seems like a good place for it. > > Works like a charm when you set it like this: > > <profile> > <id>derby</id> > <properties> > <app.db.vendor.id>derby</app.db.vendor.id> > <app.db.driver.id>derby</app.db.driver.id> > </properties> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>properties-maven-plugin</artifactId> > <executions> > <execution> > <goals> > <goal>set-system-properties</goal> > </goals> > <phase>initialize</phase> > <configuration> > <properties> > <property> > <name>derby.stream.error.field</name> > <value>java.lang.System.out</value> > </property> > </properties> > </configuration> > </execution> > </executions> > </plugin> > </plugins> > </build> > </profile> > > > > > On Fri, Feb 22, 2013 at 9:59 AM, Frédéric Camblor <[email protected]>wrote: > >> Hi ! >> >> I *think* this is because this plugin is shooting you in the foot, by >> making you think it will *always* load externalized properties whereas it >> won't be the case. >> For instance, during call of direct plugin goal (like release:prepare / >> release:perform), the plugin won't be binded to any phases => properties >> won't be loaded / made available. >> >> I think this was based on a good idea at the beginning, but is not really >> applicable. >> >> Cheers, >> Frédéric >> >> Frédéric Camblor <http://fcamblor.wordpress.com/> >> <http://www.twitter.com/fcamblor> >> Bordeaux JUG <http://bordeauxjug.org/> Leader >> Jenkins <http://jenkins-ci.org/> community member & plugin commiter >> >> >> >> On Fri, Feb 22, 2013 at 4:39 PM, Matthew Adams <[email protected] >> >wrote: >> >> > Hi all, >> > >> > The latest release ( >> > >> > >> http://search.maven.org/#artifactdetails%7Corg.codehaus.mojo%7Cproperties-maven-plugin%7C1.0-alpha-2%7Cmaven-plugin >> > ) >> > of properties-maven-plugin ( >> > http://jira.codehaus.org/browse/MOJO/component/13703), which I'm now >> > considering using, is 1.0-alpha-2. It's been that way since 30-08-2009, >> > almost 3.5 years ago! >> > >> > When will this plugin achieve GA/release status? I'd rather not be using >> > an alpha plugin in my build. >> > >> > Thanks, >> > Matthew >> > >> > -- >> > mailto:[email protected] <[email protected]> >> > skype:matthewadams12 >> > googletalk:[email protected] >> > http://matthewadams.me >> > http://www.linkedin.com/in/matthewadams >> > >> > > > > -- > mailto:[email protected] <[email protected]> > skype:matthewadams12 > googletalk:[email protected] > http://matthewadams.me > http://www.linkedin.com/in/matthewadams --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
