code_junkie

Missing aar file in maven2 multi-project build

Nov 10th, 2011
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. <parent>
  2. <groupId>companyId</groupId>
  3. <artifactId>build</artifactId>
  4. <version>1.0.0-SNAPSHOT</version>
  5. </parent>
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.nationwide.nf</groupId>
  8. <artifactId>parent</artifactId>
  9. <packaging>pom</packaging>
  10. <version>1.0.0-SNAPSHOT</version>
  11. <modules>
  12. <module>ws-war</module>
  13. <module>ws-aar</module>
  14. <module>ws-ear</module>
  15. </modules>
  16.  
  17. <parent>
  18. <artifactId>parent</artifactId>
  19. <groupId>companyId</groupId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. </parent>
  22. <modelVersion>4.0.0</modelVersion>
  23. <groupId>companyId</groupId>
  24. <artifactId>ws-aar</artifactId>
  25. <version>1.0.0-SNAPSHOT</version>
  26. <description/>
  27. <packaging>aar</packaging>
  28. <dependencies>...</dependencies>
  29. <build>
  30. <plugins>
  31. <plugin>
  32. <groupId>org.apache.maven.plugins</groupId>
  33. <artifactId>maven-compiler-plugin</artifactId>
  34. <configuration>
  35. <source>1.5</source>
  36. <target>1.5</target>
  37. </configuration>
  38. </plugin>
  39.  
  40. <plugin>
  41. <groupId>org.apache.axis2</groupId>
  42. <artifactId>axis2-wsdl2code-maven-plugin</artifactId>
  43. <version>1.4</version>
  44. <configuration>...</configuration>
  45. <executions>
  46. <execution>
  47. <goals>
  48. <goal>wsdl2code</goal>
  49. </goals>
  50. <id>axis2-gen-sources</id>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. <plugin>
  55. <groupId>org.apache.axis2</groupId>
  56. <artifactId>axis2-aar-maven-plugin</artifactId>
  57. <version>1.4</version>
  58. <extensions>true</extensions>
  59. <configuration>...</configuration>
  60. </plugin>
  61. </plugins>
  62. </build>
  63.  
  64. <parent>
  65. <artifactId>parent</artifactId>
  66. <groupId>companyId</groupId>
  67. <version>1.0.0-SNAPSHOT</version>
  68. </parent>
  69. <modelVersion>4.0.0</modelVersion>
  70. <groupId>companyId</groupId>
  71. <artifactId>ws-war</artifactId>
  72. <packaging>war</packaging>
  73. <version>1.0.0-SNAPSHOT</version>
  74. <description/>
  75. <dependencies>
  76. <dependency>
  77. <groupId>companyId</groupId>
  78. <artifactId>ws-aar</artifactId>
  79. <type>aar</type>
  80. <version>1.0.0-SNAPSHOT</version>
  81. </dependency>
  82. .
  83. .
  84. .
  85. </dependencies>
  86. <build>
  87. <plugins>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-war-plugin</artifactId>
  91. <version>2.1-alpha-2</version>
  92. <configuration>
  93. <warName>appName</warName>
  94. </configuration>
  95. </plugin>
  96. </plugins>
  97. </build>
  98.  
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-dependency-plugin</artifactId>
  102. <executions>
  103. <execution>
  104. <phase>process-classes</phase>
  105. <goals>
  106. <goal>copy-dependencies</goal>
  107. </goals>
  108. <configuration>
  109. <outputDirectory>
  110. ${project.build.directory}/${project.build.finalName}/WEB-INF/services
  111. </outputDirectory>
  112. <includeArtifactIds>
  113. ws-aar
  114. </includeArtifactIds>
  115. </configuration>
  116. </execution>
  117. </executions>
  118. </plugin>
  119.  
  120. <dependency>
  121. <groupId>group-a</groupId>
  122. <artifactId>artifact-b</artifactId>
  123. <version>1.0</version>
  124. <type>aar</type>
  125. </dependency>
  126.  
  127. mvn clean install
Add Comment
Please, Sign In to add comment