Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec (default) on project referenceapplication-omod

Does any one know how to solve following issue? [INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.module:referenceapplication-omod:jar:2.6-SNAPSHOT [WARNING] ‘build.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ org.openmrs.module:referenceapplication-omod:[unknown-version], E:\source code\openmrs-module-referenceapplication-master\omod\pom.xml, line 235, column 21 [WARNING] ‘build.plugins.plugin.version’ for de.saumya.mojo:gem-maven-plugin is missing. @ org.openmrs.module:referenceapplication-omod:[unknown-version], E:\source code\openmrs-module-referenceapplication-master\omod\pom.xml, line 260, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Reference Application Module [INFO] Reference Application Module API [INFO] Reference Application Module OMOD [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Reference Application Module 2.6-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ referenceapplication — [INFO] Installing E:\source code\openmrs-module-referenceapplication-master\pom.xml to C:\Users\mukesh.m2\repository\org\openmrs\module\referenceapplication\2.6-SNAPSHOT\referenceapplication-2.6-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Reference Application Module API 2.6-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ referenceapplication-api — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ referenceapplication-api — [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ referenceapplication-api — [INFO] Not copying test resources [INFO] [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ referenceapplication-api — [INFO] Not compiling test sources [INFO] [INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ referenceapplication-api — [INFO] Tests are skipped. [INFO] [INFO] — maven-jar-plugin:2.4:jar (default-jar) @ referenceapplication-api — [INFO] Building jar: E:\source code\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ referenceapplication-api — [INFO] Installing E:\source code\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar to C:\Users\mukesh.m2\repository\org\openmrs\module\referenceapplication-api\2.6-SNAPSHOT\referenceapplication-api-2.6-SNAPSHOT.jar [INFO] Installing E:\source code\openmrs-module-referenceapplication-master\api\pom.xml to C:\Users\mukesh.m2\repository\org\openmrs\module\referenceapplication-api\2.6-SNAPSHOT\referenceapplication-api-2.6-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Reference Application Module OMOD 2.6-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-openmrs-plugin:1.0.1:initialize-module (init) @ referenceapplication-omod — [INFO] [INFO] — maven-dependency-plugin:2.4:unpack-dependencies (Expand moduleApplicationContext and messages) @ referenceapplication-omod —

isMarkerOlder: artifact1 = E:\source code\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar marker = E:\source code\openmrs-module-referenceapplication-master\omod\target\dependency-maven-plugin-markers\org.openmrs.module-referenceapplication-api-jar-2.6-SNAPSHOT.marker artifact1 lastModified: 1487964674167 marker lastModified: 1487964570337 < true = marker older than artifact? [INFO] Unpacking E:\source code\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar to E:\source code\openmrs-module-referenceapplication-master\omod\target\classes with includes “**/*” and excludes “” [INFO] [INFO] — maven-dependency-plugin:2.4:unpack (Fetch SASS sources from uicommons) @ referenceapplication-omod — [INFO] Configured Artifact: org.openmrs.module:uicommons-scss:?:zip [INFO] Unpacking C:\Users\mukesh.m2\repository\org\openmrs\module\uicommons-scss\2.1\uicommons-scss-2.1.zip to E:\source code\openmrs-module-referenceapplication-master\omod\src\main\compass\sass-external with includes “” and excludes “” [INFO] [INFO] — gem-maven-plugin:1.1.5:exec (default) @ referenceapplication-omod — [WARNING] Error injecting: de.saumya.mojo.gem.ExecMojo java.lang.NoClassDefFoundError: de/saumya/mojo/ruby/script/ScriptException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getDeclaredConstructors(Class.java:2020) at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245) at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99) at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:658) at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:882) at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:805) at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:282) at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:214) at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:1006) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1038) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1001) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: java.lang.ClassNotFoundException: de.saumya.mojo.ruby.script.ScriptException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 55 more [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Reference Application Module … SUCCESS [ 0.271 s] [INFO] Reference Application Module API … SUCCESS [ 2.988 s] [INFO] Reference Application Module OMOD … FAILURE [ 1.742 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.347 s [INFO] Finished at: 2017-02-25T01:01:15+05:30 [INFO] Final Memory: 23M/257M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec (default) on project referenceapplication-omod: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec failed: A required class was missing while executing de.saumya.mojo:gem-maven-plugin:1.1.5:exec: de/saumya/mojo/ruby/script/ScriptException [ERROR] ----------------------------------------------------- [ERROR] realm = extension>de.saumya.mojo:gem-maven-plugin:1.1.5 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/mukesh/.m2/repository/de/saumya/mojo/gem-maven-plugin/1.1.5/gem-maven-plugin-1.1.5.jar [ERROR] urls[1] = file:/C:/Users/mukesh/.m2/repository/de/saumya/mojo/jruby-maven-plugin/1.1.5/jruby-maven-plugin-1.1.5.jar [ERROR] urls[2] = file:/C:/Users/mukesh/.m2/repository/de/saumya/mojo/ruby-tools/1.1.5/ruby-tools-1.1.5.jar [ERROR] urls[3] = file:/C:/Users/mukesh/.m2/repository/org/apache/ant/ant/1.9.4/ant-1.9.4.jar [ERROR] urls[4] = file:/C:/Users/mukesh/.m2/repository/org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.jar [ERROR] urls[5] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-archiver/3.0/plexus-archiver-3.0.jar [ERROR] urls[6] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-io/2.4.1/plexus-io-2.4.1.jar [ERROR] urls[7] = file:/C:/Users/mukesh/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar [ERROR] urls[8] = file:/C:/Users/mukesh/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar [ERROR] urls[9] = file:/C:/Users/mukesh/.m2/repository/org/xerial/snappy/snappy-java/1.1.1.6/snappy-java-1.1.1.6.jar [ERROR] urls[10] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar [ERROR] urls[11] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar [ERROR] urls[12] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar [ERROR] urls[13] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar [ERROR] urls[14] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar [ERROR] urls[15] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar [ERROR] urls[16] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar [ERROR] urls[17] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar [ERROR] urls[18] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] -----------------------------------------------------: de.saumya.mojo.ruby.script.ScriptException [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :referenceapplication-omod

Which version of maven are you using?

3.3.9 maven version

Try remove the space from your path component named “source code”. Just rename it to “sourcecode” and compile again.

Following error is coming [INFO] Scanning for projects… [WARNING] [WARNING] Some problems were encountered while building the effective model for org.openmrs.module:referenceapplication-omod:jar:2.6-SNAPSHOT [WARNING] ‘build.plugins.plugin.(groupId:artifactId)’ must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin @ org.openmrs.module:referenceapplication-omod:[unknown-version], E:\sourcecode\openmrs-module-referenceapplication-master\omod\pom.xml, line 235, column 21 [WARNING] ‘build.plugins.plugin.version’ for de.saumya.mojo:gem-maven-plugin is missing. @ org.openmrs.module:referenceapplication-omod:[unknown-version], E:\sourcecode\openmrs-module-referenceapplication-master\omod\pom.xml, line 260, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Reference Application Module [INFO] Reference Application Module API [INFO] Reference Application Module OMOD [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Reference Application Module 2.6-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ referenceapplication — [INFO] Installing E:\sourcecode\openmrs-module-referenceapplication-master\pom.xml to C:\Users\mukesh.m2\repository\org\openmrs\module\referenceapplication\2.6-SNAPSHOT\referenceapplication-2.6-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Reference Application Module API 2.6-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ referenceapplication-api — [INFO] Using ‘UTF-8’ encoding to copy filtered resources. [INFO] Copying 7 resources [INFO] [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ referenceapplication-api — [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to E:\sourcecode\openmrs-module-referenceapplication-master\api\target\classes [INFO] [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ referenceapplication-api — [INFO] Not copying test resources [INFO] [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ referenceapplication-api — [INFO] Not compiling test sources [INFO] [INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ referenceapplication-api — [INFO] Tests are skipped. [INFO] [INFO] — maven-jar-plugin:2.4:jar (default-jar) @ referenceapplication-api — [INFO] Building jar: E:\sourcecode\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar [INFO] [INFO] — maven-install-plugin:2.4:install (default-install) @ referenceapplication-api — [INFO] Installing E:\sourcecode\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar to C:\Users\mukesh.m2\repository\org\openmrs\module\referenceapplication-api\2.6-SNAPSHOT\referenceapplication-api-2.6-SNAPSHOT.jar [INFO] Installing E:\sourcecode\openmrs-module-referenceapplication-master\api\pom.xml to C:\Users\mukesh.m2\repository\org\openmrs\module\referenceapplication-api\2.6-SNAPSHOT\referenceapplication-api-2.6-SNAPSHOT.pom [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building Reference Application Module OMOD 2.6-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-openmrs-plugin:1.0.1:initialize-module (init) @ referenceapplication-omod — [INFO] [INFO] — maven-dependency-plugin:2.4:unpack-dependencies (Expand moduleApplicationContext and messages) @ referenceapplication-omod — [INFO] Unpacking E:\sourcecode\openmrs-module-referenceapplication-master\api\target\referenceapplication-api-2.6-SNAPSHOT.jar to E:\sourcecode\openmrs-module-referenceapplication-master\omod\target\classes with includes “**/*” and excludes “” [INFO] [INFO] — maven-dependency-plugin:2.4:unpack (Fetch SASS sources from uicommons) @ referenceapplication-omod — [INFO] Configured Artifact: org.openmrs.module:uicommons-scss:?:zip [INFO] Unpacking C:\Users\mukesh.m2\repository\org\openmrs\module\uicommons-scss\2.1\uicommons-scss-2.1.zip to E:\sourcecode\openmrs-module-referenceapplication-master\omod\src\main\compass\sass-external with includes “” and excludes “” [INFO] [INFO] — gem-maven-plugin:1.1.5:exec (default) @ referenceapplication-omod — [WARNING] Error injecting: de.saumya.mojo.gem.ExecMojo java.lang.NoClassDefFoundError: de/saumya/mojo/ruby/script/ScriptException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671) at java.lang.Class.getDeclaredConstructors(Class.java:2020) at com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:245) at com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:99) at com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:658) at com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:882) at com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:805) at com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:282) at com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:214) at com.google.inject.internal.InjectorImpl.getProviderOrThrow(InjectorImpl.java:1006) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1038) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1001) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1051) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: java.lang.ClassNotFoundException: de.saumya.mojo.ruby.script.ScriptException at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) … 55 more [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Reference Application Module … SUCCESS [ 0.248 s] [INFO] Reference Application Module API … SUCCESS [ 4.474 s] [INFO] Reference Application Module OMOD … FAILURE [ 1.567 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.511 s [INFO] Finished at: 2017-02-25T02:42:24+05:30 [INFO] Final Memory: 41M/207M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec (default) on project referenceapplication-omod: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec failed: A required class was missing while executing de.saumya.mojo:gem-maven-plugin:1.1.5:exec: de/saumya/mojo/ruby/script/ScriptException [ERROR] ----------------------------------------------------- [ERROR] realm = extension>de.saumya.mojo:gem-maven-plugin:1.1.5 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/C:/Users/mukesh/.m2/repository/de/saumya/mojo/gem-maven-plugin/1.1.5/gem-maven-plugin-1.1.5.jar [ERROR] urls[1] = file:/C:/Users/mukesh/.m2/repository/de/saumya/mojo/jruby-maven-plugin/1.1.5/jruby-maven-plugin-1.1.5.jar [ERROR] urls[2] = file:/C:/Users/mukesh/.m2/repository/de/saumya/mojo/ruby-tools/1.1.5/ruby-tools-1.1.5.jar [ERROR] urls[3] = file:/C:/Users/mukesh/.m2/repository/org/apache/ant/ant/1.9.4/ant-1.9.4.jar [ERROR] urls[4] = file:/C:/Users/mukesh/.m2/repository/org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.jar [ERROR] urls[5] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-archiver/3.0/plexus-archiver-3.0.jar [ERROR] urls[6] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-io/2.4.1/plexus-io-2.4.1.jar [ERROR] urls[7] = file:/C:/Users/mukesh/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar [ERROR] urls[8] = file:/C:/Users/mukesh/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar [ERROR] urls[9] = file:/C:/Users/mukesh/.m2/repository/org/xerial/snappy/snappy-java/1.1.1.6/snappy-java-1.1.1.6.jar [ERROR] urls[10] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar [ERROR] urls[11] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar [ERROR] urls[12] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar [ERROR] urls[13] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar [ERROR] urls[14] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar [ERROR] urls[15] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar [ERROR] urls[16] = file:/C:/Users/mukesh/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar [ERROR] urls[17] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar [ERROR] urls[18] = file:/C:/Users/mukesh/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] -----------------------------------------------------: de.saumya.mojo.ruby.script.ScriptException [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :referenceapplication-omod

Someone help me to solve this issue

Are you compiling from commandline? If yes, which command are you using to compile?

I am compiling through eclipse maven plugin using maven install

Try maven clean install If it fails, then try compile from commandline using: mvn clean install

still same error raised: [INFO] Unpacking C:\Users\mukesh.m2\repository\org\openmrs\module\uicommons-scss\2.1\uicommons-scss-2.1.zip to E:\sourcecode\openmrs-module-registrationapp-master\omod\src\main\compass\sass-external with includes “” and excludes “” [INFO] [INFO] — gem-maven-plugin:1.1.5:exec (default) @ registrationapp-omod — [WARNING] Error injecting: de.saumya.mojo.gem.ExecMojo java.lang.NoClassDefFoundError: de/saumya/mojo/ruby/script/ScriptException

@mukesh Is your internet connection turned on while running the command(It has to be on during the first run to download additional dependencies) ?

@reubenv Yes Internet connection is up.I also deleted the openmrs folder from .m2 repository and again install all the dependencies but problem is still persist

I get same error with another model.

[INFO] --- gem-maven-plugin:1.1.5:exec (default) @ orderentryui-omod --- [WARNING] Error injecting: de.saumya.mojo.gem.ExecMojo java.lang.TypeNotPresentException: Type de.saumya.mojo.gem.ExecMojo not present at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:143) at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115) at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: java.lang.ClassNotFoundException: de.saumya.mojo.gem.ExecMojo at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:139) ... 42 more [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Order Entry UI Module .............................. SUCCESS [ 0.251 s] [INFO] Order Entry UI Module API .......................... SUCCESS [ 2.306 s] [INFO] Order Entry UI Module OMOD ......................... FAILURE [ 1.093 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.793 s [INFO] Finished at: 2017-02-27T21:02:03+04:30 [INFO] Final Memory: 31M/256M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec (default) on project orderentryui-omod: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec failed: Unable to load the mojo 'exec' in the plugin 'de.saumya.mojo:gem-maven-plugin:1.1.5'. A required class is missing: de.saumya.mojo.gem.ExecMojo

@mksd: Sorry for bothering you again.

Can you compile from command line instead of eclipse?

I fixed the previously mentioned error by removing bellow piece of code from openmrs-module-orderentryui/omod/pom.xml

<plugin>
	<groupId>de.saumya.mojo</groupId>
	<artifactId>gem-maven-plugin</artifactId>
	<extensions>true</extensions>
	<executions>
		<execution>
			<goals>
				<goal>exec</goal>
			</goals>
			<phase>generate-resources</phase>
		</execution>
	</executions>
	<configuration>
		<jrubyVersion>1.7.10</jrubyVersion>
		<execArgs>${project.build.directory}/rubygems/bin/compass compile ${basedir}/src/main/compass</execArgs>
	</configuration>
</plugin>

Thanks for replying and supporting… code is compile though command prompt

I am trying to build RefApp 2.5 but i get following error in eclipse and cmd. java version 1.8.0_121 Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T21:11:47+04:30)

[INFO] ------------------------------------------------------------------------
[INFO] Building Reference Application Module OMOD 2.5
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ referenceapplication-omod ---
[INFO] Deleting C:\Users\Pardess\workspace\openmrs-module-referenceapplication-2.5\omod\target
[INFO]
[INFO] --- maven-openmrs-plugin:1.0.1:initialize-module (init) @ referenceapplication-omod ---
[INFO]
[INFO] --- maven-dependency-plugin:2.4:unpack-dependencies (Expand moduleApplicationContext and messages) @ referenceapplication-omod ---
[INFO] Unpacking C:\Users\Pardess\workspace\openmrs-module-referenceapplication-2.5\api\target\referenceapplication-api-2.5.jar to C:\Users\Pardess\workspace\openmrs-module-referenceapplication-2.5\omod\target\classes with includes "**/*" and excludes ""
[INFO]
[INFO] --- maven-dependency-plugin:2.4:unpack (Fetch SASS sources from uicommons) @ referenceapplication-omod ---
[INFO] Configured Artifact: org.openmrs.module:uicommons-scss:?:zip
[INFO] Unpacking C:\Users\Pardess\.m2\repository\org\openmrs\module\uicommons-scss\2.1\uicommons-scss-2.1.zip to C:\Users\Pardess\workspace\openmrs-module-referenceapplication-2.5\omod\src\main\compass\sass-external with includes "" and excludes ""
[INFO]
[INFO] --- gem-maven-plugin:1.1.5:exec (default) @ referenceapplication-omod ---
[WARNING] Error injecting: de.saumya.mojo.gem.ExecMojo
java.lang.TypeNotPresentException: Type de.saumya.mojo.gem.ExecMojo not present
        at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:143)
        at org.eclipse.sisu.space.NamedClass.load(NamedClass.java:46)
        at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
        at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:53)
        at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:65)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:115)
        at org.eclipse.sisu.bean.BeanScheduler$Activator.onProvision(BeanScheduler.java:176)
        at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126)
        at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68)
        at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:63)
        at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:45)
        at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
        at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012)
        at org.eclipse.sisu.inject.Guice4$1.get(Guice4.java:162)
        at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:81)
        at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:263)
        at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:255)
        at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:517)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:121)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: de.saumya.mojo.gem.ExecMojo
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
        at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:139)
        ... 42 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Reference Application Module ....................... SUCCESS [  0.229 s]
