Why does Eclipse fail to build Arquillian?

    If you've tried to import an Arquillian module into Eclipse using the m2eclipse plugin, it likely fails to auto-build because the Maven enforcer plugin throws a rule violation. The problem is that when m2eclipse tries to invoke Maven through the auto-builder, the JAVA_HOME environment variable is not set.


    You need to assign the reserved env.JAVA_HOME variable using the vmargs flag when starting Eclipse


    eclipse -vmargs -Denv.JAVA_HOME=$JAVA_HOME


    Also make sure you have the code compliance in your project set to 1.6.