Hi,
Thanks, it doesn't complain anymore that it is not a list, however does
not pay any attention to the <resources> parameter I specify.
I added a printout in ResourcesMojo and the only directory it picks up is
a default one - src/main/resources
The rest of parameters - outputDirectory, filterPropertiesFile and
filtering work fine.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no test to run.
Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0
[INFO] [resources:resources {execution: default}]
----------Resource directory:
C:\projektai\stotissi_v4\projects\sintagma-authentication\src\main\resources
[INFO]
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
----------------------------------------------------------------------------
Here is a section of pom.xml file.
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<resources>
<resource>${basedir}/src/main/webapp</resource>
</resources>
<outputDirectory>
${project.build.directory}/${project.build.finalName}
/copiedwithresources</outputDirectory>
<filterPropertiesFile>${basedir}/src/filters/filter.properties</
filterPropertiesFile>
<filtering>true</filtering>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Thank you,
Andrius Karpavicius
Edwin Punzalan <[EMAIL PROTECTED]>
2005.08.18 12:07
Please respond to
"Maven Users List" <[email protected]>
To
Maven Users List <[email protected]>
cc
Subject
Re: [M2] How to specify a diferent resource directory in
resource:resources plugin
For lists, you should separate into elements like so:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<phase>test</phase>
<configuration>
<resources>
<resource>${basedir}/src/main/webapp/WEB-INF/conf</resource>
</resources>
Andrius Karpavicius wrote:
>Hi
>
>Is there a way in pom.xml to pass a list instead of a string as a
property
>value?
>
>I want to use a resources:resources plugin before war packaging, so it
>would filter a webapp directory. Problem is that <resources> expects a
>list, not a String.
>
>
>This is a section of pom.xml file.
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> <executions>
> <execution>
> <phase>test</phase>
> <configuration>
> <resources>${basedir}/src/main/webapp/WEB-INF/conf</resources>
>
>
>Thanks,
>Andrius Karpavicius
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]