[INFO] Reference Application Module API ................... SUCCESS [ 35.361 s]
[INFO] Reference Application Module OMOD .................. FAILURE [  1.171 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.773 s
[INFO] Finished at: 2017-03-31T12:05:14+04:30
[INFO] Final Memory: 52M/496M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec (default) on project referenceapplication-omod: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.1.5:exec failed: Unable to load the mojo 'exec' in the plugin 'de.saumya.mojo:gem-maven-plugin:1.1.5'. A required class is missing: de.saumya.mojo.gem.ExecMojo
[ERROR] -----------------------------------------------------
[ERROR] realm =    extension>de.saumya.mojo:gem-maven-plugin:1.1.5
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/Pardess/.m2/repository/de/saumya/mojo/gem-maven-plugin/1.1.5/gem-maven-plugin-1.1.5.jar
[ERROR] urls[1] = file:/C:/Users/Pardess/.m2/repository/de/saumya/mojo/jruby-maven-plugin/1.1.5/jruby-maven-plugin-1.1.5.jar
[ERROR] urls[2] = file:/C:/Users/Pardess/.m2/repository/de/saumya/mojo/ruby-tools/1.1.5/ruby-tools-1.1.5.jar
[ERROR] urls[3] = file:/C:/Users/Pardess/.m2/repository/org/apache/ant/ant/1.9.4/ant-1.9.4.jar
[ERROR] urls[4] = file:/C:/Users/Pardess/.m2/repository/org/apache/ant/ant-launcher/1.9.4/ant-launcher-1.9.4.jar
[ERROR] urls[5] = file:/C:/Users/Pardess/.m2/repository/org/codehaus/plexus/plexus-archiver/3.0/plexus-archiver-3.0.jar
[ERROR] urls[6] = file:/C:/Users/Pardess/.m2/repository/org/codehaus/plexus/plexus-io/2.4.1/plexus-io-2.4.1.jar
[ERROR] urls[7] = file:/C:/Users/Pardess/.m2/repository/commons-io/commons-io/2.2/commons-io-2.2.jar
[ERROR] urls[8] = file:/C:/Users/Pardess/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar
[ERROR] urls[9] = file:/C:/Users/Pardess/.m2/repository/org/xerial/snappy/snappy-java/1.1.1.6/snappy-java-1.1.1.6.jar
[ERROR] urls[10] = file:/C:/Users/Pardess/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[11] = file:/C:/Users/Pardess/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar
[ERROR] urls[12] = file:/C:/Users/Pardess/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar
[ERROR] urls[13] = file:/C:/Users/Pardess/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar
[ERROR] urls[14] = file:/C:/Users/Pardess/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[15] = file:/C:/Users/Pardess/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar
[ERROR] urls[16] = file:/C:/Users/Pardess/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[17] = file:/C:/Users/Pardess/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[18] = file:/C:/Users/Pardess/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :referenceapplication-omod

if i remove the following plugin then it is compiled successfully but css files are missing.

@dkayiwa , @darius

@dkayiwa, which version of maven, Java and OS do u use to build the modules locally?

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T19:41:47+03:00) Maven home: /usr/local/apache-maven-3.3.9 Java version: 1.8.0_66, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: “mac os x”, version: “10.11.6”, arch: “x86_64”, family: “mac”

Here is my local setup but still facing same issue,

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T21:11:47+04:30) Maven home: /Users/hpardess/apache-maven-3.3.9 Java version: 1.8.0_11, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: “mac os x”, version: “10.11.6”, arch: “x86_64”, family: “mac”