Author: nbelaevski
Date: 2009-05-13 13:01:01 -0400 (Wed, 13 May 2009)
New Revision: 14176
Modified:
trunk/examples/photoalbum/pom.xml
trunk/examples/photoalbum/source/ejb/pom.xml
Log:
Added filtering for proper Eclipse files generation
Modified: trunk/examples/photoalbum/pom.xml
===================================================================
--- trunk/examples/photoalbum/pom.xml 2009-05-13 16:36:44 UTC (rev 14175)
+++ trunk/examples/photoalbum/pom.xml 2009-05-13 17:01:01 UTC (rev 14176)
@@ -11,36 +11,35 @@
<module>source</module>
</modules>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <javadocVersion>1.5</javadocVersion>
- <reportOutputDirectory>${project.build.directory}/javadocs</reportOutputDirectory>
- <aggregate>true</aggregate>
- </configuration>
- <executions>
- <execution>
- <id>generate-javadoc</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>javadoc</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
<profiles>
<profile>
<id>release</id>
<modules>
<module>assembly</module>
</modules>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.2</version>
+ <configuration>
+ <javadocVersion>1.5</javadocVersion>
+ <reportOutputDirectory>${project.build.directory}/javadocs</reportOutputDirectory>
+ <aggregate>true</aggregate>
+ </configuration>
+ <executions>
+ <execution>
+ <id>generate-javadoc</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>javadoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</profile>
</profiles>
Modified: trunk/examples/photoalbum/source/ejb/pom.xml
===================================================================
--- trunk/examples/photoalbum/source/ejb/pom.xml 2009-05-13 16:36:44 UTC (rev 14175)
+++ trunk/examples/photoalbum/source/ejb/pom.xml 2009-05-13 17:01:01 UTC (rev 14176)
@@ -87,21 +87,41 @@
<build>
<resources>
<resource>
- <directory>src/main/resources-filtered</directory>
- <filtering>true</filtering>
+ <directory>src/main/resources</directory>
</resource>
<resource>
- <directory>src/main/resources</directory>
+ <directory>${project.build.directory}/resources-filtered</directory>
</resource>
<resource>
<directory>sql/${imageset}</directory>
</resource>
</resources>
-
-
<plugins>
<plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-resources</id>
+ <!-- here the phase you need -->
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.build.directory}/resources-filtered</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/resources-filtered</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<ejbVersion>3.0</ejbVersion>
Show replies by date