Development - pierre/jbundler GitHub Wiki

The :path => solution in the Gemfile doesn't seem to work (after removing the corresponding entry in the gemspec), because of the Maven dependencies.

The ideal solution would be to use different gemsets. Unfortunately, the gem-maven-plugin and bundler-maven-plugin plugins don't seem to respect the current gemset, so one has to meddle with gem versions.

Update maven-tools

Update the version in lib/maven/tools/version.rb and in the pom.xml to e.g. 0.30.0.pierre, then:

gem build ./maven-tools.gemspec
gem install maven-tools-*.gem --install-dir=/path/to/jbundler/target/rubygems
mvn clean install

Update ruby-maven

  • Update the version in lib/ruby/maven/ruby/version.rb and in the pom.xml to e.g. 3.1.0.pierre.
  • Update the maven-tools dependency version in ruby-maven.gemspec.

Update the maven-tools dependency in the pom.xml to:

<dependency>
  <groupId>rubygems</groupId>
  <artifactId>maven-tools</artifactId>
  <version>0.30.0.pierre</version>
  <type>gem</type>
  <scope>system</scope>
  <systemPath>/path/to/maven-tools-0.30.0.pierre.gem</systemPath>
</dependency>

Finally:

bundle install
mvn clean install
gem install target/ruby-maven-3.1.0.pierre.gem

Update jbundler

  • Update the version in jbundler.gemspec and in the pom.xml to e.g. 0.3.2.pierre.
  • Update the ruby-maven dependency in jbundler.gemspec

Update the maven-tools and ruby-maven dependencies in the pom.xml to the following and update the scope to system in the section:

<dependency>
  <groupId>rubygems</groupId>
  <artifactId>ruby-maven</artifactId>
  <version>3.1.0.pierre</version>
  <type>gem</type>
  <scope>system</scope>
  <systemPath>/path/to/ruby-maven-3.1.0.pierre.gem</systemPath>
</dependency>
<dependency>
  <groupId>rubygems</groupId>
  <artifactId>maven-tools</artifactId>
  <version>0.30.0.pierre</version>
  <type>gem</type>
  <scope>system</scope>
  <systemPath>/path/to/maven-tools-0.30.0.pierre.gem</systemPath>
</dependency>

Finally:

bundle install
rake build
gem install target/jbundler-0.3.2.pierre.gem
⚠️ **GitHub.com Fallback** ⚠️