On 2012-04-14 02:08, Eugene Koontz wrote: > Hi, > I'm trying to debug an error in running 'mvn site:site' within the > Apache Giraph project's top-level directory. The pom.xml is here: > > https://github.com/apache/giraph/blob/trunk/pom.xml > > Note that there is a default profile, hadoop_0.20.203. This profile has > the munge symbols HADOOP_NON_SASL_RPC,HADOOP_NON_INTERVERSIONED_RPC > which are used control conditional compilation. This works fine for some > goals, like "mvn test" and "mvn verify". However, when I try to do "mvn > site:site" it fails due to a Java compile error: > > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] > /home/ec2-user/giraph/src/main/java/org/apache/giraph/comm/BasicRPCCommunications.java:[66,28] > cannot find symbol > symbol : class ProtocolSignature > location: package org.apache.hadoop.ipc > > This compile error would be avoided if the munge symbols mentioned above > were employed (as they are with "test" and "verify"). So the problem > seems to be to get "mvn site:site" to use munge. > > What I need to do to the pom.xml to make this happen? Please also help > me understand what the difference is between "mvn compile" and "mvn > compiler:compile" - the former succeeds, the latter fails due to the > same compilation error.
mvn compile invokes a lifecycle phase mvn compiler:compile invokes a goal in the compiler plugin > Perhaps "mvn site:site" is having a problem because it is invoking "mvn > compiler:compile" rather than "mvn compile"? (mvn -X site:site seems to > suggest so). mvn site:site invokes a goal on the site plugin mvn site invokes a lifecycle phase Try the latter and see if it works for you. Read more about phases and goals here: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html > -Eugene > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- Dennis Lundberg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
