You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by gc134728 <yv...@scarlet.be> on 2007/05/23 11:31:13 UTC
Re:install:install - POM isn't filtered when installed in repo
---------- Initial header -----------
>From : "Steinhauer, Frank" f.steinhauer@olympus-odl.com
To : dev@maven.apache.org,users@maven.apache.org
CC :
Date : Tue, 22 May 2007 14:58:37 +0200
Subject : install:install - POM isn't filtered when installed in repo
Hey frank,
well you need to set the files you want filtered. like to
....
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<excludes>
<exclude>**/*.jar</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>
</build>
...
For more info look at :
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20filter%20resource%20files?
> Hello,
>
> In my POMs the version numbers are set according to local settings and
> given CLI parameters. This works fine e.g. in the effective pom, but not
> when installing or deploying the POM to the repository, the pom file is
> just copied 1:1 to the repo, without any filtering. Why? Any
> suggestions? I'm glad for any assistence, since it cost me already two
> days figuring that out....
>
> Cheers,
>
> Frank
>
>
>
> Example 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">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>aaa</groupId>
> <artifactId>bbb</artifactId>
> <version>${buildVersion}</version> <!-- used throughout all of our
> projects/modules -->
> <packaging>pom</packaging>
> <properties>
> <versionNo>1.2</versionNo>
> <buildVersion>${versionNo}${label}</buildVersion> <!-- label is
> set differently in a local build and in the CruiseControl build -->
> </properties>
> ...
> <repositories>...</repositories>
> <dependencies>...</dependencies>
> <build>...</build>
> ...
> </project>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
---
Scarlet ADSL20, 20 Mbits down, 1 Mbits up, 60 GB volume, http://www.scarlet.be/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org