[prev in list] [next in list] [prev in thread] [next in thread]
List: maven-user
Subject: Re: filtering properties like pom.
From: meiko <meiko () pentatope ! de>
Date: 2007-08-31 8:25:13
Message-ID: 12422581.post () talk ! nabble ! com
[Download RAW message or body]
Hello William,
I don't need the files in the resources folder for my .war.
There is only the "components.properties" (my filter file):
jndi.pattern=trilobita-1.0...
embeddedEjb=true
I filter the web.xml.
...
<webResource>
<directory>
${basedir}/src/main/webapp
</directory>
<filtering>true</filtering>
</webResource>
...
It works with my own defined properties (from the file
components.properties) and
with the Systemproperties, but not with properties used to get infos from
the pom (e.g. ${pom.version}).
I think it could be the maven configuration.... ???
William Ferguson wrote:
>
> Meiko,
>
> I'm surprised you are getting any resources copied during your build,
> you seem to be excluding them all:
>
> <excludes>
> <exclude>**/*</exclude>
> </excludes>
>
> What resource file is being copied without filtering being applied?
> And what does your filter file look like?
>
>
> William
>
>
> -----Original Message-----
> From: meiko [mailto:meiko@pentatope.de]
> Sent: Friday, 31 August 2007 9:01 AM
> To: users@maven.apache.org
> Subject: [***POSSIBLE SPAM***] - filtering properties like pom.* dont
> work - Email has different SMTP TO: and MIME TO: fields in the email
> addresses
>
>
> I have a problem with filtering.
> - properties like maven.* or pom.* or project.*(e.g. ${pom.version})
> dont work
> - other properties like ${basedir} or ${java.version} work What could be
> the reason ?
>
> Thank you for helping a frustrated maven-user ;-)
>
> here is my pom:
>
> <?xml version="1.0" encoding="utf-8"?>
> <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">
> <parent>
> <artifactId>trilobita-game</artifactId>
> <groupId>trilobita</groupId>
> <version>1.0</version>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>trilobita</groupId>
> <artifactId>trilobita-frontend</artifactId>
> <packaging>war</packaging>
> <version>1.0</version>
> <build>
> <filters>
> <filter>
>
> ${basedir}/src/main/resources/components.properties
> </filter>
> </filters>
> <resources>
> <resource>
>
> <directory>/src/main/resources/</directory>
> <excludes>
> <exclude>**/*</exclude>
> </excludes>
> </resource>
> </resources>
> <plugins>
> <plugin>
>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> </configuration>
> </plugin>
> <plugin>
>
> <artifactId>maven-war-plugin</artifactId>
> <version>2.0</version>
> <configuration>
> <webResources>
> <webResource>
> <directory>
>
> ${basedir}/src/main/webapp
> </directory>
>
> <filtering>true</filtering>
> </webResource>
> </webResources>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <dependencies>
> <dependency>
> <groupId>jboss</groupId>
> <artifactId>jboss-seam-ui</artifactId>
> <version>1.2.1.GA</version>
> </dependency>
> </dependencies>
> </project>
>
> --
> View this message in context:
> http://www.nabble.com/filtering-properties-like-pom.*-dont-work-tf435738
> 4s177.html#a12417818
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: \
http://www.nabble.com/filtering-properties-like-pom.*-dont-work-tf4357384s177.html#a12422581
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic