I'm pretty sure the confgiuration for the exec plugin is not within the pluginManagement section. Therefore it only works within the maven build lifecycle (e.g. mvn compile).
/Anders On Wed, Feb 4, 2015 at 1:07 PM, Minty <mintywal...@gmail.com> wrote: > Hi, > > Wondering if anyone has any pointers? I've exhausted my google > searching skills & so far drawn a complete blank. > > git clone https://github.com/aws/aws-sdk-java > > mvn3 clean # works > mvn3 compile # works > mvn3 exec:java > > returns: > > [ERROR] Failed to execute goal > org.codehaus.mojo:exec-maven-plugin:1.3.2:java (default-cli) on > project aws-java-sdk-pom: The parameters 'mainClass' for goal > org.codehaus.mojo:exec-maven-plugin:1.3.2:java are missing or invalid > -> [Help 1] > > I'm aware there are other ways to get the AWS SDK installed (either > via the zip file, or via Eclipse), but for various reasons I'd like to > be able to build the source from the git checkout. I'm also aware > this isn't the AWS support group -- but it's giving me an error about > exec-maven-plugin > > I've tested agains the AWS HEAD checkout, and the tagged versions > 1.9.14 and 1.9.17. I've deleted ~/.m2/ many times & done "mvn3 > clean", "mvn3 compile" & "mvn3 exec:java" and I always get the same > error on the last "exec:java" step. > > I've attached the output of "mvn3 -X exec:java" > > I'm completely stumped. Can anyone point me at why I'm being stupid here? > > Thanks, > Murray. > > ---- > > I've use MacPorts to install mvn3. > > MacOS 10.10.2 (Yosemite) > > which java && java -version > /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java > java version "1.7.0_71" > Java(TM) SE Runtime Environment (build 1.7.0_71-b14) > Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode) > > § echo $JAVA_HOME > /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home > > Maven via "sudo port install maven3" > > § mvn3 --version > Apache Maven 3.2.3 (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; > 2014-08-11T21:58:10+01:00) > Maven home: /opt/local/share/java/maven3 > Java version: 1.7.0_71, vendor: Oracle Corporation > Java home: > /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac" > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > >