Closed sheeley closed 11 years ago
please use gem-maven-plugin version 1.0.0-beta/ http://repo1.maven.org/maven2/de/saumya/mojo/gem-maven-plugin/1.0.0-beta/
at $ mvn initialize works with me and your pom
On Wed, Apr 3, 2013 at 10:10 PM, Johnny Sheeley notifications@github.comwrote:
Hey, I just started playing with the gem maven last night (so I may be missing something), and I'm getting this NPE:
mvn -X -U clean install Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) Maven home: /usr/share/maven Java version: 1.6.0_43, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac" [INFO] Error stacktraces are turned on. [DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml [DEBUG] Reading user settings from /Users/jsheeley/.m2/settings.xml [DEBUG] Using local repository at /Users/jsheeley/.m2/repository [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /Users/jsheeley/.m2/repository [INFO] Scanning for projects... [DEBUG] Extension realms for project com.test.presentation:scss:jar:0.0.1-SNAPSHOT: (none) [DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null] [DEBUG] === REACTOR BUILD PLAN ================================================ [DEBUG] Project: com.test.presentation:scss:jar:0.0.1-SNAPSHOT [DEBUG] Tasks: [clean, install] [DEBUG] Style: Regular [DEBUG] ======================================================================= [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building scss 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy] [DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean] [DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy] [DEBUG] === PROJECT BUILD PLAN ================================================ [DEBUG] Project: com.test.presentation:scss:0.0.1-SNAPSHOT [DEBUG] Dependencies (collect): [] [DEBUG] Dependencies (resolve): [compile, runtime, test] [DEBUG] Repositories (dependencies): [rubygems-release (http://rubygems-proxy.torquebox.org/releases, releases+snapshots), central (http://repo1.maven.org/maven2, releases)] [DEBUG] Repositories (plugins) : [central (http://repo1.maven.org/maven2, releases)] [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${clean.excludeDefaultDirectories} ${maven.clean.failOnError} ${clean.followSymLinks} ${clean.skip} ${clean.verbose} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: de.saumya.mojo:gem-maven-plugin:0.29.1:initialize (default) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${args} ${gem.binDirectory} ${dummyExpression} ${gem.home} ${gem.path} ${gem.useSystem} ${gem.includeOpenSSL} ${gem.includeRubygemsInTestResources} ${gem.installRDoc} ${gem.installRI} ${jruby.fork} ${jruby.jvmargs} ${jruby.switches} ${jruby.verbose} ${jruby.version} ${jruby.launchDirectory} ${jruby.lib} ${plugin} ${project} ${jruby.sourceDirectory} ${gem.supportNative} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.4.3:resources (default-resources) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${encoding} ${maven.resources.escapeWindowsPaths} ${maven.resources.includeEmptyDirs} ${maven.resources.overwrite} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${maven.compiler.compilerId} ${maven.compiler.compilerVersion} ${maven.compiler.debug} ${maven.compiler.debuglevel} ${encoding} ${maven.compiler.executable} ${maven.compiler.failOnError} ${maven.compiler.fork} ${maven.compiler.maxmem} ${maven.compiler.meminitial} ${maven.compiler.optimize} ${project.build.finalName} ${maven.compiler.showDeprecation} ${maven.compiler.showWarnings} ${lastModGranularityMs} ${maven.compiler.target} ${maven.compiler.verbose} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.4.3:testResources (default-testResources) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${encoding} ${maven.resources.escapeWindowsPaths} ${maven.resources.includeEmptyDirs} ${project.build.testOutputDirectory} ${maven.resources.overwrite} ${project.testResources} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${maven.compiler.compilerId} ${maven.compiler.compilerVersion} ${maven.compiler.debug} ${maven.compiler.debuglevel} ${encoding} ${maven.compiler.executable} ${maven.compiler.failOnError} ${maven.compiler.fork} ${maven.compiler.maxmem} ${maven.compiler.meminitial} ${maven.compiler.optimize} ${project.build.finalName} ${maven.compiler.showDeprecation} ${maven.compiler.showWarnings} ${maven.test.skip} ${lastModGranularityMs} ${maven.compiler.target} ${maven.compiler.testSource} ${maven.compiler.testTarget} ${maven.compiler.verbose} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${argLine} ${childDelegation} ${maven.surefire.debug} ${disableXmlReport} ${enableAssertions} ${excludedGroups} ${failIfNoTests} ${forkMode} ${surefire.timeout} ${groups} ${junitArtifactName} ${jvm} ${localRepository} ${objectFactory} ${parallel} ${perCoreThreadCount} ${plugin.artifactMap} ${surefire.printSummary} ${project.artifactMap} ${maven.test.redirectTestOutputToFile} ${project.pluginArtifactRepositories} ${surefire.reportFormat} ${session} ${maven.test.skip} ${maven.test.skip.exec} ${skipTests} ${test} ${maven.test.failure.ignore} ${testNGArtifactName} ${threadCount} ${trimStackTrace} ${surefire.useFile} ${surefire.useManifestOnlyJar} ${surefire.useSystemClassLoader} ${useUnlimitedThreads} ${basedir} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-jar-plugin:2.3.1:jar (default-jar) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${project.build.outputDirectory} ${project.build.outputDirectory}/META-INF/MANIFEST.MF ${jar.finalName} ${jar.forceCreation} ${project.build.directory} ${project} ${jar.useDefaultManifestFile} [DEBUG] ----------------------------------------------------------------------- [DEBUG] Goal: org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install) [DEBUG] Style: Regular [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
${createChecksum} ${localRepository} ${updateReleaseInfo} [DEBUG] ======================================================================= [DEBUG] Could not find metadata com.github.jnr:jffi/maven-metadata.xml in local (/Users/jsheeley/.m2/repository) [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2 [DEBUG] Using connector WagonRepositoryConnector with priority 0 for https://oss.sonatype.org/content/repositories/snapshots [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://rubygems-proxy.torquebox.org/releases Downloading: http://repo1.maven.org/maven2/com/github/jnr/jffi/maven-metadata.xml Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml Downloading: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/com/github/jnr/jffi/maven-metadata.xml (574 B at 4.2 KB/sec) [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties Downloaded: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml (361 B at 0.4 KB/sec) [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Could not find metadata com.github.jnr:jffi/maven-metadata.xml in rubygems-release (http://rubygems-proxy.torquebox.org/releases) [DEBUG] Could not find metadata com.github.jnr:jffi/maven-metadata.xml in local (/Users/jsheeley/.m2/repository) [DEBUG] Using connector WagonRepositoryConnector with priority 0 for https://oss.sonatype.org/content/repositories/snapshots [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2 [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://rubygems-proxy.torquebox.org/releases Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/com/github/jnr/jffi/maven-metadata.xml Downloading: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jffi/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/com/github/jnr/jffi/maven-metadata.xml (574 B at 10.0 KB/sec) [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties Downloaded: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jffi/maven-metadata.xml (361 B at 0.5 KB/sec) [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jffi/resolver-status.properties [DEBUG] Could not find metadata com.github.jnr:jffi/maven-metadata.xml in rubygems-release (http://rubygems-proxy.torquebox.org/releases) [DEBUG] Could not find metadata com.github.jnr:jnr-x86asm/maven-metadata.xml in local (/Users/jsheeley/.m2/repository) [DEBUG] [DEBUG] Using connector WagonRepositoryConnector with priority 0 for https://oss.sonatype.org/content/repositories/snapshots [DEBUG] Using connector WagonRepositoryConnector with priority 0 for http://repo1.maven.org/maven2 Using connector WagonRepositoryConnector with priority 0 for http://rubygems-proxy.torquebox.org/releases Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/github/jnr/jnr-x86asm/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/com/github/jnr/jnr-x86asm/maven-metadata.xml Downloading: http://rubygems-proxy.torquebox.org/releases/com/github/jnr/jnr-x86asm/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/com/github/jnr/jnr-x86asm/maven-metadata.xml (362 B at 3.5 KB/sec) [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jnr-x86asm/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jnr-x86asm/resolver-status.properties [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jnr-x86asm/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jnr-x86asm/resolver-status.properties [DEBUG] Reading resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jnr-x86asm/resolver-status.properties [DEBUG] Writing resolution tracking file /Users/jsheeley/.m2/repository/com/github/jnr/jnr-x86asm/resolver-status.properties [DEBUG] Could not find metadata com.github.jnr:jnr-x86asm/maven-metadata.xml in rubygems-release (http://rubygems-proxy.torquebox.org/releases) [DEBUG] Could not find metadata com.github.jnr:jnr-x86asm/maven-metadata.xml in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) [DEBUG] com.test.presentation:scss:jar:0.0.1-SNAPSHOT [DEBUG] commons-io:commons-io:jar:2.4:compile [DEBUG] org.jruby:jruby-core:jar:1.7.0.RC1:compile [DEBUG] org.jruby:jruby-stdlib:jar:1.7.0.RC1:compile [DEBUG] org.jruby.joni:joni:jar:1.1.8:compile [DEBUG] com.github.jnr:jnr-netdb:jar:1.1.1:compile [DEBUG] com.github.jnr:jnr-unixsocket:jar:0.1:compile [DEBUG] com.github.jnr:jnr-enxio:jar:0.2:compile [DEBUG] com.github.jnr:jnr-posix:jar:2.3.0:compile [DEBUG] org.jruby.extras:bytelist:jar:1.0.10:compile [DEBUG] com.github.jnr:jnr-constants:jar:0.8.4:compile [DEBUG] org.jruby.jcodings:jcodings:jar:1.0.9:compile [DEBUG] com.github.jnr:jffi:jar:1.2.5:compile [DEBUG] org.yaml:snakeyaml:jar:1.10:compile [DEBUG] jline:jline:jar:2.7:compile [DEBUG] joda-time:joda-time:jar:2.1:compile [DEBUG] com.jcraft:jzlib:jar:1.1.1:compile [DEBUG] org.bouncycastle:bcmail-jdk15on:jar:1.46:compile [DEBUG] org.bouncycastle:bcprov-jdk15on:jar:1.46:compile [DEBUG] com.github.jnr:jnr-ffi:jar:0.7.7:compile [DEBUG] com.github.jnr:jffi:jar:native:1.2.6:runtime [DEBUG] com.github.jnr:jnr-x86asm:jar:1.0.2:compile [DEBUG] rubygems:sass:gem:3.2.7:compile [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ scss --- [DEBUG] Created new class realm maven.api [DEBUG] Importing foreign packages into class realm maven.api [DEBUG] Imported: org.apache.maven.wagon.events < plexus.core [DEBUG] Imported: org.sonatype.aether.transfer < plexus.core [DEBUG] Imported: org.apache.maven.exception < plexus.core [DEBUG] Imported: org.sonatype.aether.metadata < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core [DEBUG] Imported: org.sonatype.aether.collection < plexus.core [DEBUG] Imported: org.sonatype.aether.version < plexus.core [DEBUG] Imported: org.apache.maven.monitor < plexus.core [DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core [DEBUG] Imported: org.apache.maven.repository < plexus.core [DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core [DEBUG] Imported: org.codehaus.plexus.logging < plexus.core [DEBUG] Imported: org.apache.maven.profiles < plexus.core [DEBUG] Imported: org.sonatype.aether.repository < plexus.core [DEBUG] Imported: org.apache.maven.classrealm < plexus.core [DEBUG] Imported: org.apache.maven.execution < plexus.core [DEBUG] Imported: org.sonatype.aether.artifact < plexus.core [DEBUG] Imported: org.sonatype.aether.spi < plexus.core [DEBUG] Imported: org.apache.maven.reporting < plexus.core [DEBUG] Imported: org.apache.maven.usability < plexus.core [DEBUG] Imported: org.codehaus.plexus.container < plexus.core [DEBUG] Imported: org.codehaus.plexus.component < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core [DEBUG] Imported: org.apache.maven.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core [DEBUG] Imported: org.sonatype.aether.graph < plexus.core [DEBUG] Imported: org.sonatype.aether.* < plexus.core [DEBUG] Imported: org.apache.maven.settings < plexus.core [DEBUG] Imported: org.codehaus.classworlds < plexus.core [DEBUG] Imported: org.sonatype.aether.impl < plexus.core [DEBUG] Imported: org.apache.maven.wagon.* < plexus.core [DEBUG] Imported: org.apache.maven.toolchain < plexus.core [DEBUG] Imported: org.sonatype.aether.deployment < plexus.core [DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core [DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core [DEBUG] Imported: org.apache.maven.configuration < plexus.core [DEBUG] Imported: org.apache.maven.cli < plexus.core [DEBUG] Imported: org.sonatype.aether.installation < plexus.core [DEBUG] Imported: org.codehaus.plexus.context < plexus.core [DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core [DEBUG] Imported: org.apache.maven.project < plexus.core [DEBUG] Imported: org.apache.maven.rtinfo < plexus.core [DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core [DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core [DEBUG] Imported: org.apache.maven.artifact < plexus.core [DEBUG] Imported: org.apache.maven.model < plexus.core [DEBUG] Imported: org.apache.maven.* < plexus.core [DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core [DEBUG] Imported: org.sonatype.aether.resolution < plexus.core [DEBUG] Imported: org.apache.maven.plugin < plexus.core [DEBUG] Imported: org.codehaus.plexus.* < plexus.core [DEBUG] Imported: org.codehaus.plexus.personality < plexus.core [DEBUG] Populating class realm maven.api [DEBUG] org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1: [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile [DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.4.1 [DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.4.1 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-clean-plugin:2.4.1 [DEBUG] Included: org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6 [DEBUG] Configuring mojo org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-clean-plugin:2.4.1, parent: sun.misc.Launcher$AppClassLoader@1d9f953d] [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean' with basic configurator --> DEBUG directory = /Users/jsheeley/git/java-sass/target DEBUG excludeDefaultDirectories = false DEBUG failOnError = true DEBUG followSymLinks = false DEBUG outputDirectory = /Users/jsheeley/git/java-sass/target/classes DEBUG reportDirectory = /Users/jsheeley/git/java-sass/target/site DEBUG skip = false DEBUG testOutputDirectory = /Users/jsheeley/git/java-sass/target/test-classes [DEBUG] -- end configuration -- [DEBUG] Skipping non-existing directory /Users/jsheeley/git/java-sass/target [DEBUG] Skipping non-existing directory /Users/jsheeley/git/java-sass/target/classes [DEBUG] Skipping non-existing directory /Users/jsheeley/git/java-sass/target/test-classes [DEBUG] Skipping non-existing directory /Users/jsheeley/git/java-sass/target/site [INFO] [INFO] --- gem-maven-plugin:0.29.1:initialize (default) @ scss --- [DEBUG] de.saumya.mojo:gem-maven-plugin:jar:0.29.1: [DEBUG] de.saumya.mojo:jruby-maven-plugin:jar:0.29.1:compile [DEBUG] de.saumya.mojo:ruby-tools:jar:0.29.1:compile [DEBUG] ant:ant:jar:1.6.5:compile [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.2:compile [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile [DEBUG] junit:junit:jar:3.8.1:compile [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile [DEBUG] org.codehaus.plexus:plexus-io:jar:1.0.1:compile [DEBUG] de.saumya.mojo:maven-tools:jar:0.29.0:compile [DEBUG] org.apache.maven:maven-plugin-api:jar:3.0.3:compile [DEBUG] org.apache.maven:maven-model:jar:3.0.3:compile [DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:2.1.1:compile [DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:2.1.1:compile [DEBUG] org.sonatype.sisu:sisu-guice:jar:no_aop:2.9.4:compile [DEBUG] org.apache.maven:maven-core:jar:3.0.3:compile [DEBUG] org.apache.maven:maven-settings:jar:3.0.3:compile [DEBUG] org.apache.maven:maven-settings-builder:jar:3.0.3:compile [DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0.3:compile [DEBUG] org.apache.maven:maven-model-builder:jar:3.0.3:compile [DEBUG] org.apache.maven:maven-aether-provider:jar:3.0.3:compile [DEBUG] org.sonatype.aether:aether-spi:jar:1.11:compile [DEBUG] org.sonatype.aether:aether-impl:jar:1.11:compile [DEBUG] org.sonatype.aether:aether-api:jar:1.11:compile [DEBUG] org.sonatype.aether:aether-util:jar:1.11:compile [DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.14:compile [DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.6:compile [DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.4:compile [DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile [DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile [DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile [DEBUG] org.apache.maven:maven-artifact:jar:3.0.3:compile [DEBUG] Created new class realm plugin>de.saumya.mojo:gem-maven-plugin:0.29.1 [DEBUG] Importing foreign packages into class realm plugin>de.saumya.mojo:gem-maven-plugin:0.29.1 [DEBUG] Imported: < maven.api [DEBUG] Populating class realm plugin>de.saumya.mojo:gem-maven-plugin:0.29.1 [DEBUG] Included: de.saumya.mojo:gem-maven-plugin:jar:0.29.1 [DEBUG] Included: de.saumya.mojo:jruby-maven-plugin:jar:0.29.1 [DEBUG] Included: de.saumya.mojo:ruby-tools:jar:0.29.1 [DEBUG] Included: ant:ant:jar:1.6.5 [DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.2 [DEBUG] Included: junit:junit:jar:3.8.1 [DEBUG] Included: org.codehaus.plexus:plexus-io:jar:1.0.1 [DEBUG] Included: de.saumya.mojo:maven-tools:jar:0.29.0 [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:2.1.1 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:2.9.4 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.11 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.6 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 [DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2 [DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:3.0.3 [DEBUG] Excluded: org.apache.maven:maven-model:jar:3.0.3 [DEBUG] Excluded: org.sonatype.sisu:sisu-inject-plexus:jar:2.1.1 [DEBUG] Excluded: org.apache.maven:maven-core:jar:3.0.3 [DEBUG] Excluded: org.apache.maven:maven-settings:jar:3.0.3 [DEBUG] Excluded: org.apache.maven:maven-settings-builder:jar:3.0.3 [DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:3.0.3 [DEBUG] Excluded: org.apache.maven:maven-model-builder:jar:3.0.3 [DEBUG] Excluded: org.apache.maven:maven-aether-provider:jar:3.0.3 [DEBUG] Excluded: org.sonatype.aether:aether-spi:jar:1.11 [DEBUG] Excluded: org.sonatype.aether:aether-impl:jar:1.11 [DEBUG] Excluded: org.sonatype.aether:aether-api:jar:1.11 [DEBUG] Excluded: org.codehaus.plexus:plexus-classworlds:jar:2.4 [DEBUG] Excluded: org.apache.maven:maven-artifact:jar:3.0.3 [DEBUG] Configuring mojo de.saumya.mojo:gem-maven-plugin:0.29.1:initialize from plugin realm ClassRealm[plugin>de.saumya.mojo:gem-maven-plugin:0.29.1, parent: sun.misc.Launcher$AppClassLoader@1d9f953d] [DEBUG] Configuring mojo 'de.saumya.mojo:gem-maven-plugin:0.29.1:initialize' with basic configurator --> DEBUG classRealm = org.codehaus.classworlds.ClassRealmAdapter@540a6997 DEBUG gemHome = /Users/jsheeley/git/java-sass/target/rubygems DEBUG gemPath = /Users/jsheeley/git/java-sass/target/rubygems DEBUG gemUseSystem = false DEBUG includeOpenSSL = true DEBUG includeRubygemsInTestResources = true DEBUG installRDoc = false DEBUG installRI = false DEBUG jrubyFork = true DEBUG jrubyVerbose = false DEBUG launchDirectory = /Users/jsheeley/git/java-sass DEBUG libDirectory = /Users/jsheeley/git/java-sass/lib DEBUG localRepository = id: local url: file:///Users/jsheeley/.m2/repository/ layout: none
DEBUG plugin = Component Descriptor: role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.ListMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:list' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.PomMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:pom' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.GemMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:gem' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.InstallMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:install' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.GemifyMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:gemify' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.PackageMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:package' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.InitializeMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:initialize' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.PushMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:push' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.SpecMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:spec' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.ExecuteInPhaseMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:execute_in_phase' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.HelpMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:help' role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.IrbMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:irb'
role: 'org.apache.maven.plugin.Mojo', implementation: 'de.saumya.mojo.gem.ExecMojo', role hint: 'de.saumya.mojo:gem-maven-plugin:0.29.1:exec'
DEBUG project = MavenProject: com.test.presentation:scss:0.0.1-SNAPSHOT @ /Users/jsheeley/git/java-sass/pom.xml DEBUG rubySourceDirectory = /Users/jsheeley/git/java-sass/src/main/ruby DEBUG supportNative = false [DEBUG] -- end configuration -- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.953s [INFO] Finished at: Tue Apr 02 23:12:25 PDT 2013 [INFO] Final Memory: 7M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:0.29.1:initialize (default) on project scss: Execution default of goal de.saumya.mojo:gem-maven-plugin:0.29.1:initialize failed. NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal de.saumya.mojo:gem-maven-plugin:0.29.1:initialize (default) on project scss: Execution default of goal de.saumya.mojo:gem-maven-plugin:0.29.1:initialize failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal de.saumya.mojo:gem-maven-plugin:0.29.1:initialize failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: java.lang.NullPointerException at de.saumya.mojo.gem.AbstractGemMojo.newScriptFactory(AbstractGemMojo.java:161) at de.saumya.mojo.jruby.AbstractJRubyMojo.newScriptFactory(AbstractJRubyMojo.java:160) at de.saumya.mojo.jruby.AbstractJRubyMojo.execute(AbstractJRubyMojo.java:202) at de.saumya.mojo.gem.AbstractGemMojo.execute(AbstractGemMojo.java:155) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more [ERROR] [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/PluginExecutionException
Here's my pom:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0 <groupId>com.test</groupId> <artifactId>scss</artifactId> <version>0.0.1-SNAPSHOT</version>
<repositories> <repository> <id>rubygems-release</id> <url>http://rubygems-proxy.torquebox.org/releases</url> </repository> </repositories> <dependencies> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.4</version> </dependency> <dependency> <groupId>org.jruby</groupId> <artifactId>jruby-complete</artifactId> <version>1.7.0.RC1</version> </dependency> <!-- <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <version>1.6.4</version> </dependency> --> <dependency> <groupId>rubygems</groupId> <artifactId>sass</artifactId> <version>3.2.7</version> <type>gem</type> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>de.saumya.mojo</groupId> <artifactId>gem-maven-plugin</artifactId> <version>0.29.1</version> <executions> <execution> <goals> <goal>initialize</goal> </goals> </execution> </executions> </plugin> </plugins> <pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> de.saumya.mojo </groupId> <artifactId> gem-maven-plugin </artifactId> <versionRange> [0.29.1,) </versionRange> <goals> <goal>initialize</goal> </goals> </pluginExecutionFilter> <action> <execute></execute> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>
— Reply to this email directly or view it on GitHubhttps://github.com/torquebox/jruby-maven-plugins/issues/45 .
@mkristian thanks! should've checked that. Now I'm getting:
LoadError: no such file to load -- sass
require at org/jruby/RubyKernel.java:1019
require at jar:file:/Users/jsheeley/maven.repo/org/jruby/jruby-complete/1.7.0.RC1/jruby-complete-1.7.0.RC1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at <script>:1
Sass is showing up as resolved in my pom - I'm simply doing this:
ScriptEngineManager sem = new ScriptEngineManager();
ScriptEngine engine = sem.getEngineByName("jruby");
engine.eval("require 'sass'");
Any ideas?
I suppose you run the java code in some phase of maven. the test-phase the gem-plugin adds target/rubygems/ path to the test-classloader/test-classpath like that
<resources>
<resource>
<directory>target/rubygems</directory>
<includes>
<include>specifications/**</include>
<include>gems/**</include>
</includes>
</resource>
</resources>
or just put into a testcase.
Excellent, thanks! Added to my build path and seems to be working.
great - I guess we should add that to the build-path per default
Hey, I just started playing with the gem maven last night (so I may be missing something), and I'm getting this NPE:
Here's my pom: