Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore obsolete plugins #136

Merged
merged 3 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ there is maven repository with torquebox.org which delivers gem (only ruby and j
<repositories>
<repository>
<id>mavengems</id>
<url>http://rubygems-proxy.torquebox.org/releases</url>
<url>mavengem:https://rubygems.org</url>
</repository>
</repositories>
. . .
Expand Down
86 changes: 86 additions & 0 deletions bundler-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>gem-parent-mojo</artifactId>
<groupId>org.jruby.maven</groupId>
<version>3.0.3-SNAPSHOT</version>
<relativePath>../gem-parent-mojo/pom.xml</relativePath>
</parent>
<artifactId>bundler-maven-plugin</artifactId>
<packaging>maven-plugin</packaging>
<name>Bundler Maven Mojo</name>
<properties><invoker.skip>true</invoker.skip></properties>
<profiles>
<profile>
<id>integration-test</id>
<properties>
<invoker.skip>true</invoker.skip>
</properties>
</profile>
<profile>
<id>all</id>
<properties>
<invoker.skip>false</invoker.skip>
</properties>
</profile>
</profiles>
<build>
<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>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<versionRange>
[2.1,)
</versionRange>
<goals>
<goal>
unpack-dependencies
</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
build-helper-maven-plugin
</artifactId>
<versionRange>
[1.4,)
</versionRange>
<goals>
<goal>add-source</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
1 change: 1 addition & 0 deletions bundler-maven-plugin/src/it/bundler-pom/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gem 'rubyzip2'
2 changes: 2 additions & 0 deletions bundler-maven-plugin/src/it/bundler-pom/invoker.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
invoker.goals = bundler:install
invoker.mavenOpts = -client
43 changes: 43 additions & 0 deletions bundler-maven-plugin/src/it/bundler-pom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jruby.maven</groupId>
<artifactId>bundler</artifactId>
<version>testing</version>

<repositories>
<repository>
<id>mavengems</id>
<url>mavengem:https://rubygems.org</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>rubygems</groupId>
<artifactId>rubyzip2</artifactId>
<version>2.0.2</version>
<type>gem</type>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>bundler</artifactId>
<version>1.3.5</version>
<type>gem</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.jruby.maven</groupId>
<artifactId>bundler-maven-plugin</artifactId>
<version>@project.version@</version>
<executions>
<execution>
<goals><goal>install</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
3 changes: 3 additions & 0 deletions bundler-maven-plugin/src/it/bundler-pom/setup.bsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import java.io.*;

new File( basedir, "Gemfile.lock").delete() || true;
9 changes: 9 additions & 0 deletions bundler-maven-plugin/src/it/bundler-pom/verify.bsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import java.io.*;
import org.codehaus.plexus.util.FileUtils;


File f = new File( basedir, "Gemfile.lock" );
if ( !f.exists() )
{
throw new RuntimeException( "file does not exist: " + f );
}
45 changes: 45 additions & 0 deletions bundler-maven-plugin/src/it/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0"?>
<settings>
<profiles>
<profile>
<id>it-repo</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>local.central</id>
<url>@localRepositoryUrl@</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>local.rubygems</id>
<url>@localRepositoryUrl@</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>local.central</id>
<url>@localRepositoryUrl@</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</settings>
Loading
Loading