You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tom <te...@gmail.com> on 2010/12/03 18:39:44 UTC

Problem with filtering (No translation found for macro)

Hi guys,
i'm trying to filter on proerty file with Maven and it doesn't work... (and
i don't know why). So here i come, asking for ur help :)

The pom.xml :
<build>
		<filters>
			<filter>src/main/filters/local.properties</filter>
		</filters>
		<resources>
			<resource>
				<directory>src/main/config/filtered</directory>
				<filtering>true</filtering>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<filtering>false</filtering>
				<includes>
					<include>**/*.properties</include>
					<include>**/*.handlers</include>
					<include>**/*.schemas</include>
					<include>**/*.xsd</include>
				</includes>
			</resource>
....
</build>
The config.properties & local.properties exists in the right place and well
formed.

So, when I build, Maven say that :
[WARNING] Warning building bundle
org.apache.ftpserver:ftpserver-core:bundle:1.1.0-SNAPSHOT : No translation
found for macro: proxy.set
[WARNING] Warning building bundle
org.apache.ftpserver:ftpserver-core:bundle:1.1.0-SNAPSHOT : No translation
found for macro: proxy.host
[WARNING] Warning building bundle
org.apache.ftpserver:ftpserver-core:bundle:1.1.0-SNAPSHOT : No translation
found for macro: proxy.port
[WARNING] Warning building bundle
org.apache.ftpserver:ftpserver-core:bundle:1.1.0-SNAPSHOT : No translation
found for macro: nonproxy.host

and the file config.properties in the JAR is not filtered.
But, the file config.properties in the TARGET directory is good (made by
Eclipse i think). So Eclipse understand the pom.xml but MAVEN does not :/

And if i add that in the pom.xml :
<proxy.set>true</proxy.set>
<proxy.host>proxy</proxy.host>
<proxy.port>3128</proxy.port>
<nonproxy.host>localhost</nonproxy.host>
MAVEN use theses properties instead of local.properties and
config.properties in the JAR is good.

So i'm starting to think i'm crazy beceause i really DO NOT understand why
it doesn't work with the local.properties file :/
He is well formed and in the right place (src/main/filters).
I write that inside :
proxy.set=true
proxy.host=proxy
proxy.port=3128
nonproxy.host=localhost

Thanks for your help :)
-- 
View this message in context: http://maven.40175.n5.nabble.com/Problem-with-filtering-No-translation-found-for-macro-tp3291290p3291290.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org