It seems to me the behavior of the m2eclipse handling of the pom, settings, and
dependency resolution is rather different than maven command line invocation?
I really appreciate the hard work that's gone into this plugin and I know I
don't know enough about the factors involved, but I am wondering if there's an
effort underway to get the same behavior from cli and m2eclipse?
My question is how can I deal with using m2eclipse with this pom below. It has
different dependencies based on profile activation.
I saw commit messages around version 0.0.11 for dependencies lately (does
anyone know if the latest might work for this issue?)
<?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>com.acme.enterprise</groupId>
<artifactId>mymy-model</artifactId>
<version>0.0.1-SNAPSHOT</version>
<description>Common model API for the MyMY Service</description>
<url>http://mvnrepository.private.acme.com:/${environment}/site/${groupId}/${artifactId}/</url>
<inceptionYear>2007</inceptionYear>
<profiles>
<profile>
<id>was60</id>
<activation>
<property>
<name>was60</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>webservices</artifactId>
<version>6.0.2.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>j2ee</artifactId>
<version>6.0.2.9</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>was61</id>
<activation />
<dependencies>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>com.ibm.ws.webservices.thinclient_6.1.0</artifactId>
<version>6.1.0.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.ibm.websphere.appserver</groupId>
<artifactId>j2ee</artifactId>
<version>6.1.0.3</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb1.maven2</groupId>
<artifactId>maven-jaxb1-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<generatePackage>
com.acme.enterprise.mymy.model
</generatePackage>
<schemaDirectory>src/main/xsd</schemaDirectory>
<generateDirectory>
src/main/jaxb-source
</generateDirectory>
<extension>true</extension>
<verbose>true</verbose>
<schemaExcludes>*xml-soap.xsd</schemaExcludes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>1.0.5</version>
</dependency>
<dependency>
<groupId>org.relaxng</groupId>
<artifactId>relaxngDatatype</artifactId>
<version>1.6</version>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-libs</artifactId>
<version>1.0.6</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jsr173_api</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>