From 7cb2a418133d5ffb02838984a1982a445ba08744 Mon Sep 17 00:00:00 2001 From: Oliver Lietz Date: Thu, 5 Oct 2023 23:05:52 +0200 Subject: [PATCH] #1094 Drop legacy modules --- legacy/maven-archetype-paxexam-junit/pom.xml | 95 ------ .../src/main/resources/META-INF/archetype.xml | 6 - .../resources/archetype-resources/pom.xml | 56 ---- .../src/test/java/SampleTest.java | 34 -- .../src/test/resources/testcreate.sh | 1 - legacy/maven-paxexam-plugin/pom.xml | 97 ------ .../exam/mavenplugin/GenerateConfigMojo.java | 316 ------------------ .../mavenplugin/GenerateDependsFileMojo.java | 210 ------------ .../mavenplugin/GenerateConfigMojoTest.java | 47 --- legacy/pax-exam-dist/pom.xml | 80 ----- legacy/pax-exam-dist/src/assemble/bin.xml | 10 - legacy/pax-exam-testng/pom.xml | 44 --- legacy/pax-exam-uber/osgi.bnd | 23 -- legacy/pax-exam-uber/pom.xml | 130 ------- .../links/org.ops4j.pax.exam.rbc.link | 1 - .../links/org.ops4j.pax.extender.service.link | 1 - .../links/org.ops4j.pax.logging.api.link | 1 - .../META-INF/links/org.osgi.compendium.link | 1 - 18 files changed, 1153 deletions(-) delete mode 100644 legacy/maven-archetype-paxexam-junit/pom.xml delete mode 100644 legacy/maven-archetype-paxexam-junit/src/main/resources/META-INF/archetype.xml delete mode 100644 legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/pom.xml delete mode 100644 legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/src/test/java/SampleTest.java delete mode 100644 legacy/maven-archetype-paxexam-junit/src/test/resources/testcreate.sh delete mode 100644 legacy/maven-paxexam-plugin/pom.xml delete mode 100644 legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojo.java delete mode 100644 legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateDependsFileMojo.java delete mode 100644 legacy/maven-paxexam-plugin/src/test/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojoTest.java delete mode 100644 legacy/pax-exam-dist/pom.xml delete mode 100644 legacy/pax-exam-dist/src/assemble/bin.xml delete mode 100644 legacy/pax-exam-testng/pom.xml delete mode 100644 legacy/pax-exam-uber/osgi.bnd delete mode 100644 legacy/pax-exam-uber/pom.xml delete mode 100644 legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.exam.rbc.link delete mode 100644 legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.extender.service.link delete mode 100644 legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.logging.api.link delete mode 100644 legacy/pax-exam-uber/src/main/resources/META-INF/links/org.osgi.compendium.link diff --git a/legacy/maven-archetype-paxexam-junit/pom.xml b/legacy/maven-archetype-paxexam-junit/pom.xml deleted file mode 100644 index 8186ef855..000000000 --- a/legacy/maven-archetype-paxexam-junit/pom.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - org.ops4j.pax - exam - 2.0.0-SNAPSHOT - ../../pom/pom.xml - - - 4.0.0 - org.ops4j.pax.exam - maven-archetype-paxexam-junit - 2.0.0-SNAPSHOT - jar - - OPS4J Pax Exam Maven Archetype for JUnit - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - - - - - - - - org.osgi - org.osgi.core - - - commons-logging - commons-logging - - - net.sf.kxml - kxml2 - 2.2.2 - - - org.apache.maven - maven-project - 2.0.10 - - - org.apache.maven - maven-model - 2.0.10 - - - org.apache.maven - maven-plugin-api - 2.0.10 - - - - - org.ops4j.pax.exam - pax-exam - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-junit - ${version} - - - diff --git a/legacy/maven-archetype-paxexam-junit/src/main/resources/META-INF/archetype.xml b/legacy/maven-archetype-paxexam-junit/src/main/resources/META-INF/archetype.xml deleted file mode 100644 index 60f0a7a4c..000000000 --- a/legacy/maven-archetype-paxexam-junit/src/main/resources/META-INF/archetype.xml +++ /dev/null @@ -1,6 +0,0 @@ - - maven-archetype-paxexam-junit - - src/test/java/SampleTest.java - - diff --git a/legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/pom.xml b/legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 01b31b863..000000000 --- a/legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - ${groupId} - ${artifactId} - ${version} - jar - - Pax Exam based Testproject - - - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - - - - - org.ops4j.pax.exam - pax-exam - 2.0.0-SNAPSHOT - - - org.ops4j.pax.exam - pax-exam-junit - 2.0.0-SNAPSHOT - - - org.ops4j.pax.exam - pax-exam-container-default - 2.0.0-SNAPSHOT - - - - org.osgi - org.osgi.core - 4.0.1 - - - commons-logging - commons-logging - 1.1 - test - - - diff --git a/legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/src/test/java/SampleTest.java b/legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/src/test/java/SampleTest.java deleted file mode 100644 index e75a373b8..000000000 --- a/legacy/maven-archetype-paxexam-junit/src/main/resources/archetype-resources/src/test/java/SampleTest.java +++ /dev/null @@ -1,34 +0,0 @@ -package $packageName; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.osgi.framework.Bundle; -import org.osgi.framework.BundleContext; -import org.ops4j.pax.exam.Inject; -import org.ops4j.pax.exam.junit.JUnit4TestRunner; - -/** - * @author Toni Menzel (tonit) - * @since Mar 3, 2009 - */ -@RunWith( JUnit4TestRunner.class ) -public class SampleTest -{ - - @Inject - BundleContext bundleContext = null; - - /** - * You will get a list of bundles installed by default - * plus your testcase, wrapped into a bundle called pax-exam-probe - */ - @Test - public void listBundles() - { - for( Bundle b : bundleContext.getBundles() ) - { - System.out.println( "Bundle " + b.getBundleId() + " : " + b.getSymbolicName() ); - } - - } -} \ No newline at end of file diff --git a/legacy/maven-archetype-paxexam-junit/src/test/resources/testcreate.sh b/legacy/maven-archetype-paxexam-junit/src/test/resources/testcreate.sh deleted file mode 100644 index 103394607..000000000 --- a/legacy/maven-archetype-paxexam-junit/src/test/resources/testcreate.sh +++ /dev/null @@ -1 +0,0 @@ -mvn archetype:create -DarchetypeGroupId=org.ops4j.pax.exam -DarchetypeArtifactId=maven-archetype-paxexam-junit -DarchetypeVersion=1.2.0-SNAPSHOT -DgroupId=com.company -DartifactId=company-osgitests diff --git a/legacy/maven-paxexam-plugin/pom.xml b/legacy/maven-paxexam-plugin/pom.xml deleted file mode 100644 index 58e9fd07a..000000000 --- a/legacy/maven-paxexam-plugin/pom.xml +++ /dev/null @@ -1,97 +0,0 @@ - - - - - org.ops4j.pax - exam - 2.0.0-M2-SNAPSHOT - ../../pom/pom.xml - - - 4.0.0 - org.ops4j.pax.exam - maven-paxexam-plugin - 2.0.0-M2-SNAPSHOT - maven-plugin - - OPS4J Pax Exam Maven Plugin - - Goal: generate-config: Converts configuration done inside pom to be readable by the PaxExamPluginOption option. - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - - - - org.ops4j - maven-inherit-plugin - 1.1 - - - - inherit - - - - - - - - - - org.osgi - org.osgi.core - - - - net.sf.kxml - kxml2 - 2.2.2 - - - org.apache.maven - maven-core - 2.0.7 - - - org.apache.maven - maven-project - 2.0.7 - - - org.apache.maven - maven-model - 2.0.7 - - - org.apache.maven - maven-plugin-api - 2.0.7 - - - diff --git a/legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojo.java b/legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojo.java deleted file mode 100644 index 3a21f3e70..000000000 --- a/legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojo.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * Copyright 2009 Toni Menzel. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.ops4j.pax.exam.mavenplugin; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.artifact.metadata.ArtifactMetadataSource; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.ArtifactCollector; -import org.apache.maven.artifact.resolver.ArtifactNotFoundException; -import org.apache.maven.artifact.resolver.ArtifactResolutionException; -import org.apache.maven.artifact.resolver.ArtifactResolver; -import org.apache.maven.artifact.resolver.DefaultArtifactCollector; -import org.apache.maven.artifact.versioning.VersionRange; -import org.apache.maven.execution.MavenSession; -import org.apache.maven.model.Dependency; -import org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.project.MavenProject; - -/** - * @author Toni Menzel (tonit) - * @goal generate-config - * @phase generate-resources - * @since Mar 17, 2009 - */ -public class GenerateConfigMojo extends AbstractMojo -{ - - protected static final String SEPARATOR = "/"; - - private static final String SETTINGS_DEPENDENCY_OPTIONS = "dependency_options"; - /** - * The maven project. - * - * @parameter expression="${project}" - * @required - * @readonly - */ - protected MavenProject project; - - /** - * The file to generate - * - * @parameter default-value="${project.build.directory}/regression-classes/META-INF/maven/paxexam-config.args" - */ - - private File configOutput; - - /** - * @parameter default-value="provided" - */ - private String dependencyScope; - /** - * pax runner arguments defined in tag in configuration of plugin. - * - * @parameter - */ - private Map options = new HashMap(); - - /** - * settings for this plugin in tag. - * - * @parameter - */ - private Map settings = new HashMap(); - - /** - * @component - */ - protected ArtifactMetadataSource artifactMetadataSource; - - /** - * @component - */ - protected ArtifactResolver resolver; - - protected ArtifactCollector collector = new DefaultArtifactCollector(); - - /** - * @component - */ - protected ArtifactFactory factory; - - /** - * @parameter expression="${project.remoteArtifactRepositories}" - */ - private List remoteRepositories; - - /** - * The Maven Session Object - * - * @parameter expression="${session}" - * @required - * @readonly - */ - private MavenSession session; - - public void execute() - throws MojoExecutionException, MojoFailureException - { - OutputStream out = null; - try - { - configOutput.getParentFile().mkdirs(); - out = new FileOutputStream( configOutput ); - PrintStream printer = new PrintStream( out ); - - List dependencies; - dependencies = getProvisionableDependencies(); - - writeHeader( printer ); - writeProvisioning( printer, dependencies ); - writeSettings( printer ); - - getLog().info( "Generated configuration as Pax Runner arguments file " + configOutput ); - } - catch( Exception e ) - { - throw new MojoExecutionException( - "Unable to create dependencies file: " + e, e - ); - } - finally - { - if( out != null ) - { - try - { - out.close(); - } - catch( IOException e ) - { - getLog().info( "Failed to close: " + configOutput + ". Reason: " + e, e ); - } - } - } - } - - private void writeHeader( PrintStream out ) - { - out.println( "# Configurations generated by the Pax Exam Maven Plugin" ); - out.println( "# Generated at: " + new Date() ); - out.println(); - out.println( "# groupId = " + project.getGroupId() ); - out.println( "# artifactId = " + project.getArtifactId() ); - out.println( "# version = " + project.getVersion() ); - out.println( "# " + - project.getGroupId() + SEPARATOR + project.getArtifactId() + SEPARATOR + "version = " - + project.getVersion() - ); - out.println(); - } - - private void writeSettings( PrintStream out ) - { - out.println( "# Settings parsed from pom.xml in settings of plugin" ); - for( String key : options.keySet() ) - { - out.println( "--" + key + "=" + options.get( key ) ); - } - out.println(); - } - - /** - * Dependency resolution inspired by servicemix depends-maven-plguin - * - * @return list of dependencies to be written to disk. - */ - private List getProvisionableDependencies() - { - List dependencies = new ArrayList(); - getLog().info( "Adding dependencies in scope " + dependencyScope ); - for( Dependency d : getDependencies() ) - { - if( d.getScope() != null && d.getScope().equalsIgnoreCase( dependencyScope ) ) - { - dependencies.add( d ); - } - } - - return dependencies; - } - - @SuppressWarnings( "unchecked" ) - private List getDependencies() - { - - return (List) project.getDependencies(); - } - - protected void writeProvisioning( PrintStream out, List dependencies ) - throws - ArtifactResolutionException, - ArtifactNotFoundException - { - out.println( "# provisioning" ); - out.println(); - - for( Dependency dependency : dependencies ) - { - Artifact artifact = factory.createDependencyArtifact( - dependency.getGroupId(), dependency.getArtifactId(), - VersionRange.createFromVersion( dependency.getVersion() ), - dependency.getType(), dependency.getClassifier(), dependency.getScope() - ); - - // try to find - boolean found = false; - for( MavenProject project : (List) session.getSortedProjects() ) - { - - Artifact projectArtifact = project.getArtifact(); - if( projectArtifact.getArtifactId().equals( artifact.getArtifactId() ) && ( - projectArtifact.getGroupId().equals( artifact.getGroupId() ) && projectArtifact.getVersion() - .equals( artifact.getVersion() ) ) ) - { - artifact = projectArtifact; - found = true; - break; - } - - } - - if( !found ) - { - resolver.resolve( artifact, remoteRepositories, session.getLocalRepository() ); - } - - out.println( - - createPaxRunnerScan( artifact, - getSettingsForArtifact( settings.get( SETTINGS_DEPENDENCY_OPTIONS ), - artifact.getGroupId(), artifact.getArtifactId() - ) - ) - ); - - getLog().debug( "Dependency: " + dependency - + " classifier: " + dependency.getClassifier() - + " type: " + dependency.getType() - ); - } - out.println(); - } - - /** - * Example: - * getSettingsForArtifact ( "foo:bar@1,chees:ham2@3@nostart","cheese","ham") --> @3@nostart - * - * @param fullSettings settings separated by comma. GA patter + @options - * @param groupId GA part groupId to be matched inside fulllSettings - * @param artifactId GA part artifactId to be matched inside fulllSettings - * - * @return option portion of matched part in fullSettings or empty string if no matching. - */ - public String getSettingsForArtifact( String fullSettings, String groupId, String artifactId ) - { - if( fullSettings != null ) - { - for( String token : fullSettings.split( "," ) ) - { - int end = ( token.indexOf( "@" ) >= 0 ) ? token.indexOf( "@" ) : token.length(); - String ga_part[] = token.substring( 0, end ).split( ":" ); - if( ga_part[ 0 ].equals( groupId ) && ga_part[ 1 ].equals( artifactId ) ) - { - return token.substring( end ); - } - - } - } - return ""; - } - - /** - * Creates scanner directives from artifact to be parsed by pax runner. - * Also includes options found and matched in settings part of configuration. - * - * @param artifact to be used to create scanner directive. - * @param optionTokens to be used to create scanner directive. - * - * @return pax runner compatible scanner directive. - */ - private String createPaxRunnerScan( Artifact artifact, String optionTokens ) - { - return "scan-bundle:" + artifact.getFile().toURI().normalize().toString() + "@update" + optionTokens; - } - -} - diff --git a/legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateDependsFileMojo.java b/legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateDependsFileMojo.java deleted file mode 100644 index 785b829e0..000000000 --- a/legacy/maven-paxexam-plugin/src/main/java/org/ops4j/pax/exam/mavenplugin/GenerateDependsFileMojo.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2009 Alin Dreghiciu. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.ops4j.pax.exam.mavenplugin; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.OutputStream; -import java.io.PrintStream; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Comparator; -import java.util.Date; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.apache.maven.artifact.Artifact; -import org.apache.maven.artifact.factory.ArtifactFactory; -import org.apache.maven.artifact.metadata.ArtifactMetadataSource; -import org.apache.maven.artifact.repository.ArtifactRepository; -import org.apache.maven.artifact.resolver.ArtifactCollector; -import org.apache.maven.artifact.resolver.ArtifactResolver; -import org.apache.maven.artifact.resolver.DefaultArtifactCollector; -import org.apache.maven.model.Dependency; -import org.apache.maven.plugin.AbstractMojo; -import org.apache.maven.plugin.MojoExecutionException; -import org.apache.maven.plugin.MojoFailureException; -import org.apache.maven.project.MavenProject; - -/** - * Generates the dependencies properties file - * - * @version $Id: $ - * @goal generate-depends-file - * @phase generate-resources - * @requiresDependencyResolution test - * @description Generates the dependencies properties file - */ -public class GenerateDependsFileMojo extends AbstractMojo { - - protected static final String SEPARATOR = "/"; - - /** - * The maven project. - * - * @parameter expression="${project}" - * @required - * @readonly - */ - protected MavenProject project; - - /** - * - * @parameter expression='true' - * @required - */ - protected boolean recursive; - - /** - * The file to generate - * - * @parameter default-value="${project.build.directory}/classes/META-INF/maven/dependencies.properties" - */ - - private File outputFile; - - /** - * @parameter default-value="${localRepository}" - */ - protected ArtifactRepository localRepo; - - /** - * @parameter default-value="${project.remoteArtifactRepositories}" - */ - protected List remoteRepos; - - /** - * @component - */ - protected ArtifactMetadataSource artifactMetadataSource; - - /** - * @component - */ - protected ArtifactResolver resolver; - - protected ArtifactCollector collector = new DefaultArtifactCollector(); - - /** - * @component - */ - protected ArtifactFactory factory; - - public void execute() throws MojoExecutionException, MojoFailureException { - OutputStream out = null; - try { - outputFile.getParentFile().mkdirs(); - out = new FileOutputStream(outputFile); - PrintStream printer = new PrintStream(out); - - List dependencies; - if (!recursive) { - dependencies = project.getDependencies(); - } else { - Set artifacts = project.getArtifacts(); - dependencies = new ArrayList(); - for (Artifact a : artifacts) { - Dependency dep = new Dependency(); - dep.setGroupId(a.getGroupId()); - dep.setArtifactId(a.getArtifactId()); - dep.setVersion(a.getBaseVersion()); - dep.setClassifier(a.getClassifier()); - dep.setType(a.getType()); - dep.setScope(a.getScope()); - dependencies.add(dep); - } - } - Collections.sort(dependencies, new Comparator() { - public int compare(Dependency o1, Dependency o2) { - int result = o1.getGroupId().compareTo( o2.getGroupId() ); - if ( result == 0 ) { - result = o1.getArtifactId().compareTo( o2.getArtifactId() ); - if ( result == 0 ) { - result = o1.getType().compareTo( o2.getType() ); - if ( result == 0 ) { - if ( o1.getClassifier() == null ) { - if ( o2.getClassifier() != null ) { - result = 1; - } - } else { - if ( o2.getClassifier() != null ) { - result = o1.getClassifier().compareTo( o2.getClassifier() ); - } else { - result = -1; - } - } - if ( result == 0 ) { - // We don't consider the version range in the comparison, just the resolved version - result = o1.getVersion().compareTo( o2.getVersion() ); - } - } - } - } - return result; - } - }); - populateProperties(printer, dependencies); - getLog().info("Created: " + outputFile); - } catch (Exception e) { - throw new MojoExecutionException( - "Unable to create dependencies file: " + e, e); - } finally { - if (out != null) { - try { - out.close(); - } catch (IOException e) { - getLog().info("Failed to close: " + outputFile + ". Reason: " + e, e); - } - } - } - } - - protected void populateProperties(PrintStream out, List dependencies) { - out.println("# Project dependencies generated by the Apache ServiceMix Maven Plugin"); - out.println("# Generated at: " + new Date()); - out.println(); - - out.println("groupId = " + project.getGroupId()); - out.println("artifactId = " + project.getArtifactId()); - out.println("version = " + project.getVersion()); - out.println(project.getGroupId() + SEPARATOR + project.getArtifactId() + SEPARATOR + "version = " + project.getVersion()); - out.println(); - out.println("# dependencies"); - out.println(); - - Iterator iterator = dependencies.iterator(); - - while (iterator.hasNext()) { - Dependency dependency = (Dependency) iterator.next(); - String prefix = dependency.getGroupId() + SEPARATOR + dependency.getArtifactId() + SEPARATOR; - out.println(prefix + "version = " + dependency.getVersion()); - String classifier = dependency.getClassifier(); - if (classifier != null) { - out.println(prefix + "classifier = " + classifier); - } - out.println(prefix + "type = " + dependency.getType()); - out.println(prefix + "scope = " + dependency.getScope()); - out.println(); - - getLog().debug("Dependency: " + dependency + " classifier: " + classifier + " type: " + dependency.getType()); - } - } - -} diff --git a/legacy/maven-paxexam-plugin/src/test/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojoTest.java b/legacy/maven-paxexam-plugin/src/test/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojoTest.java deleted file mode 100644 index d190090f7..000000000 --- a/legacy/maven-paxexam-plugin/src/test/java/org/ops4j/pax/exam/mavenplugin/GenerateConfigMojoTest.java +++ /dev/null @@ -1,47 +0,0 @@ -package org.ops4j.pax.exam.mavenplugin; - -import org.junit.Test; -import static org.junit.Assert.*; - -/** - * @author Toni Menzel (tonit) - * @since Apr 27, 2009 - */ -public class GenerateConfigMojoTest -{ - - @Test - public void testSettingsMatching() - { - assertEquals( "@42@bee", - new GenerateConfigMojo().getSettingsForArtifact( "cheese:ham@1@nope,foo:bar@42@bee,fuel:oil@1@xx", - "foo", "bar" - ) - ); - - assertEquals( "", - new GenerateConfigMojo().getSettingsForArtifact( "cheese:ham@1@nope,foo:bar@42@bee,fuel:oil@1@xx", - "xx", "bb" - ) - ); - - assertEquals( "", - new GenerateConfigMojo().getSettingsForArtifact( "cheese:ham@1@nope,foo:bar@42@bee,fuel:oil@1@xx", - "cheese", "bb" - ) - ); - - assertEquals( "@42@bee", - new GenerateConfigMojo().getSettingsForArtifact( "cheese:ham@1@nope,foo:bar@42@bee,fuel:oil@1@xx", - "foo", "bar" - ) - ); - - assertEquals( "", - new GenerateConfigMojo().getSettingsForArtifact( - "cheese:ham@1@nope,foo:bar@42@bee,fuel:oil@1@xx,ping:back", - "ping", "back" - ) - ); - } -} diff --git a/legacy/pax-exam-dist/pom.xml b/legacy/pax-exam-dist/pom.xml deleted file mode 100644 index bf8ecf0dc..000000000 --- a/legacy/pax-exam-dist/pom.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - 4.0.0 - - - org.ops4j.pax - exam - 2.0.0-M2-SNAPSHOT - ../../pom/pom.xml - - - org.ops4j.pax.exam - pax-exam-dist - Pax Exam Distribution Assembly - 2.0.0-M2-SNAPSHOT - pom - - OPS4J Pax Exam Distribution - - - - - maven-assembly-plugin - - - src/assemble/bin.xml - - - - - make-assembly - - package - - - single - - - - - - - - - - - - org.ops4j.pax.exam - pax-exam - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-extender - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-extender-service - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-container-paxrunner - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-junit4 - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-container-remote - ${pom.version} - - - - \ No newline at end of file diff --git a/legacy/pax-exam-dist/src/assemble/bin.xml b/legacy/pax-exam-dist/src/assemble/bin.xml deleted file mode 100644 index c82700a2a..000000000 --- a/legacy/pax-exam-dist/src/assemble/bin.xml +++ /dev/null @@ -1,10 +0,0 @@ - - bin - - zip - - - - - - \ No newline at end of file diff --git a/legacy/pax-exam-testng/pom.xml b/legacy/pax-exam-testng/pom.xml deleted file mode 100644 index ee699f77c..000000000 --- a/legacy/pax-exam-testng/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - 4.0.0 - - - org.ops4j.pax - exam - 2.0.0-SNAPSHOT - ../../pom/pom.xml - - - org.ops4j.pax.exam - pax-exam-testng - 2.0.0-SNAPSHOT - jar - - OPS4J Pax Exam UI TestNG - - - - org.ops4j.pax.exam - pax-exam-runtime - ${pom.version} - - - - org.osgi - org.osgi.core - - - org.ops4j.base - ops4j-base-lang - - - org.testng - testng - 5.8 - jdk15 - - - - - \ No newline at end of file diff --git a/legacy/pax-exam-uber/osgi.bnd b/legacy/pax-exam-uber/osgi.bnd deleted file mode 100644 index 650622d30..000000000 --- a/legacy/pax-exam-uber/osgi.bnd +++ /dev/null @@ -1,23 +0,0 @@ -Bundle-SymbolicName:\ - ${pom.artifactId} - -Bundle-Version>:\ - ${pom.version} - -Private-Package:\ - META-INF.links.*; -split-package:=merge-first,\ - -Embed-StripVersion: true -Embed-Transitive: true - - -Embed-Dependency:\ - *;scope=compile;inline=true - --removeheaders:\ - Export-Package,\ - Include-Resource,\ - Private-Package,\ - Embed-Dependency,\ - Embed-Transitive - diff --git a/legacy/pax-exam-uber/pom.xml b/legacy/pax-exam-uber/pom.xml deleted file mode 100644 index c3338043c..000000000 --- a/legacy/pax-exam-uber/pom.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - 4.0.0 - - - org.ops4j.pax - exam - 2.0.0-M2-SNAPSHOT - ../../pom/pom.xml - - - org.ops4j.pax.exam - pax-exam-uber - Ivy friendly version of (unreleased) Pax Exam 2 - 2.0.0-M2-SNAPSHOT - jar - - OPS4J Pax Exam Uber Distribution - - - - - src/main/resources - true - - - - - - maven-dependency-plugin - - - unpack - generate-resources - - unpack-dependencies - - - ${project.basedir}/target/classes/ - true - false - - - - - - - - - - - - - - - org.ops4j.pax.exam - pax-exam-junit4 - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-container-paxrunner - ${pom.version} - - - org.ops4j.pax.exam - pax-exam-container-rbc-client - ${pom.version} - - - org.osgi - org.osgi.compendium - 4.2.0 - - - org.ops4j.pax.exam - pax-exam-container-remote - ${pom.version} - - - - - - - \ No newline at end of file diff --git a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.exam.rbc.link b/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.exam.rbc.link deleted file mode 100644 index 08dc01ec6..000000000 --- a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.exam.rbc.link +++ /dev/null @@ -1 +0,0 @@ -classpath:pax-exam-container-rbc.jar \ No newline at end of file diff --git a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.extender.service.link b/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.extender.service.link deleted file mode 100644 index d56a39699..000000000 --- a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.extender.service.link +++ /dev/null @@ -1 +0,0 @@ -classpath:pax-exam-extender-service.jar \ No newline at end of file diff --git a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.logging.api.link b/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.logging.api.link deleted file mode 100644 index a0cc5c951..000000000 --- a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.ops4j.pax.logging.api.link +++ /dev/null @@ -1 +0,0 @@ -classpath:pax-logging-api.jar \ No newline at end of file diff --git a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.osgi.compendium.link b/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.osgi.compendium.link deleted file mode 100644 index e6b10e4e0..000000000 --- a/legacy/pax-exam-uber/src/main/resources/META-INF/links/org.osgi.compendium.link +++ /dev/null @@ -1 +0,0 @@ -classpath:org.osgi.compendium.jar \ No newline at end of file