- This topic has 2 replies, 2 voices, and was last updated 15 years, 7 months ago by Roberto Lezama Gutierrez.
-
AuthorPosts
-
Roberto Lezama GutierrezMemberHi, I used the Maven Configuration to RUN a project with different profiles in the POM, but i select one profile id from POM and put it into Profiles textbox, but when i RUN the POM it doesn’t pay attention to the PROFILE i specified to build.
Loyal WaterMemberbobgutierrez,
I have asked the dev team to look into this issue. They will get back to you with a reply asap.
Roberto Lezama GutierrezMemberthis is my POM.
<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>
<parent>
<groupId>mx.com.b2c</groupId>
<artifactId>b2c</artifactId>
<version>1.0</version>
<relativePath>../b2c</relativePath>
</parent>
<groupId>mx.com.b2c</groupId>
<artifactId>b2c-customer-update-web</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>b2c-customer-update-web</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-portlet</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webflow</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-binding</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>ognl</groupId>
<artifactId>ognl</artifactId>
<version>2.6.9</version>
</dependency>
<dependency>
<groupId>javax.portlet</groupId>
<artifactId>portlet-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>servletapi</groupId>
<artifactId>servletapi</artifactId>
<version>2.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts-tiles</artifactId>
<version>1.3.9</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts-taglib</artifactId>
<version>1.3.9</version>
</dependency>
<dependency>
<groupId>org.springmodules</groupId>
<artifactId>spring-modules-validation</artifactId>
<version>0.8</version>
</dependency>
<dependency>
<groupId>mx.com.company</groupId>
<artifactId>am</artifactId>
<version>1.3</version>
<optional>false</optional>
</dependency>
<dependency>
<groupId>mx.com.b2c</groupId>
<artifactId>b2c-membership-core</artifactId>
<version>2.0-SNAPSHOT</version>
<optional>false</optional>
</dependency>
</dependencies>
<repositories>
<repository>
<id>archiva.internal</id>
<url>http://linuxserver2:8080/archiva/repository/internal/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>archiva.snapshots</id>
<url>http://linuxserver2:8080/archiva/repository/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<id>local</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>sso-local.xml</include>
<include>amService-local.xml</include>
</includes>
</resource>
</resources>
<filters>
<filter>src/main/filters/local.properties</filter>
</filters>
</build>
</profile>
<profile>
<id>lab</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>sso-lab.xml</include>
<include>amService-lab.xml</include>
</includes>
</resource>
</resources>
<filters>
<filter>src/main/filters/lab.properties</filter>
</filters>
</build>
</profile>
<profile>
<id>qa</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>sso-qa.xml</include>
<include>amService-qa.xml</include>
</includes>
</resource>
</resources>
<filters>
<filter>src/main/filters/qa.properties</filter>
</filters>
</build>
</profile>
<profile>
<id>production</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>sso-production.xml</include>
<include>amService-production.xml</include>
</includes>
</resource>
</resources>
<filters>
<filter>src/main/filters/production.properties</filter>
</filters>
</build>
</profile>
</profiles>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>applicationContext.xml</include>
<include>vaday.xml</include>
<include>customer.xml</include>
<include>membershipService.xml</include>
<include>membershipCatalogDAO.xml</include>
<include>addressDAO.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
<excludes>
<exclude>applicationContext.xml</exclude>
<exclude>vaday.xml</exclude>
<exclude>customer.xml</exclude>
<exclude>sso-*.xml</exclude>
<exclude>amService-*.xml</exclude>
<exclude>membershipService.xml</exclude>
<exclude>membershipCatalogDAO.xml</exclude>
<exclude>addressDAO.xml</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.0</version>
<configuration>
<warName>CustomerUpdate</warName>
<webappDirectory>${project.build.directory}/CustomerUpdate</webappDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project> -
AuthorPosts