Maybe a little hint, you should deal with Resource-Filtering

On 31.01.2012 16:44, Christopher Schultz wrote:
All,

I'm having trouble building with the new Maven build system.

$ svn info
Path: .
URL: https://svn.apache.org/repos/asf/velocity/tools/branches/2.0.x
Repository Root: https://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 1238670
Node Kind: directory
Schedule: normal
Last Changed Author: schultz
Last Changed Rev: 1151923
Last Changed Date: 2011-07-28 12:44:21 -0400 (Thu, 28 Jul 2011)

$ mvn clean
$ mvn deploy

[tons of downloads, etc.]

Tests in error:

methodConfigure_ValueParser(org.apache.velocity.tools.generic.XmlToolTests):
Could not find file, classpath resource or standard URL for
'@test.file.dir@/file.xml'.
   methodToString(org.apache.velocity.tools.generic.XmlToolTests): Could
not find file, classpath resource or standard URL for
'@test.file.dir@/file.xml'.
   testStringFileEquals(org.apache.velocity.tools.generic.XmlToolTests):
Could not find file, classpath resource or standard URL for
'@test.file.dir@/file.xml'.

testBrowserSnifferTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests):
test.webcontainer.port@

testContextTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests):
test.webcontainer.port@
   testLinkTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests):
test.webcontainer.port@

testParameterParserTool(org.apache.velocity.tools.test.blackbox.ViewToolsTests):
test.webcontainer.port@
   testXmlConfig(org.apache.velocity.tools.test.whitebox.ConfigTests):
Could not find configuration file at: @test.conf.dir@/tools.test.xml
   testOldConfig(org.apache.velocity.tools.test.whitebox.ConfigTests):
Could not find configuration file at: @test.conf.dir@/toolbox.test.xml
   testPropsConfig(org.apache.velocity.tools.test.whitebox.ConfigTests):
Could not find configuration file at: @test.conf.dir@/tools.test.properties

testPropsPlusXmlConfig(org.apache.velocity.tools.test.whitebox.ConfigTests):
Could not find configuration file at: @test.conf.dir@/tools.test.properties
   org.apache.velocity.tools.test.whitebox.GenericToolsTests: Could not
find any configuration at @test.conf.dir@/whiteboxtest-toolbox.xml

Tests run: 224, Failures: 1, Errors: 12, Skipped: 0

I checked, and build.properties has 'test.conf.dir' set to:

test.dir=${basedir}/test
test.conf.dir=${test.dir}/conf

I suspect that Maven isn't loading the build.properties file and that's
causing at least some of the problems. I don't know a thing about Maven,
so I'm not sure how to correct this.

Any suggestions?

Thanks,
-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to