That's an excellent input.

I have moved the definitions in james-project to "/project/build/plugins".
Children definitively benefit from these.

However, apache-parent doesn't have them (I tought they had).

I will update james-sever to 1.8.2.-SNAPSHOT james-project, and it should work fine.

Thx again Jerry,

Eric

On 09/01/2013 05:16, Jerry Tian wrote:
Hi, Eric,


After trying XML code here and there, finally got the trunk to build.

The only change need to made is in server/pom.xml

*******************************************************
apache-james-trunk jerry$ svn diff server/pom.xml
Index: server/pom.xml
===================================================================
--- server/pom.xml (revision 1430655)
+++ server/pom.xml (working copy)
@@ -27,7 +27,7 @@
      <parent>
          <artifactId>james-project</artifactId>
          <groupId>org.apache.james</groupId>
-        <version>1.8.1</version>
+        <version>1.8.2-SNAPSHOT</version>
          <relativePath/>
      </parent>

@@ -1119,6 +1119,17 @@
                      <goals>deploy assembly:single</goals>
                  </configuration>
              </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
          </plugins>
      </build>


*******************************************************

However, I am aware of the discussion that the modification should be made in parent POM, 
in another mail thread. That method is also tried. It seems somewhat the 
"test-jar" goal can not take effect, my guess is that build plugin can only 
affect direct children projects? Anyway, just post the mod here for reference.

BTW, in your last commit of this file, the change is made under 
(XPath)"/project/build/pluginManagement/plugins" section, I found the working ones(like 
jms-queue) put them under  "/project/build/plugins" section, so I just duplicate them 
there.

*******************************************************
apache-james-trunk jerry$ svn diff project/pom.xml
Index: project/pom.xml
===================================================================
--- project/pom.xml (revision 1430655)
+++ project/pom.xml (working copy)
@@ -989,6 +989,17 @@
          <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>test-jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-doap-plugin</artifactId>
                  <executions>
                      <execution>


*******************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to