Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 1.98 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Maven 3 regression: Profile dependencies lost?
  2. <project>
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>group</groupId>
  5.     <artifactId>main</artifactId>
  6.     <packaging>pom</packaging>
  7.     <version>1.0.0-SNAPSHOT</version>
  8.  
  9.     <modules>
  10.         <module>common</module>
  11.         <module>portal</module>
  12.     </modules>
  13. </project>
  14.        
  15. <project>
  16.     <modelVersion>4.0.0</modelVersion>
  17.     <groupId>group</groupId>
  18.     <artifactId>common</artifactId>
  19.     <packaging>jar</packaging>
  20.     <version>1.0.0-SNAPSHOT</version>
  21.     <parent>
  22.         <groupId>group</groupId>
  23.         <artifactId>main</artifactId>  
  24.         <version>1.0.0-SNAPSHOT</version>
  25.         <relativePath>../pom.xml</relativePath>
  26.     </parent>  
  27.     <profiles>
  28.         <profile>
  29.             <id>development</id>
  30.             <dependencies>
  31.                 <dependency>
  32.                     <groupId>log4j</groupId>
  33.                     <artifactId>log4j</artifactId>
  34.                     <version>1.2.14</version>
  35.                 </dependency>
  36.             </dependencies>
  37.         </profile>
  38.         <profile>
  39.             <id>production</id>
  40.             <dependencies>
  41.                 <dependency>
  42.                     <groupId>commons-logging</groupId>
  43.                     <artifactId>commons-logging</artifactId>
  44.                     <version>1.1.1</version>
  45.                 </dependency>
  46.             </dependencies>
  47.         </profile>
  48.     </profiles>
  49. </project>
  50.        
  51. <project>
  52.     <modelVersion>4.0.0</modelVersion>
  53.     <groupId>group</groupId>
  54.     <artifactId>portal</artifactId>
  55.     <packaging>war</packaging>
  56.     <version>1.0.0-SNAPSHOT</version>
  57.     <parent>
  58.         <groupId>group</groupId>
  59.         <artifactId>main</artifactId>  
  60.         <version>1.0.0-SNAPSHOT</version>
  61.         <relativePath>../pom.xml</relativePath>
  62.     </parent>
  63.     <dependencies>
  64.         <dependency>
  65.             <groupId>group</groupId>
  66.             <artifactId>common</artifactId>
  67.             <version>1.0.0-SNAPSHOT</version>
  68.         </dependency>
  69.     </dependencies>
  70. </project>