Skip to content

Instantly share code, notes, and snippets.

@mkristian
Last active January 3, 2016 20:59
Show Gist options
  • Save mkristian/8518837 to your computer and use it in GitHub Desktop.
Save mkristian/8518837 to your computer and use it in GitHub Desktop.
building vtd_xml with ruby-maven
source 'https://rubygems.org'
# Specify your gem's dependencies in vtd-xml.gemspec
gemspec
# needed to build the gem but fails when it is part of the gems
gem "ruby-maven", '~> 3.1.1.0'
vtd_xml $ rake build
vtd_xml 0.0.3 built to pkg/vtd_xml-0.0.3-java.gem.
[INFO] Scanning for projects...
/home/christian/projects/clones/vtd-xml-ruby/vtd_xml/.tesla.Mavenfile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building I like VTD-XML so I use this instead of standard XML parsers 0.0.3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- gem-maven-plugin:1.0.0-rc4:initialize (default-initialize) @ vtd_xml ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ vtd_xml ---
[INFO] Using 'utf-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/christian/projects/clones/vtd-xml-ruby/vtd_xml/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ vtd_xml ---
[INFO] No sources to compile
[INFO]
[INFO] --- gem-maven-plugin:1.0.0-rc4:package (default-package) @ vtd_xml ---
[INFO] include dependencies? true
[INFO] -- include -- com.ximpleware:vtd-xml:jar:2.11:compile
[WARNING] WARNING: description and summary are identical
[INFO] Successfully built RubyGem
[INFO] Name: vtd_xml
[INFO] Version: 0.0.3
[INFO] File: vtd_xml-0.0.3-java.gem
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13:13.981s
[INFO] Finished at: Mon Jan 20 11:53:56 GMT 2014
[INFO] Final Memory: 24M/286M
[INFO] ------------------------------------------------------------------------
gemspec :include_jars => true
properties( 'jruby.plugins.version' => '1.0.0-SNAPSHOT',
'tesla.dump.pom' => 'pom.xml' )
snapshot_repository 'https://oss.sonatype.org/content/repositories/snapshots', :id => 'oss'
@arielvalentin
Copy link

No dice
git:ruby_maven_spike
→ jruby -S rake clean build
[INFO] Scanning for projects...
/Users/arielvalentin/dev/repos/vtd-xml-ruby/vtd_xml/.tesla.Mavenfile
[WARNING] The POM for de.saumya.mojo:gem-extension:jar:1.0.0-SNAPSHOT is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project rubygems:vtd_xml:0.0.3 (/Users/arielvalentin/dev/repos/vtd-xml-ruby/vtd_xml/.tesla.Mavenfile) has 2 errors
[ERROR] Unresolveable build extension: Plugin de.saumya.mojo:gem-extension:1.0.0-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact de.saumya.mojo:gem-extension:jar:1.0.0-SNAPSHOT -> [Help 2]
[ERROR] Unknown packaging: gem
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
vtd_xml 0.0.3 built to pkg/vtd_xml-0.0.3-java.gem.
[INFO] Scanning for projects...
/Users/arielvalentin/dev/repos/vtd-xml-ruby/vtd_xml/.tesla.Mavenfile
[WARNING] The POM for de.saumya.mojo:gem-extension:jar:1.0.0-SNAPSHOT is missing, no dependency information available
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project rubygems:vtd_xml:0.0.3 (/Users/arielvalentin/dev/repos/vtd-xml-ruby/vtd_xml/.tesla.Mavenfile) has 2 errors
[ERROR] Unresolveable build extension: Plugin de.saumya.mojo:gem-extension:1.0.0-SNAPSHOT or one of its dependencies could not be resolved: Could not find artifact de.saumya.mojo:gem-extension:jar:1.0.0-SNAPSHOT -> [Help 2]
[ERROR] Unknown packaging: gem
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment