maven-remote-resources-plugin-1.6.0/0000775000175000017500000000000013365361414017303 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/0000775000175000017500000000000013365361410020066 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/0000775000175000017500000000000013365361410021045 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/resources/0000775000175000017500000000000013365361410023057 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/resources/SIMPLE.txt0000664000175000017500000000140513365361410024611 0ustar mathieumathieuLicensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you 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. Simple Text File maven-remote-resources-plugin-1.6.0/src/test/resources/UTF-8.bin.vm0000664000175000017500000000001613365361410024772 0ustar mathieumathieuäöüÄÖÜßmaven-remote-resources-plugin-1.6.0/src/test/resources/FILTER.txt.vm0000664000175000017500000000171313365361410025230 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Some filtered text: project.name: ${project.name} projectTimespan: ${projectTimespan} projects: ${projects} projectsSortedByOrganization: ${projectsSortedByOrganization} maven-remote-resources-plugin-1.6.0/src/test/resources/unit/0000775000175000017500000000000013365361410024036 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/resources/unit/rrmojotest/0000775000175000017500000000000013365361410026246 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/resources/unit/rrmojotest/process-plugin-config.xml0000664000175000017500000000214413365361410033206 0ustar mathieumathieu remote-resources-plugin-test maven-remote-resources-plugin ${localRepository} UTF-8 maven-remote-resources-plugin-1.6.0/src/test/resources/unit/rrmojotest/bundle-plugin-config.xml0000664000175000017500000000177713365361410033014 0ustar mathieumathieu remote-resources-plugin-test maven-remote-resources-plugin maven-remote-resources-plugin-1.6.0/src/test/resources/PROPERTIES.txt.vm0000664000175000017500000000154113365361410025736 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Some filtered text: ${testingPropertyOne} ${testingPropertyTwo} maven-remote-resources-plugin-1.6.0/src/test/resources/ISO-8859-1.bin.vm0000664000175000017500000000000713365361410025372 0ustar mathieumathieuäöüÄÖÜßmaven-remote-resources-plugin-1.6.0/src/test/java/0000775000175000017500000000000013365361410021766 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/java/org/0000775000175000017500000000000013365361410022555 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/0000775000175000017500000000000013365361410023776 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/0000775000175000017500000000000013365361410025104 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/0000775000175000017500000000000013365361410026402 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/0000775000175000017500000000000013365361410030414 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/0000775000175000017500000000000013365361410031707 5ustar mathieumathieu././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/RemoteResourcesMojoTest.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/RemoteRes0000664000175000017500000005272613365361410033553 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.execution.MavenSession; import org.apache.maven.execution.ReactorManager; import org.apache.maven.plugin.resources.remote.stub.MavenProjectResourcesStub; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.net.URL; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Properties; import java.util.jar.JarOutputStream; import java.util.zip.ZipEntry; import org.codehaus.plexus.util.IOUtil; /** * RemoteResources plugin Test Case */ public class RemoteResourcesMojoTest extends AbstractMojoTestCase { static final String DEFAULT_BUNDLE_POM_PATH = "target/test-classes/unit/rrmojotest/bundle-plugin-config.xml"; static final String DEFAULT_PROCESS_POM_PATH = "target/test-classes/unit/rrmojotest/process-plugin-config.xml"; public void setUp() throws Exception { super.setUp(); } public void tearDown() throws Exception { } /** * check test environment * * @throws Exception if any exception occurs */ public void testTestEnvironment() throws Exception { // Perform lookup on the Mojo to make sure everything is ok lookupProcessMojo(); } public void testNoBundles() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-nobundles" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithDefaultSettings( project ); setupDefaultProject( project ); mojo.execute(); } public void testCreateBundle() throws Exception { buildResourceBundle( "default-createbundle", null, new String[] { "SIMPLE.txt" }, null ); } public void testSimpleBundles() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-simplebundles" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project , new String[] { "test:test:1.0" } ); setupDefaultProject( project ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test", "test", VersionRange.createFromVersion( "1.0" ), null, "jar", "", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".jar" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-simplebundles-create", null, new String[] { "SIMPLE.txt" }, file ); mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "SIMPLE.txt" ); assertTrue( file.exists() ); } public void testSimpleBundlesWithType() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-simplebundles" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project , new String[] { "test:test:1.0:war" } ); setupDefaultProject( project ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test", "test", VersionRange.createFromVersion( "1.0" ), null, "war", "", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".war" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-simplebundles-create", null, new String[] { "SIMPLE.txt" }, file ); mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "SIMPLE.txt" ); assertTrue( file.exists() ); } public void testSimpleBundlesWithClassifier() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-simplebundles" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project , new String[] { "test:test:1.0:jar:test" } ); setupDefaultProject( project ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test", "test", VersionRange.createFromVersion( "1.0" ), null, "jar", "test", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".jar" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-simplebundles-create", null, new String[] { "SIMPLE.txt" }, file ); mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "SIMPLE.txt" ); assertTrue( file.exists() ); } public void testVelocityUTF8() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-utf8" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project , new String[] { "test:test:1.2" } ); setupDefaultProject( project ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test", "test", VersionRange.createFromVersion( "1.2" ), null, "jar", "", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".jar" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-utf8-create", "UTF-8", new String[] { "UTF-8.bin.vm" }, file ); mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "UTF-8.bin" ); assertTrue( file.exists() ); InputStream in = new FileInputStream( file ); byte[] data = IOUtil.toByteArray( in ); in.close(); byte[] expected = "\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00DF".getBytes( "UTF-8" ); assertTrue( Arrays.equals( expected, data ) ); } public void testVelocityISO88591() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-iso88591" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project , new String[] { "test:test:1.3" } ); setupDefaultProject( project ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test", "test", VersionRange.createFromVersion( "1.3" ), null, "jar", "", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".jar" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-iso88591-create", "ISO-8859-1", new String[] { "ISO-8859-1.bin.vm" }, file ); mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "ISO-8859-1.bin" ); assertTrue( file.exists() ); InputStream in = new FileInputStream( file ); byte[] data = IOUtil.toByteArray( in ); in.close(); byte[] expected = "\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00DF".getBytes( "ISO-8859-1" ); assertTrue( Arrays.equals( expected, data ) ); } public void testFilteredBundles() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-filterbundles" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project , new String[] { "test:test:1.1" } ); setupDefaultProject( project ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test", "test", VersionRange.createFromVersion( "1.1" ), null, "jar", "", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".jar" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-filterbundles-create", null, new String[] { "FILTER.txt.vm" }, file ); mojo.execute(); // executing a second time (example: forked lifecycle) should still work mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "FILTER.txt" ); assertTrue( file.exists() ); String data = FileUtils.fileRead( file ); assertTrue( data.contains( "project.name: Test Project default-filterbundles" ) ); assertTrue( data.contains( "projectTimespan: 2007-" ) ); assertTrue( data.contains( "projects: [" ) ); assertTrue( data.contains( "projectsSortedByOrganization: {" ) ); } public void testFilteredBundlesWithProjectProperties() throws Exception { final MavenProjectResourcesStub project = createTestProject( "default-filterbundles-two" ); final ProcessRemoteResourcesMojo mojo = lookupProcessMojoWithSettings( project, new String[]{"test-filtered-bundles:test-filtered-bundles:2"} ); mojo.includeProjectProperties = true; setupDefaultProject( project ); project.addProperty( "testingPropertyOne", "maven" ); project.addProperty( "testingPropertyTwo", "rules" ); ArtifactRepository repo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" ); String path = repo.pathOf( new DefaultArtifact( "test-filtered-bundles", "test-filtered-bundles", VersionRange.createFromVersion( "2" ), null, "jar", "", new DefaultArtifactHandler() ) ); File file = new File( repo.getBasedir() + "/" + path + ".jar" ); file.getParentFile().mkdirs(); buildResourceBundle( "default-filterbundles-two-create", null, new String[]{"PROPERTIES.txt.vm"}, file ); mojo.execute(); // executing a second time (example: forked lifecycle) should still work mojo.execute(); file = (File) getVariableValueFromObject( mojo, "outputDirectory" ); file = new File( file, "PROPERTIES.txt" ); assertTrue( file.exists() ); String data = FileUtils.fileRead( file ); assertTrue(data.contains("maven")); assertTrue(data.contains("rules")); } protected void buildResourceBundle( String id, String sourceEncoding, String resourceNames[], File jarName ) throws Exception { final MavenProjectResourcesStub project = createTestProject( id ); final File resourceDir = new File( project.getBasedir() + "/src/main/resources" ); final BundleRemoteResourcesMojo mojo = lookupBundleMojoWithSettings( project , resourceDir, sourceEncoding ); setupDefaultProject( project ); for ( String resourceName2 : resourceNames ) { File resource = new File( resourceDir, resourceName2 ); URL source = getClass().getResource( "/" + resourceName2 ); FileUtils.copyURLToFile(source, resource); } mojo.execute(); File xmlFile = new File( project.getBasedir() + "/target/classes/META-INF/maven/remote-resources.xml" ); assertTrue( xmlFile.exists() ); String data = FileUtils.fileRead( xmlFile ); for ( String resourceName1 : resourceNames ) { assertTrue( data.contains( resourceName1 ) ); } if ( null != jarName ) { JarOutputStream jar = new JarOutputStream( new FileOutputStream( jarName ) ); jar.putNextEntry( new ZipEntry( "META-INF/maven/remote-resources.xml" ) ); jar.write( data.getBytes() ); jar.closeEntry(); for ( String resourceName : resourceNames ) { File resource = new File( resourceDir, resourceName ); InputStream in = new FileInputStream( resource ); jar.putNextEntry( new ZipEntry( resourceName ) ); IOUtil.copy( in, jar ); jar.closeEntry(); in.close(); } jar.close(); } } protected MavenProjectResourcesStub createTestProject( final String testName ) throws Exception { // this will automatically create the isolated // test environment return new MavenProjectResourcesStub( testName ); } protected void setupDefaultProject( final MavenProjectResourcesStub project ) throws Exception { // put this on the root dir project.addFile( "pom.xml", MavenProjectResourcesStub.ROOT_FILE ); project.setInceptionYear( "2007" ); // start creating the environment project.setupBuildEnvironment(); } protected BundleRemoteResourcesMojo lookupBundleMojo() throws Exception { File pomFile = new File( getBasedir(), DEFAULT_BUNDLE_POM_PATH ); BundleRemoteResourcesMojo mojo = (BundleRemoteResourcesMojo) lookupMojo( "bundle", pomFile ); assertNotNull( mojo ); return mojo; } protected BundleRemoteResourcesMojo lookupBundleMojoWithDefaultSettings( final MavenProject project ) throws Exception { File resourceDir = new File( project.getBasedir() + "/src/main/resources" ); return lookupBundleMojoWithSettings( project, resourceDir, null ); } protected BundleRemoteResourcesMojo lookupBundleMojoWithSettings( final MavenProject project, File resourceDir, String sourceEncoding ) throws Exception { final BundleRemoteResourcesMojo mojo = lookupBundleMojo(); setVariableValueToObject( mojo, "resourcesDirectory", resourceDir ); setVariableValueToObject( mojo, "outputDirectory", new File( project.getBuild().getOutputDirectory() ) ); setVariableValueToObject( mojo, "sourceEncoding", sourceEncoding ); return mojo; } protected ProcessRemoteResourcesMojo lookupProcessMojo() throws Exception { File pomFile = new File( getBasedir(), DEFAULT_PROCESS_POM_PATH ); ProcessRemoteResourcesMojo mojo = (ProcessRemoteResourcesMojo) lookupMojo( "process", pomFile ); assertNotNull( mojo ); return mojo; } protected ProcessRemoteResourcesMojo lookupProcessMojoWithSettings( final MavenProject project, String bundles[] ) throws Exception { return lookupProcessMojoWithSettings( project, new ArrayList( Arrays.asList( bundles ) ) ); } protected ProcessRemoteResourcesMojo lookupProcessMojoWithSettings( final MavenProject project, ArrayList bundles ) throws Exception { final ProcessRemoteResourcesMojo mojo = lookupProcessMojo(); MavenSession session = new MavenSession( getContainer(), null, //Settings settings, null, //ArtifactRepository localRepository, null, //EventDispatcher eventDispatcher, new ReactorManager( new ArrayList() ), Arrays.asList( "install" ), project.getBasedir().toString(), new Properties(), Calendar.getInstance().getTime() ); setVariableValueToObject( mojo, "project", project ); setVariableValueToObject( mojo, "outputDirectory", new File( project.getBuild().getOutputDirectory() ) ); setVariableValueToObject( mojo, "resourceBundles", bundles ); setVariableValueToObject( mojo, "mavenSession", session ); setVariableValueToObject( mojo, "remoteArtifactRepositories", project.getRemoteArtifactRepositories() ); setVariableValueToObject( mojo, "resources", project.getResources() ); return mojo; } protected ProcessRemoteResourcesMojo lookupProcessMojoWithDefaultSettings( final MavenProject project ) throws Exception { return lookupProcessMojoWithSettings( project, new ArrayList() ); } } maven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/0000775000175000017500000000000013365361410032664 5ustar mathieumathieu././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/MavenProjectBuildStub.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/Mave0000664000175000017500000002123513365361410033502 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.stub; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.apache.maven.model.Build; import org.codehaus.plexus.util.FileUtils; /** * Stub */ public class MavenProjectBuildStub extends MavenProjectBasicStub { public static final int RESOURCES_FILE = 1; public static final int ROOT_FILE = 2; public static final int OUTPUT_FILE = 3; public static final int SOURCE_FILE = 4; protected Build build; protected String srcDirectory; protected String targetDirectory; protected String buildDirectory; protected String outputDirectory; protected String testOutputDirectory; protected String resourcesDirectory; protected String testResourcesDirectory; protected String targetResourceDirectory; protected String targetTestResourcesDirectory; protected ArrayList targetClassesList; protected ArrayList sourceFileList; protected ArrayList resourcesFileList; protected ArrayList rootFileList; protected ArrayList directoryList; protected HashMap dataMap; public MavenProjectBuildStub( String key ) throws Exception { super( key ); build = new Build(); resourcesFileList = new ArrayList(); sourceFileList = new ArrayList(); rootFileList = new ArrayList(); directoryList = new ArrayList(); targetClassesList = new ArrayList(); dataMap = new HashMap(); setupBuild(); } public void addDirectory( String name ) { if ( isValidPath( name ) ) { directoryList.add( name ); } } public void setOutputDirectory( String dir ) { outputDirectory = buildDirectory + "/" + dir; build.setOutputDirectory( outputDirectory ); } public void addFile( String name, int type ) { if ( isValidPath( name ) ) { List list = getList( type ); list.add( name ); } } public void addFile( String name, String data, int type ) { File fileName = new File( name ); addFile( name, type ); dataMap.put( fileName.getName(), data ); } public String getOutputDirectory() { return outputDirectory; } public String getTestOutputDirectory() { return testOutputDirectory; } public String getResourcesDirectory() { return resourcesDirectory; } public String getTestResourcesDirectory() { return testResourcesDirectory; } public Build getBuild() { return build; } /** * returns true if the path is relative * and false if absolute * also returns false if it is relative to * the parent * * @param path * @return */ private boolean isValidPath( String path ) { boolean bRetVal = true; if ( path.startsWith( "c:" ) || path.startsWith( ".." ) || path.startsWith( "/" ) || path.startsWith( "\\" ) ) { bRetVal = false; } return bRetVal; } private void setupBuild() { // check getBasedir method for the exact path // we need to recreate the dir structure in // an isolated environment srcDirectory = testRootDir + "/src"; buildDirectory = testRootDir + "/target"; outputDirectory = buildDirectory + "/classes"; testOutputDirectory = buildDirectory + "/test-classes"; resourcesDirectory = srcDirectory + "/main/resources/"; testResourcesDirectory = srcDirectory + "/test/resources/"; build.setDirectory( buildDirectory ); build.setOutputDirectory( outputDirectory ); build.setTestOutputDirectory( testOutputDirectory ); } public void setupBuildEnvironment() throws Exception { // populate dummy resources and dummy test resources // setup src dir if ( !FileUtils.fileExists( resourcesDirectory ) ) { FileUtils.mkdir( resourcesDirectory ); } if ( !FileUtils.fileExists( testResourcesDirectory ) ) { FileUtils.mkdir( testResourcesDirectory ); } createDirectories( resourcesDirectory, testResourcesDirectory ); createFiles( resourcesDirectory, testResourcesDirectory ); setupRootFiles(); // setup target dir if ( !FileUtils.fileExists( outputDirectory ) ) { FileUtils.mkdir( outputDirectory ); } if ( !FileUtils.fileExists( testOutputDirectory ) ) { FileUtils.mkdir( testOutputDirectory ); } setupTargetFiles(); } private void createDirectories( String parent, String testparent ) { File currentDirectory; for ( String aDirectoryList : directoryList ) { currentDirectory = new File( parent, "/" + aDirectoryList ); if ( !currentDirectory.exists() ) { currentDirectory.mkdirs(); } // duplicate dir structure in test resources currentDirectory = new File( testparent, "/" + aDirectoryList ); if ( !currentDirectory.exists() ) { currentDirectory.mkdirs(); } } } private List getList( int type ) { ArrayList retVal = null; switch ( type ) { case SOURCE_FILE : retVal = sourceFileList; break; case OUTPUT_FILE : retVal = targetClassesList; break; case RESOURCES_FILE : retVal = resourcesFileList; break; case ROOT_FILE : retVal = rootFileList; break; } return retVal; } private void createFiles( String parent, int type ) { File currentFile; List list = getList( type ); // guard if ( list == null ) { return; } for ( String aList : list ) { currentFile = new File( parent, aList ); // create the necessary parent directories // before we create the files if ( !currentFile.getParentFile().exists() ) { currentFile.getParentFile().mkdirs(); } if ( !currentFile.exists() ) { try { currentFile.createNewFile(); populateFile( currentFile, RESOURCES_FILE ); } catch ( IOException io ) { // TODO: handle exception } } } } private void setupRootFiles() { createFiles( testRootDir, ROOT_FILE ); } private void setupTargetFiles() { createFiles( getOutputDirectory(), OUTPUT_FILE ); } private void createFiles( String parent, String testparent ) { createFiles( parent, RESOURCES_FILE ); createFiles( testparent, RESOURCES_FILE ); } private void populateFile( File file, int type ) { FileOutputStream outputStream; String data = dataMap.get( file.getName() ); if ( ( data != null ) && file.exists() ) { try { outputStream = new FileOutputStream( file ); outputStream.write( data.getBytes() ); outputStream.flush(); outputStream.close(); } catch ( IOException ex ) { // TODO: handle exception here } } } } ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/ModelStub.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/Mode0000664000175000017500000000333213365361410033474 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.stub; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.util.Properties; import org.apache.maven.model.Model; import org.apache.maven.model.Parent; /** * Stub */ public class ModelStub extends Model { private static final long serialVersionUID = 1L; public ModelStub() { } public String getVersion() { return "0.0-TEST"; } public String getModelVersion() { return "0.0-TEST"; } public String getName() { return "Test Model"; } public String getGroupId() { return "org.apache.maven.test"; } public String getPackaging() { return "jar"; } public Parent getParent() { //return new Parent(); return null; } public String getArtifactId() { return "maven-test-plugin"; } public Properties getProperties() { return new Properties(); } } ././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/MavenProjectResourcesStub.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/Mave0000664000175000017500000000615413365361410033505 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.stub; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import org.apache.maven.model.Resource; /** * Stub */ public class MavenProjectResourcesStub extends MavenProjectBuildStub { public MavenProjectResourcesStub( String id ) throws Exception { super( id ); setupResources(); setupTestResources(); } public void addInclude( String pattern ) { build.getResources().get( 0 ).addInclude(pattern); } public void addExclude( String pattern ) { build.getResources().get( 0 ).addExclude(pattern); } public void addTestInclude( String pattern ) { build.getTestResources().get( 0 ).addInclude(pattern); } public void addTestExclude( String pattern ) { build.getTestResources().get( 0 ).addExclude(pattern); } public void setTargetPath( String path ) { build.getResources().get( 0 ).setTargetPath(path); } public void setTestTargetPath( String path ) { build.getTestResources().get( 0 ).setTargetPath(path); } public void setDirectory( String dir ) { build.getResources().get( 0 ).setDirectory(dir); } public void setTestDirectory( String dir ) { build.getTestResources().get( 0 ).setDirectory(dir); } public void setResourceFiltering( int nIndex, boolean filter ) { if ( build.getResources().size() > nIndex ) { build.getResources().get( nIndex ).setFiltering(filter); } } private void setupResources() { Resource resource = new Resource(); // see MavenProjectBasicStub for details // of getBasedir // setup default resources resource.setDirectory( getBasedir().getPath() + "/src/main/resources" ); resource.setFiltering( false ); resource.setTargetPath( null ); build.addResource( resource ); } private void setupTestResources() { Resource resource = new Resource(); // see MavenProjectBasicStub for details // of getBasedir // setup default test resources resource.setDirectory( getBasedir().getPath() + "/src/test/resources" ); resource.setFiltering( false ); resource.setTargetPath( null ); build.addTestResource( resource ); } } ././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/ArtifactStub.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/Arti0000664000175000017500000001452313365361410033513 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.stub; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.io.File; import java.util.Collection; import java.util.LinkedList; import java.util.List; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.handler.ArtifactHandler; import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.artifact.metadata.ArtifactMetadata; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.artifact.versioning.ArtifactVersion; import org.apache.maven.artifact.versioning.OverConstrainedVersionException; import org.apache.maven.artifact.versioning.VersionRange; /** * Stub */ public class ArtifactStub implements Artifact { boolean hasClassifier; boolean resolved; boolean optional; boolean release; ArtifactHandler artifactHandler; File file; String baseVersion; String type; String classifier; String identifier; String dependencyConflictId; String downloadUrl; String selectedVersion; String artifactId; String groupId; String resolvedVersion; String scope; String version; VersionRange versionRange; public ArtifactStub() { type = "testtype"; scope = "testscope"; classifier = "testclassifier"; artifactHandler = new DefaultArtifactHandler(); } public void populate( MavenProjectBasicStub project ) { groupId = project.getGroupId(); artifactId = project.getArtifactId(); version = project.getVersion(); versionRange = VersionRange.createFromVersion( version ); } public boolean hasClassifier() { return true; } public String getBaseVersion() { return "Test Version"; } public void setBaseVersion( String version ) { baseVersion = version; } public void setFile( File _file ) { file = _file; } public File getFile() { return new File( "testfile" ); } public String getGroupId() { return groupId; } public String getArtifactId() { return artifactId; } public String getVersion() { return version; } public void setVersion( String _version ) { version = _version; } public String getScope() { return scope; } public String getType() { return type; } public String getClassifier() { return classifier; } public String getId() { return identifier; } public String getDependencyConflictId() { return dependencyConflictId; } public void addMetadata( ArtifactMetadata metadata ) { } public Collection getMetadataList() { return new LinkedList(); } public void setRepository( ArtifactRepository remoteRepository ) { } public ArtifactRepository getRepository() { return null; } public void updateVersion( String version, ArtifactRepository localRepository ) { } public String getDownloadUrl() { return downloadUrl; } public void setDownloadUrl( String _downloadUrl ) { downloadUrl = _downloadUrl; } public ArtifactFilter getDependencyFilter() { return null; } public void setDependencyFilter( ArtifactFilter artifactFilter ) { } public ArtifactHandler getArtifactHandler() { return artifactHandler; } public List getDependencyTrail() { return new LinkedList(); } public void setDependencyTrail(List dependencyTrail) { } public void setScope( String _scope ) { scope = _scope; } public VersionRange getVersionRange() { return versionRange; } public void setVersionRange( VersionRange newRange ) { } public void selectVersion( String version ) { selectedVersion = version; } public void setGroupId( String _groupId ) { groupId = _groupId; } public void setArtifactId( String _artifactId ) { artifactId = _artifactId; } public boolean isSnapshot() { return true; } public void setResolved( boolean _resolved ) { resolved = _resolved; } public boolean isResolved() { return true; } public void setResolvedVersion( String version ) { resolvedVersion = version; } public void setArtifactHandler( ArtifactHandler handler ) { } public boolean isRelease() { return true; } public void setRelease( boolean _release ) { release = _release; } public List getAvailableVersions() { return new LinkedList(); } public void setAvailableVersions(List versions) { } public boolean isOptional() { return true; } public void setOptional( boolean _optional ) { optional = _optional; } public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException { return null; } public boolean isSelectedVersionKnown() throws OverConstrainedVersionException { return true; } public int compareTo(Artifact o) { return 0; } public ArtifactMetadata getMetadata(Class metadataClass) { return null; } } ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/MavenProjectBasicStub.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/stub/Mave0000664000175000017500000001035613365361410033504 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.stub; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.io.File; import java.util.HashSet; import java.util.LinkedList; import java.util.Properties; import org.apache.maven.artifact.Artifact; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.util.FileUtils; /** * Stub */ public class MavenProjectBasicStub extends MavenProject { protected String identifier; protected String testRootDir; protected Properties properties; protected String description; protected ModelStub modelStub; protected File file; protected ArtifactStub artifact; public MavenProjectBasicStub( String id ) throws Exception { // most values are hardcoded to have a controlled environment super( new ModelStub() ); modelStub = (ModelStub) getModel(); properties = new Properties(); artifact = new ArtifactStub(); identifier = id; // set isolated root directory testRootDir = PlexusTestCase.getBasedir() + "/target/test-classes/unit/test-dir/" + identifier; if ( !FileUtils.fileExists( testRootDir ) ) { FileUtils.mkdir( testRootDir ); } artifact.populate( this ); // this is ugly but needed to ensure that the copy constructor // works correctly initializeParentFields(); } public String getName() { return "Test Project " + identifier; } public void setDescription( String desc ) { description = desc; } public String getDescription() { if ( description == null ) { return "this is a test project"; } else { return description; } } public File getBasedir() { // create an isolated environment // see setupTestEnvironment for details return new File( testRootDir ); } public Artifact getArtifact() { return artifact; } public String getGroupId() { return "org.apache.maven.plugin.test"; } public String getArtifactId() { return "maven-resource-plugin-test#" + identifier; } public String getPackaging() { return "ejb"; } public String getVersion() { return identifier; } public void addProperty( String key, String value ) { properties.put( key, value ); } public Properties getProperties() { return properties; } // to prevent the MavenProject copy constructor from blowing up private void initializeParentFields() { // the pom should be located in the isolated dummy root super.setFile( new File( getBasedir(), "pom.xml" ) ); super.setDependencyArtifacts( new HashSet() ); super.setArtifacts( new HashSet() ); super.setPluginArtifacts( new HashSet() ); super.setReportArtifacts( new HashSet() ); super.setExtensionArtifacts( new HashSet() ); super.setRemoteArtifactRepositories( new LinkedList() ); super.setPluginArtifactRepositories( new LinkedList() ); super.setCollectedProjects( new LinkedList() ); super.setActiveProfiles( new LinkedList() ); super.setOriginalModel( null ); super.setExecutionProject( this ); super.setArtifact( artifact ); } } maven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/0000775000175000017500000000000013365361410032323 5ustar mathieumathieu././@LongLink0000644000000000000000000000021600000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_GenerateFromBundleWithTypeAndClassifier.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Gen0000664000175000017500000000360713365361410033361 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; public class IT_GenerateFromBundleWithTypeAndClassifier extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "generate-from-bundle-with-type-and-classifier" ); Verifier verifier = TestUtils.newVerifier( dir ); verifier.executeGoal( "generate-resources" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("Built-In:")); } } ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_GenerateFromOverride.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Gen0000664000175000017500000000351413365361410033356 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; public class IT_GenerateFromOverride extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "generate-from-override" ); Verifier verifier = TestUtils.newVerifier( dir ); verifier.executeGoal( "generate-resources" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("Override:")); } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_CustomFilterDelimiter.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Cus0000664000175000017500000000362313365361410033400 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; public class IT_CustomFilterDelimiter extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "custom-filter-delim" ); Verifier verifier = TestUtils.newVerifier( dir ); verifier.getCliOptions().add( "-X" ); verifier.executeGoal( "validate" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("Override: custom-filter-delim")); } } ././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_GenerateFromBundle.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Gen0000664000175000017500000000352013365361410033353 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; public class IT_GenerateFromBundle extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "generate-from-bundle" ); Verifier verifier = TestUtils.newVerifier( dir ); verifier.executeGoal( "generate-resources" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("Built-In:")); } } ././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_FilterLocalOverride.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Fil0000664000175000017500000000355013365361410033357 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; public class IT_FilterLocalOverride extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "filter-local-override" ); Verifier verifier = TestUtils.newVerifier( dir ); verifier.executeGoal( "generate-resources" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("Override: filter-local-override")); } } ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_SupplementalArtifact.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Sup0000664000175000017500000000460413365361410033415 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; /** * @author John Casey */ public class IT_SupplementalArtifact extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "supplemental-artifact" ); File resources = new File( dir, "resource-projects" ); Verifier verifier; verifier = TestUtils.newVerifier( resources ); verifier.deleteArtifacts( "org.apache.maven.plugin.rresource.it.mrr43" ); verifier.executeGoal( "deploy" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); verifier = TestUtils.newVerifier( dir ); verifier.executeGoal( "generate-resources" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); File output = new File( dir, "target/maven-shared-archive-resources/DEPENDENCIES" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("From: 'Deficient Tooling, Inc.' (http://www.deficient-tools.us/)")); assertTrue(content.contains("Deficient Dependency (http://www.deficient-tools.us/dep) org.apache.maven.plugin.rresource.it.mrr43:deficient-dep")); } } ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/AbstractIT.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/Abstra0000664000175000017500000000213413365361410033462 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import org.apache.maven.plugin.resources.remote.it.support.BootstrapInstaller; import org.junit.Before; public abstract class AbstractIT { @Before public void setUp() throws Exception { BootstrapInstaller.install(); } } ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_RunOnlyAtExecutionRoot.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Run0000664000175000017500000000660513365361410033415 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.Os; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; /** * @author Benjamin Bentmann */ public class IT_RunOnlyAtExecutionRoot extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { // Workaround for Windows + Maven-3.5.x + Jenkins due to MNG-6261 assumeTrue( !(System.getenv( "JENKINS_HOME" ) != null && Os.isFamily( Os.FAMILY_WINDOWS ) && System.getenv( "MAVEN_HOME" ).contains( "-3.5." ) ) ); File dir = TestUtils.getTestDir( "run-only-at-execution-root" ); Verifier verifier; verifier = TestUtils.newVerifier( new File( dir, "resource-projects" ) ); verifier.executeGoal( "deploy" ); verifier.setLogFileName( "first.log" ); verifier.displayStreamBuffers(); verifier.verifyErrorFreeLog(); verifier.resetStreams(); verifier = TestUtils.newVerifier( dir ); // I'm not sure what exactly the intention of the test was. // Based on the name i assumed to be sure the remote-resources-plugin // will be executed only at root level. // This will fail, cause if an needed artifact is not there // maven will fail. // Might reconsider how to write a better testcase. // verifier.deleteArtifacts( "org.apache.maven.plugin.rresource.it.mrr41" ); verifier.executeGoal( "generate-resources" ); verifier.displayStreamBuffers(); verifier.verifyErrorFreeLog(); verifier.resetStreams(); String depResource = "target/maven-shared-archive-resources/DEPENDENCIES"; File output = new File( dir, depResource ); assertTrue( output.exists() ); assertFalse( new File( dir, "child1/" + depResource ).exists() ); assertFalse( new File( dir, "child2/" + depResource ).exists() ); String content = FileUtils.fileRead( output ); assertTrue( content.contains( "Dependency Id: org.apache.maven.plugin.rresource.it.mrr41:release:1.0" ) ); assertTrue( content.contains( "Dependency Id: org.apache.maven.plugin.rresource.it.mrr41:snapshot:1.0-SNAPSHOT" ) ); } } ././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_BadDependencyPoms.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Bad0000664000175000017500000000562113365361410033334 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; /** * @author Benjamin Bentmann */ public class IT_BadDependencyPoms extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "bad-dependency-poms" ); Verifier verifier = TestUtils.newVerifier( dir ); verifier.deleteArtifacts( "test" ); verifier.getSystemProperties().setProperty( "it.dir", dir.getAbsolutePath() ); try { verifier.executeGoal( "generate-resources" ); } catch ( VerificationException e ) { verifier.resetStreams(); // We will get an exception from harness in case // of execution failure (return code non zero). // This is the case if we have missing artifacts // as in this test case. // This means we can't test the created file which will never // contain the appropriate data we wan't to check for. // So the only reliable way is to check the log output // from maven which will print out message according to // the missing artifacts. File output = new File( dir, "log.txt" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains("mvn install:install-file -DgroupId=test -DartifactId=pom -Dversion=0.2 -Dpackaging=jar")); assertTrue(content.contains("mvn install:install-file -DgroupId=test -DartifactId=missing -Dversion=0.1 -Dpackaging=jar")); assertTrue(content.contains("mvn install:install-file -DgroupId=test -DartifactId=invalid -Dversion=0.1 -Dpackaging=jar")); } } } ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_GetDependencyProjects.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/IT_Get0000664000175000017500000000602113365361410033360 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import static org.junit.Assert.assertTrue; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import org.apache.maven.plugin.resources.remote.it.support.TestUtils; import org.codehaus.plexus.util.FileUtils; import org.junit.Test; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; /** * @author Benjamin Bentmann */ public class IT_GetDependencyProjects extends AbstractIT { @Test public void test() throws IOException, URISyntaxException, VerificationException { File dir = TestUtils.getTestDir( "get-dependency-projects" ); Verifier verifier; verifier = TestUtils.newVerifier( dir ); verifier.executeGoal( "deploy" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); verifier = TestUtils.newVerifier( new File( dir, "project" ) ); verifier.deleteArtifacts( "org.apache.maven.plugin.rresource.it.gdp" ); try { verifier.executeGoal( "generate-resources" ); } catch ( VerificationException e) { verifier.resetStreams(); // We will get an exception from harness in case // of execution failure (return code non zero). // This is the case if we have missing artifacts // as in this test case. // This means we can't test the created file which will never // contain the appropriate data we wan't to check for. // So the only reliable way is to check the log output // from maven which will print out message according to // the missing artifacts. File output = new File( verifier.getBasedir(), "log.txt" ); String content = FileUtils.fileRead( output ); assertTrue(content.contains( "mvn install:install-file -DgroupId=org.apache.maven.plugin.rresource.it.gdp -DartifactId=release -Dversion=1.0 -Dpackaging=jar" )); assertTrue (content.contains( "mvn install:install-file -DgroupId=org.apache.maven.plugin.rresource.it.gdp -DartifactId=snapshot -Dversion=1.0-SNAPSHOT -Dpackaging=jar" )); } } } ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/support/maven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/suppor0000775000175000017500000000000013365361410033574 5ustar mathieumathieu././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/suppor0000664000175000017500000000433413365361410033602 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it.support; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.io.File; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; public class TestUtils { public static File getTestDir( final String name ) throws IOException, URISyntaxException { ClassLoader cloader = Thread.currentThread().getContextClassLoader(); URL resource = cloader.getResource( name ); if ( resource == null ) { throw new IOException( "Cannot find test directory: " + name ); } return new File( new URI( resource.toExternalForm() ).normalize().getPath() ); } public static File getBaseDir() { File result = new File( System.getProperty( "basedir", "." ) ); try { return result.getCanonicalFile(); } catch ( IOException e ) { return result.getAbsoluteFile(); } } public static Verifier newVerifier( File dir ) throws VerificationException { Verifier verifier = new Verifier( dir.getAbsolutePath() ); verifier.setLocalRepo( System.getProperty( "localRepositoryPath" ) ); verifier.getSystemProperties().setProperty( "https.protocols", System.getProperty( "https.protocols", "TLSv1.2" ) ); return verifier; } } ././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/support/BootstrapInstaller.javamaven-remote-resources-plugin-1.6.0/src/test/java/org/apache/maven/plugin/resources/remote/it/suppor0000664000175000017500000000315713365361410033604 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote.it.support; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; public class BootstrapInstaller { private static boolean installed = false; public static void install() throws IOException, URISyntaxException, VerificationException { if ( !installed ) { File bootstrapDir = TestUtils.getTestDir( "bootstrap" ); Verifier verifier = TestUtils.newVerifier( bootstrapDir ); verifier.executeGoal( "deploy" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); installed = true; } } } maven-remote-resources-plugin-1.6.0/src/site/0000775000175000017500000000000013365361410021032 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/site/xdoc/0000775000175000017500000000000013365361410021767 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/site/xdoc/download.xml.vm0000664000175000017500000001136513365361410024747 0ustar mathieumathieu Download ${project.name} Source

${project.name} ${project.version} is distributed in source format. Use a source archive if you intend to build ${project.name} yourself. Otherwise, simply use the ready-made binary artifacts from central repository.

You will be prompted for a mirror - if the file is not found on yours, please be patient, as it may take 24 hours to reach all mirrors.

In order to guard against corrupted downloads/installations, it is highly recommended to verify the signature of the release bundles against the public KEYS used by the Apache Maven developers.

${project.name} is distributed under the Apache License, version 2.0.

We strongly encourage our users to configure a Maven repository mirror closer to their location, please read How to Use Mirrors for Repositories.

[if-any logo] logo [end] The currently selected mirror is [preferred]. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.

Other mirrors:

You may also consult the complete list of mirrors.

This is the current stable version of ${project.name}.

Link Checksum Signature
${project.name} ${project.version} (Source zip) maven/plugins/${project.artifactId}-${project.version}-source-release.zip maven/plugins/${project.artifactId}-${project.version}-source-release.zip.sha512 maven/plugins/${project.artifactId}-${project.version}-source-release.zip.asc

Older non-recommended releases can be found on our archive site.

maven-remote-resources-plugin-1.6.0/src/site/fml/0000775000175000017500000000000013365361410021610 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/site/fml/faq.fml0000664000175000017500000000740013365361410023060 0ustar mathieumathieu Why do I need to use this plugin?

This plugin greatly reduces the pain associated with consistent packaging concerns across a large set of projects, or an entire organization. Any project can specify the use of a remote resource bundle and have the resources incorporated into their packaging. This means that you can create standard settings in a parent POM somewhere in the project hierarchy and have all projects use packaged common resources in a standard way like licenses, other legal notices and disclaimers, or anything else that may be common.

The generated files have a lot of missing information. Looking at the POMs from the dependencies, the information isn't there either. What can I do?

There are two solutions:

  1. File bugs with the projects that produced those artifacts to get them to fix them. Also, file bugs with the Maven Evangelism project to have the Maven people enhance the metadata in the repository.
  2. Use a supplemental data file. You can create a file that contains the missing metadata. For example: com.sun.xml.bind jaxb-impl Sun JAXB Reference Implementation Runtime Sun Microsystems http://www.sun.com/ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 http://www.sun.com/cddl/cddl.html ]]> That location of that file can then be configured with the supplementalModels configuration element for the process goal. The supplemental information is merged with the information provided from the repository.
maven-remote-resources-plugin-1.6.0/src/site/resources/0000775000175000017500000000000013365361410023044 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/site/resources/download.cgi0000664000175000017500000000166413365361410025346 0ustar mathieumathieu#!/bin/sh # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # # Just call the standard mirrors.cgi script. It will use download.html # as the input template. exec /www/www.apache.org/dyn/mirrors/mirrors.cgi $*maven-remote-resources-plugin-1.6.0/src/site/apt/0000775000175000017500000000000013365361410021616 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/site/apt/index.apt.vm0000664000175000017500000000721113365361410024055 0ustar mathieumathieu ------ Introduction ------ Jason van Zyl ------ 2013-07-22 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you 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. ${project.name} This plugin is used to retrieve JARs of resources from remote repositories, process those resources, and incorporate them into JARs you build with Maven. A very common use-case is the need to package certain resources in a consistent way across your organization. For example at Apache, it is required that every JAR produced contains a copy of the Apache license and a notice file that references all used software in a given project: see {{{/apache-resource-bundles/}Apache Resource Bundles}}. * Goals Overview * {{{./bundle-mojo.html}remote-resources:bundle}} creates the resource bundle manifest required by the remote resource bundle processing. The {{{./remote-resources.html}manifest file}}, <<<$\{basedir\}/target/classes/META-INF/maven/remote-resources.xml>>>, is created from the contents of the <<>> directory. * {{{./process-mojo.html}remote-resources:process}} retrieves the specified remote resource bundles, processes them and makes them available to the <<>> phase. [] * Usage General instructions on how to use the Remote Resources Plugin can be found on the {{{./usage.html}usage page}}. Some more specific use cases are described in the examples given below. If you need help using some of the more advanced features of the plugin, check out the advanced help pages: * {{{./supplemental-models.html}Patching Bad POMs with Supplemental Models}} [] In case you still have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel free to contact the {{{./mail-lists.html}user mailing list}}. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the {{{./mail-lists.html}mail archive}}. If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our {{{./issue-tracking.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our {{{./source-repository.html}source repository}} and will find supplementary information in the {{{/guides/development/guide-helping.html}guide to helping with Maven}}. * Examples To provide you with better understanding of some usages of the Remote Resources Plugin, you can take a look at the following examples: * {{{./examples/sharing-resources.html}Sharing Resources Example}} maven-remote-resources-plugin-1.6.0/src/site/apt/usage.apt.vm0000664000175000017500000001704113365361410024054 0ustar mathieumathieu ------ Usage ------ Jason van Zyl John Casey ------ 2011-01-20 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you 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. Usage To handle filtering this version of Maven Remote Resources Plugin uses {{{/shared/maven-filtering/index.html}Maven Filtering}} ${mavenFilteringVersion}. * How to Create a Resource Bundle To turn on the bundle resource manifest generation you need to configure the plugin as follows: ------------------- ... maven-remote-resources-plugin ${project.version} bundle ... ------------------- This will trigger the scanning of that project's <<<$\{basedir}/src/main/resources>>> directory and create the <<<$\{basedir}/target/classes/META-INF/maven/remote-resources.xml>>> {{{./remote-resources.html}manifest file}}. <> The files have to be named like <<<*.vm>>> to mark them as {{{htps://velocity.apache.org}Velocity}} macro files which will be filtered by the <> goal. If you don't name the files according to this, they will not been filtered. * How to Use Remote Resource Bundles To use remote resource bundles you need to configure the plugin as follows: ------------------- ... maven-remote-resources-plugin ${project.version} process-remote-resources process org.apache:apache-jar-resource-bundle:1.0 ... ------------------- This will retrieve the <<>> from the remote repositories specified in your POM, process each resource in the bundle and deposit them in your projects <<<$\{basedir}/target/classes>>> directory. * Running Once in a Multi-Module Build <> This feature was added in version 1.1. In many cases, an application build consists of multiple Maven modules, but you only need to include the license files, dependencies listing, etc. once for the entire application. Of course, in such cases, the dependencies listing needs to aggregate all dependencies of all modules. To accomplish this, you can use the <<>> parameter when you configure the Remote Resources Plugin in your application parent POM. This parameter limits execution of the Remote Resources Plugin to the root directory in which the build was run. In most cases, the application's distribution archives will be created at this top directory, so this is a natural location into which licensing and dependency information should be generated. To run the Remote Resources Plugin only in the execution root, use the following: +---+ maven-remote-resources-plugin ${project.version} [...] process-remote-resources process true [...] +---+ * Specifying Delimiters for Filterable Expressions <> This feature was added in version 1.1. By default, the Remote Resources Plugin supports expressions specified using either the '<<<$\{expr}>>>' or '<<<@expr@>>>' format. However, at times it may be more convenient to use a different set of filter delimiters. By configuring the <<>> and <<>> parameters, you have a high degree of control over the filtering process. To enable the filter delimiters for the format '<<<#\{expr}>>>' (Ruby-style), add the following to your plugin configuration: +---+ maven-remote-resources-plugin ${project.version} process-remote-resources process #{*} [...] +---+ Notice the '<<<*>>>' character above. This denotes the dividing point between start and end delimiter, where the actual expression will be specified. If your start and end delimiters are the same, you can use an even simpler configuration. For example, to enable filter delimiters for the format '<<<#expr#>>>', add the following to your plugin configuration: +---+ maven-remote-resources-plugin ${project.version} process-remote-resources process # [...] +---+ When the filter processor executes and notices this delimiter specification missing a '<<<*>>>' character, it will simply assume the provided delimiter will be used as both the start end delimiter for an expression. All of the above assumes that you still want the ability to use '<<<$\{expr}>>>' and '<<<@expr@>>>' delimiters. However, in cases where this would cause trouble, you can disable these default delimiters as follows: +---+ maven-remote-resources-plugin ${project.version} process-remote-resources process false [...] +---+ maven-remote-resources-plugin-1.6.0/src/site/apt/supplemental-models.apt.vm0000664000175000017500000002171013365361410026740 0ustar mathieumathieu ------ Supplementing Missing POM Information ------ John Casey ------ 2011-01-09 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you 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. Supplementing Missing POM Information <> This feature was added in version 1.0-alpha-5. One of Maven's great strengths is that it allows you, the user, to build directly on the work of others with minimal effort. For instance, by adding five lines (or less) to your POM, you can declare a dependency on someone else's library, and instruct Maven to use that library during the build for your own project. Since the library's JAR is usually accompanied by a POM of its own, your project doesn't need to provide an exhaustive listing of all libraries used by all of your direct dependencies. However, this approach of reusing POM metadata from your dependencies can be inhibited by a dependency POM that provides less-than-complete information about its project. While most POMs provide reasonably accurate information about their dependencies, they sometimes leave out some information critical to assembling licensing and dependency notice files. For example, the templates used by many Apache distributions assemble a listing of project dependencies according to their organization name (and URL), along with the URL each project's website. When dependency POMs are missing this information, the dependency notice file that the Remote Resources Plugin renders can be invalid. To compensate for incomplete dependency POMs, you can use the supplemental models support, introduced to the Remote Resources Plugin in version 1.0-alpha-5, and improved in version 1.1. * Fixing Incomplete POMs: Using Supplemental Models For those cases where your project's dependencies don't list organization name, organization URL, project URL, or whatever other metadata you require for you legal notice files, the Remote Resources Plugin allows you to configure a series of supplemental models. These models consist of one or more model files, each of which contains one or more POM fragments that can be merged into existing dependency POMs to supplement the metadata provided there. The plugin uses the key <<>> to match each supplemental model with the dependency POM into which it should be merged. For example, imagine that your project's POM has declared the following two dependencies: +---+ org.foo missing-org-info 1 org.foo missing-project-url 1 +---+ Now imagine that your project needs to include a file in its distribution that lists organization and project URLs for each dependency, in a format like this: +---+ From: Apache Software Foundation (http://www.apache.org/) - Commons FOO (http://commons.apache.org/foo/) org.apache.commons.foo:foo:1 - Commons BAR (http://commons.apache.org/bar/) org.apache.commons.bar:bar:1 +---+ However, as you try generating these licensing resources for your project, you quickly learn that your dependencies provide POMs that don't always include all the information needed by this format. The first dependency is missing all of the information provided by the <<>> element of the POM, and the second is missing a project- specific URL (the <<>> element of the POM). To fix these omissions for the purposes of resource generation, we can simply provide a supplemental-model file that contains the missing information. The file, located at <<>>, would look something like this: +---+ org.foo missing-org-info FOO, Inc. http://www.foo.org/ org.foo missing-project-url http://www.foo.org/projects/missing-project-url/ +---+ Finally, we tell the Remote Resources Plugin to use the new supplemental-model file: +---+ maven-remote-resources-plugin ${project.version} process-remote-resources process supplemental-models.xml [...] +---+ After re-running the project build, the supplemental information we provided will be merged with the metadata from the dependency POMs, providing enough information to complete the dependencies listing. * Publishing and Reusing Supplemental Models <> This feature was added in version 1.1. The configuration above is fine for single projects that need to address deficiencies in their dependencies' metadata. But what happens when your organization wants to use these same deficient dependencies across multiple projects? The configuration we just examined cannot handle reuse of supplemental-model files. To address this shortcoming, version 1.1 of the Remote Resources Plugin introduces a new parameter: <<>>. When combined with the <<>> parameter used above, this new parameter allows the Remote Resources Plugin to resolve artifacts containing supplemental model information, then search those artifacts for the paths given in the <<>> listing. To make the supplemental models above reusable using this mechanism, we first publish them in their own project: +---+ 4.0.0 org.myco dependency-resource-supplement 1 +---+ Note that this is just a simple, unadorned JAR artifact. We then move the above POM and <<>> file into a separate project directory structure: +---+ |-- pom.xml `-- src `-- main `-- resources `-- supplemental-models.xml +---+ Once we install this new project, we can reference it from the configuration for the Remote Resources Plugin, like this: +---+ maven-remote-resources-plugin ${project.version} process-remote-resources process org.myco:dependency-resource-supplement:1 supplemental-models.xml [...] +---+ Once the <<>> project is released and deployed, any number of projects can then make use of the supplemental information it provides. maven-remote-resources-plugin-1.6.0/src/site/apt/examples/0000775000175000017500000000000013365361410023434 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/site/apt/examples/sharing-resources.apt.vm0000664000175000017500000001161113365361410030226 0ustar mathieumathieu ------ Sharing Resources ------ Dennis Lundberg ------ 2011-12-23 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you 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. Sharing Resources The Remote Resources Plugin can also be used to share resources between modules in a multi module build. In the following example we have a set of files that are used to set up a test environment for a database. We want to reuse these resources in several modules in our project. * Set up a module for the resources to be shared Create a new module called <<>>. Put the files in a directory layout like the one below, making sure that your resource files are in the <<>> directory: ------------------- shared-resources | +- src | | | `- main | | | `- resources | | | +- database.ddl | | | `- database.sql | `- pom.xml ------------------- The POM for <<>> should look like this: ------------------- ... org.test shared-resources ... maven-remote-resources-plugin ${project.version} bundle **/*.ddl **/*.sql ... ------------------- This will bundle the shared resources in a JAR file during the <<>> phase. This means that others modules can consume these resources in any phase after that. * Configure other modules to use the shared module To use the shared resources in another module you need to configure the plugin as follows: ------------------- ... org.test resource-consumer ... org.apache.maven.plugins maven-remote-resources-plugin ${project.version} org.test:shared-resources:\${project.version} process ... org.codehaus.mojo sql-maven-plugin 1.4 ... ... create-schema process-test-resources execute true \${project.build.directory}/maven-shared-archive-resources/database.ddl \${project.build.directory}/maven-shared-archive-resources/database.sql ... ... \${project.groupId} shared-resources \${project.version} ------------------- This will retrieve the bundled resources of the <<>> module, process each resource in the bundle and put them in the <<<$\{project.build.directory}/maven-shared-archive-resources>>> directory of the <<>> module. That means we can use those files in the SQL Maven Plugin to set up the database schema using a DDL file, and add some data to the database using an SQL file. maven-remote-resources-plugin-1.6.0/src/site/site.xml0000664000175000017500000000357113365361410022526 0ustar mathieumathieu maven-remote-resources-plugin-1.6.0/src/main/0000775000175000017500000000000013365361410021012 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/0000775000175000017500000000000013365361410021733 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/org/0000775000175000017500000000000013365361410022522 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/0000775000175000017500000000000013365361410023743 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/0000775000175000017500000000000013365361410025051 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/0000775000175000017500000000000013365361410026347 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/0000775000175000017500000000000013365361410030361 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/0000775000175000017500000000000013365361410031654 5ustar mathieumathieu././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/RemoteResourcesClassLoader.javamaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/RemoteRes0000664000175000017500000000315313365361410033506 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.net.URLClassLoader; import java.net.URL; /** * @author Jason van Zyl */ public class RemoteResourcesClassLoader extends URLClassLoader { public RemoteResourcesClassLoader( ClassLoader parent ) { super( new URL[]{} , parent ); } public void addURL( URL url ) { super.addURL( url ); } // don't check the parents for the resources. Just check the jars // that we have provided. Thus, we don't pull junk from the // system classpath jars and stuff instead of the jars // we specifically provided public URL getResource( String name ) { URL url = findResource( name ); if ( url == null ) { url = super.getResource( name ); } return url; } } ././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/BundleRemoteResourcesMojo.javamaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/BundleRem0000664000175000017500000001314213365361410033455 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.resources.remote.io.xpp3.RemoteResourcesBundleXpp3Writer; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.codehaus.plexus.util.DirectoryScanner; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.ReaderFactory; import org.codehaus.plexus.util.StringUtils; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.Writer; import java.util.Arrays; import java.util.List; /** * Bundle up resources that should be considered as a remote-resource, * generating META-INF/maven/remote-resources.xml descriptor. */ @Mojo( name = "bundle", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true ) public class BundleRemoteResourcesMojo extends AbstractMojo { public static final String RESOURCES_MANIFEST = "META-INF/maven/remote-resources.xml"; private static final String[] DEFAULT_INCLUDES = new String[]{ "**/*.txt", "**/*.vm", }; /** * The directory which contains the resources you want packaged up in this resource bundle. */ @Parameter( defaultValue = "${basedir}/src/main/resources" ) private File resourcesDirectory; /** * The directory where you want the resource bundle manifest written to. */ @Parameter( defaultValue = "${project.build.outputDirectory}", required = true ) private File outputDirectory; /** * A list of files to include. Can contain ant-style wildcards and double wildcards. * The default includes are * **/*.txt **/*.vm * * @since 1.0-alpha-5 */ @Parameter private String[] includes; /** * A list of files to exclude. Can contain ant-style wildcards and double wildcards. * * @since 1.0-alpha-5 */ @Parameter private String[] excludes; /** * Encoding of the bundle. * * @since 1.1 */ @Parameter( defaultValue = "${project.build.sourceEncoding}" ) private String sourceEncoding; public void execute() throws MojoExecutionException { if ( !resourcesDirectory.exists() ) { getLog().info( "skip non existing resourceDirectory " + resourcesDirectory.getAbsolutePath() ); return; } if ( StringUtils.isEmpty( sourceEncoding ) ) { getLog().warn( "sourceEncoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING + ", i.e. build is platform dependent!" ); sourceEncoding = ReaderFactory.FILE_ENCODING; } // Look at the content of the resourcesDirectory and create a manifest of the files // so that velocity can easily process any resources inside the JAR that need to be processed. RemoteResourcesBundle remoteResourcesBundle = new RemoteResourcesBundle(); remoteResourcesBundle.setSourceEncoding( sourceEncoding ); DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir( resourcesDirectory ); if ( includes != null && includes.length != 0 ) { scanner.setIncludes( includes ); } else { scanner.setIncludes( DEFAULT_INCLUDES ); } if ( excludes != null && excludes.length != 0 ) { scanner.setExcludes( excludes ); } scanner.addDefaultExcludes(); scanner.scan(); List includedFiles = Arrays.asList( scanner.getIncludedFiles() ); for ( String resource : includedFiles ) { remoteResourcesBundle.addRemoteResource( StringUtils.replace( resource, '\\', '/' ) ); } int n = remoteResourcesBundle.getRemoteResources().size(); getLog().info( "Writing " + RESOURCES_MANIFEST + " descriptor with " + n + " entr" + ( ( n > 1 ) ? "ies" : "y" ) ); RemoteResourcesBundleXpp3Writer w = new RemoteResourcesBundleXpp3Writer(); Writer writer = null; try { File f = new File( outputDirectory, RESOURCES_MANIFEST ); FileUtils.mkdir( f.getParentFile() .getAbsolutePath() ); writer = new FileWriter( f ); w.write( writer, remoteResourcesBundle ); writer.close(); writer = null; } catch ( IOException e ) { throw new MojoExecutionException( "Error creating remote resources manifest.", e ); } finally { IOUtil.close( writer ); } } } ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRemoteResourcesMojo.javamaven-remote-resources-plugin-1.6.0/src/main/java/org/apache/maven/plugin/resources/remote/ProcessRe0000664000175000017500000016104113365361410033507 0ustar mathieumathieupackage org.apache.maven.plugin.resources.remote; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.Reader; import java.io.StringReader; import java.io.Writer; import java.net.MalformedURLException; import java.net.URL; import java.text.SimpleDateFormat; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.Enumeration; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; import java.util.TreeMap; import org.apache.commons.io.output.DeferredFileOutputStream; import org.apache.maven.ProjectDependenciesResolver; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.repository.ArtifactRepository; 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.versioning.VersionRange; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Model; import org.apache.maven.model.Organization; import org.apache.maven.model.Resource; import org.apache.maven.model.io.xpp3.MavenXpp3Reader; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.resources.remote.io.xpp3.RemoteResourcesBundleXpp3Reader; import org.apache.maven.plugin.resources.remote.io.xpp3.SupplementalDataModelXpp3Reader; import org.apache.maven.plugins.annotations.Component; import org.apache.maven.plugins.annotations.LifecyclePhase; import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.Parameter; import org.apache.maven.project.InvalidProjectModelException; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.apache.maven.project.ProjectBuildingException; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.apache.maven.project.inheritance.ModelInheritanceAssembler; import org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException; import org.apache.maven.shared.artifact.filter.collection.ArtifactIdFilter; import org.apache.maven.shared.artifact.filter.collection.FilterArtifacts; import org.apache.maven.shared.artifact.filter.collection.GroupIdFilter; import org.apache.maven.shared.artifact.filter.collection.ProjectTransitivityFilter; import org.apache.maven.shared.artifact.filter.collection.ScopeFilter; import org.apache.maven.shared.filtering.MavenFileFilter; import org.apache.maven.shared.filtering.MavenFileFilterRequest; import org.apache.maven.shared.filtering.MavenFilteringException; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; import org.apache.velocity.app.VelocityEngine; import org.apache.velocity.exception.MethodInvocationException; import org.apache.velocity.exception.ParseErrorException; import org.apache.velocity.exception.ResourceNotFoundException; import org.apache.velocity.exception.VelocityException; import org.apache.velocity.runtime.RuntimeServices; import org.apache.velocity.runtime.log.LogChute; import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader; import org.codehaus.plexus.resource.ResourceManager; import org.codehaus.plexus.resource.loader.FileResourceLoader; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.ReaderFactory; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.WriterFactory; import org.codehaus.plexus.util.xml.Xpp3Dom; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; /** *

* Pull down resourceBundles containing remote resources and process the resources contained inside. When that is done, * the resources are injected into the current (in-memory) Maven project, making them available to the process-resources * phase. *

*

* Resources that end in ".vm" are treated as Velocity templates. For those, the ".vm" is stripped off for the final * artifact name and it's fed through Velocity to have properties expanded, conditions processed, etc... *

*

* Resources that don't end in ".vm" are copied "as is". */ // NOTE: Removed the following in favor of maven-artifact-resolver library, for MRRESOURCES-41 // If I leave this intact, interdependent projects within the reactor that haven't been built // (remember, this runs in the generate-resources phase) will cause the build to fail. // // @requiresDependencyResolution test @Mojo( name = "process", defaultPhase = LifecyclePhase.GENERATE_RESOURCES, threadSafe = true ) public class ProcessRemoteResourcesMojo extends AbstractMojo implements LogChute { private static final String TEMPLATE_SUFFIX = ".vm"; /** *

* In cases where a local resource overrides one from a remote resource bundle, that resource should be filtered if * the resource set specifies it. In those cases, this parameter defines the list of delimiters for filterable * expressions. These delimiters are specified in the form 'beginToken*endToken'. If no '*' is given, the delimiter * is assumed to be the same for start and end. *

*

* So, the default filtering delimiters might be specified as: *

* *
     * <delimiters>
     *   <delimiter>${*}</delimiter>
     *   <delimiter>@</delimiter>
     * </delimiters>
     * 
*

* Since the '@' delimiter is the same on both ends, we don't need to specify '@*@' (though we can). * * @since 1.1 */ @Parameter protected List filterDelimiters; /** * @since 1.1 */ @Parameter( defaultValue = "true" ) protected boolean useDefaultFilterDelimiters; /** * If true, only generate resources in the directory of the root project in a multimodule build. * Dependencies from all modules will be aggregated before resource-generation takes place. * * @since 1.1 */ @Parameter( defaultValue = "false" ) protected boolean runOnlyAtExecutionRoot; /** * Used for calculation of execution-root for {@link ProcessRemoteResourcesMojo#runOnlyAtExecutionRoot}. */ @Parameter( defaultValue = "${basedir}", readonly = true, required = true ) protected File basedir; /** * The character encoding scheme to be applied when filtering resources. */ @Parameter( property = "encoding", defaultValue = "${project.build.sourceEncoding}" ) protected String encoding; /** * The local repository taken from Maven's runtime. Typically $HOME/.m2/repository. */ @Parameter( defaultValue = "${localRepository}", readonly = true, required = true ) private ArtifactRepository localRepository; /** * List of Remote Repositories used by the resolver. */ @Parameter( defaultValue = "${project.remoteArtifactRepositories}", readonly = true, required = true ) private List remoteArtifactRepositories; /** * The current Maven project. */ @Parameter( defaultValue = "${project}", readonly = true, required = true ) private MavenProject project; /** * The directory where processed resources will be placed for packaging. */ @Parameter( defaultValue = "${project.build.directory}/maven-shared-archive-resources" ) private File outputDirectory; /** * The directory containing extra information appended to the generated resources. */ @Parameter( defaultValue = "${basedir}/src/main/appended-resources" ) private File appendedResourcesDirectory; /** * Supplemental model data. Useful when processing * artifacts with incomplete POM metadata. *

* By default, this Mojo looks for supplemental model data in the file * "${appendedResourcesDirectory}/supplemental-models.xml". * * @since 1.0-alpha-5 */ @Parameter private String[] supplementalModels; /** * List of artifacts that are added to the search path when looking * for supplementalModels, expressed with groupId:artifactId:version[:type[:classifier]] format. * * @since 1.1 */ @Parameter private List supplementalModelArtifacts; /** * Map of artifacts to supplemental project object models. */ private Map supplementModels; /** * Merges supplemental data model with artifact metadata. Useful when processing artifacts with * incomplete POM metadata. */ @Component private ModelInheritanceAssembler inheritanceAssembler; /** * The resource bundles that will be retrieved and processed, * expressed with groupId:artifactId:version[:type[:classifier]] format. */ @Parameter( required = true ) private List resourceBundles; /** * Skip remote-resource processing * * @since 1.0-alpha-5 */ @Parameter( property = "remoteresources.skip", defaultValue = "false" ) private boolean skip; /** * Attaches the resources to the main build of the project as a resource directory. * * @since 1.5 */ @Parameter( defaultValue = "true", property = "attachToMain" ) private boolean attachToMain; /** * Attaches the resources to the test build of the project as a resource directory. * * @since 1.5 */ @Parameter( defaultValue = "true", property = "attachToTest" ) private boolean attachToTest; /** * Additional properties to be passed to Velocity. *

* Several properties are automatically added:

    *
  • project - the current MavenProject
  • *
  • projects - the list of dependency projects
  • *
  • projectsSortedByOrganization - the list of dependency projects sorted by organization
  • *
  • projectTimespan - the timespan of the current project (requires inceptionYear in pom)
  • *
  • locator - the ResourceManager that can be used to retrieve additional resources
  • *
* See the * javadoc for MavenProject for information about the properties on the MavenProject. */ @Parameter private Map properties = new HashMap(); /** * Whether to include properties defined in the project when filtering resources. * * @since 1.2 */ @Parameter( defaultValue = "false" ) protected boolean includeProjectProperties = false; /** * When the result of velocity transformation fits in memory, it is compared with the actual contents on disk * to eliminate unnecessary destination file overwrite. This improves build times since further build steps * typically rely on the modification date. * * @since 1.6 */ @Parameter( defaultValue = "5242880" ) protected int velocityFilterInMemoryThreshold = 5 * 1024 * 1024; /** * The list of resources defined for the project. */ @Parameter( defaultValue = "${project.resources}", readonly = true, required = true ) private List resources; /** * Artifact Resolver, needed to resolve and download the {@code resourceBundles}. */ @Component private ArtifactResolver artifactResolver; /** * Filtering support, for local resources that override those in the remote bundle. */ @Component private MavenFileFilter fileFilter; /** * Artifact factory, needed to create artifacts. */ @Component private ArtifactFactory artifactFactory; /** * The Maven session. */ @Parameter( defaultValue = "${session}", readonly = true, required = true ) private MavenSession mavenSession; /** * ProjectBuilder, needed to create projects from the artifacts. */ @Component( role = MavenProjectBuilder.class ) private MavenProjectBuilder mavenProjectBuilder; /** */ @Component private ResourceManager locator; /** * Scope to include. An Empty string indicates all scopes (default is "runtime"). * * @since 1.0 */ @Parameter( property = "includeScope", defaultValue = "runtime" ) protected String includeScope; /** * Scope to exclude. An Empty string indicates no scopes (default). * * @since 1.0 */ @Parameter( property = "excludeScope", defaultValue = "" ) protected String excludeScope; /** * When resolving project dependencies, specify the scopes to include. * The default is the same as "includeScope" if there are no exclude scopes set. * Otherwise, it defaults to "test" to grab all the dependencies so the * exclude filters can filter out what is not needed. * * @since 1.5 */ @Parameter private String[] resolveScopes; /** * Comma separated list of Artifact names too exclude. * * @since 1.0 */ @Parameter( property = "excludeArtifactIds", defaultValue = "" ) protected String excludeArtifactIds; /** * Comma separated list of Artifact names to include. * * @since 1.0 */ @Parameter( property = "includeArtifactIds", defaultValue = "" ) protected String includeArtifactIds; /** * Comma separated list of GroupId Names to exclude. * * @since 1.0 */ @Parameter( property = "excludeGroupIds", defaultValue = "" ) protected String excludeGroupIds; /** * Comma separated list of GroupIds to include. * * @since 1.0 */ @Parameter( property = "includeGroupIds", defaultValue = "" ) protected String includeGroupIds; /** * If we should exclude transitive dependencies * * @since 1.0 */ @Parameter( property = "excludeTransitive", defaultValue = "false" ) protected boolean excludeTransitive; /** */ @Component( hint = "default" ) protected ProjectDependenciesResolver dependencyResolver; private VelocityEngine velocity; @SuppressWarnings( "unchecked" ) public void execute() throws MojoExecutionException { if ( skip ) { getLog().info( "Skipping remote resources execution." ); return; } if ( StringUtils.isEmpty( encoding ) ) { getLog().warn( "File encoding has not been set, using platform encoding " + ReaderFactory.FILE_ENCODING + ", i.e. build is platform dependent!" ); } if ( runOnlyAtExecutionRoot && !project.isExecutionRoot() ) { getLog().info( "Skipping remote-resource generation in this project because it's not the Execution Root" ); return; } if ( resolveScopes == null ) { resolveScopes = new String[] { StringUtils.isEmpty( excludeScope ) ? this.includeScope : Artifact.SCOPE_TEST }; } if ( supplementalModels == null ) { File sups = new File( appendedResourcesDirectory, "supplemental-models.xml" ); if ( sups.exists() ) { try { supplementalModels = new String[] { sups.toURI().toURL().toString() }; } catch ( MalformedURLException e ) { // ignore getLog().debug( "URL issue with supplemental-models.xml: " + e.toString() ); } } } configureLocator(); if ( includeProjectProperties ) { final Properties projectProperties = project.getProperties(); for ( Object key : projectProperties.keySet() ) { properties.put( key.toString(), projectProperties.get( key ).toString() ); } } ClassLoader origLoader = Thread.currentThread().getContextClassLoader(); try { validate(); List resourceBundleArtifacts = downloadBundles( resourceBundles ); supplementModels = loadSupplements( supplementalModels ); ClassLoader classLoader = initalizeClassloader( resourceBundleArtifacts ); Thread.currentThread().setContextClassLoader( classLoader ); velocity = new VelocityEngine(); velocity.setProperty( VelocityEngine.RUNTIME_LOG_LOGSYSTEM, this ); velocity.setProperty( "resource.loader", "classpath" ); velocity.setProperty( "classpath.resource.loader.class", ClasspathResourceLoader.class.getName() ); velocity.init(); VelocityContext context = buildVelocityContext( properties ); processResourceBundles( classLoader, context ); if ( outputDirectory.exists() ) { // ---------------------------------------------------------------------------- // Push our newly generated resources directory into the MavenProject so that // these resources can be picked up by the process-resources phase. // ---------------------------------------------------------------------------- Resource resource = new Resource(); resource.setDirectory( outputDirectory.getAbsolutePath() ); // MRRESOURCES-61 handle main and test resources separately if ( attachToMain ) { project.getResources().add( resource ); } if ( attachToTest ) { project.getTestResources().add( resource ); } // ---------------------------------------------------------------------------- // Write out archiver dot file // ---------------------------------------------------------------------------- try { File dotFile = new File( project.getBuild().getDirectory(), ".plxarc" ); FileUtils.mkdir( dotFile.getParentFile().getAbsolutePath() ); FileUtils.fileWrite( dotFile.getAbsolutePath(), outputDirectory.getName() ); } catch ( IOException e ) { throw new MojoExecutionException( "Error creating dot file for archiving instructions.", e ); } } } finally { Thread.currentThread().setContextClassLoader( origLoader ); } } private void configureLocator() throws MojoExecutionException { if ( supplementalModelArtifacts != null && !supplementalModelArtifacts.isEmpty() ) { List artifacts = downloadBundles( supplementalModelArtifacts ); for ( File artifact : artifacts ) { if ( artifact.isDirectory() ) { locator.addSearchPath( FileResourceLoader.ID, artifact.getAbsolutePath() ); } else { try { locator.addSearchPath( "jar", "jar:" + artifact.toURI().toURL().toExternalForm() ); } catch ( MalformedURLException e ) { throw new MojoExecutionException( "Could not use jar " + artifact.getAbsolutePath(), e ); } } } } locator.addSearchPath( FileResourceLoader.ID, project.getFile().getParentFile().getAbsolutePath() ); if ( appendedResourcesDirectory != null ) { locator.addSearchPath( FileResourceLoader.ID, appendedResourcesDirectory.getAbsolutePath() ); } locator.addSearchPath( "url", "" ); locator.setOutputDirectory( new File( project.getBuild().getDirectory() ) ); } @SuppressWarnings( "unchecked" ) protected List getProjects() { List projects = new ArrayList(); // add filters in well known order, least specific to most specific FilterArtifacts filter = new FilterArtifacts(); Set artifacts = resolveProjectArtifacts(); if ( this.excludeTransitive ) { Set depArtifacts; if ( runOnlyAtExecutionRoot ) { depArtifacts = aggregateProjectDependencyArtifacts(); } else { depArtifacts = project.getDependencyArtifacts(); } filter.addFilter( new ProjectTransitivityFilter( depArtifacts, true ) ); } filter.addFilter( new ScopeFilter( this.includeScope, this.excludeScope ) ); filter.addFilter( new GroupIdFilter( this.includeGroupIds, this.excludeGroupIds ) ); filter.addFilter( new ArtifactIdFilter( this.includeArtifactIds, this.excludeArtifactIds ) ); // perform filtering try { artifacts = filter.filter( artifacts ); } catch ( ArtifactFilterException e ) { throw new IllegalStateException( e.getMessage(), e ); } for ( Artifact artifact : artifacts ) { try { List remoteRepo = remoteArtifactRepositories; if ( artifact.isSnapshot() ) { VersionRange rng = VersionRange.createFromVersion( artifact.getBaseVersion() ); artifact = artifactFactory.createDependencyArtifact( artifact.getGroupId(), artifact.getArtifactId(), rng, artifact.getType(), artifact.getClassifier(), artifact.getScope(), null, artifact.isOptional() ); } getLog().debug( "Building project for " + artifact ); MavenProject p; try { p = mavenProjectBuilder.buildFromRepository( artifact, remoteRepo, localRepository ); } catch ( InvalidProjectModelException e ) { getLog().warn( "Invalid project model for artifact [" + artifact.getArtifactId() + ":" + artifact.getGroupId() + ":" + artifact.getVersion() + "]. " + "It will be ignored by the remote resources Mojo." ); continue; } String supplementKey = generateSupplementMapKey( p.getModel().getGroupId(), p.getModel().getArtifactId() ); if ( supplementModels.containsKey( supplementKey ) ) { Model mergedModel = mergeModels( p.getModel(), supplementModels.get( supplementKey ) ); MavenProject mergedProject = new MavenProject( mergedModel ); projects.add( mergedProject ); mergedProject.setArtifact( artifact ); mergedProject.setVersion( artifact.getVersion() ); getLog().debug( "Adding project with groupId [" + mergedProject.getGroupId() + "] (supplemented)" ); } else { projects.add( p ); getLog().debug( "Adding project with groupId [" + p.getGroupId() + "]" ); } } catch ( ProjectBuildingException e ) { throw new IllegalStateException( e.getMessage(), e ); } } Collections.sort( projects, new ProjectComparator() ); return projects; } private Set resolveProjectArtifacts() { try { if ( runOnlyAtExecutionRoot ) { List projects = mavenSession.getSortedProjects(); return dependencyResolver.resolve( projects, Arrays.asList( resolveScopes ), mavenSession ); } else { return dependencyResolver.resolve( project, Arrays.asList( resolveScopes ), mavenSession ); } } catch ( ArtifactResolutionException e ) { throw new IllegalStateException( "Failed to resolve dependencies for one or more projects in the reactor. " + "Reason: " + e.getMessage(), e ); } catch ( ArtifactNotFoundException e ) { throw new IllegalStateException( "Failed to resolve dependencies for one or more projects in the reactor. " + "Reason: " + e.getMessage(), e ); } } @SuppressWarnings( "unchecked" ) private Set aggregateProjectDependencyArtifacts() { Set artifacts = new LinkedHashSet(); List projects = mavenSession.getSortedProjects(); for ( MavenProject p : projects ) { if ( p.getDependencyArtifacts() == null ) { try { Set depArtifacts = p.createArtifacts( artifactFactory, null, null ); if ( depArtifacts != null && !depArtifacts.isEmpty() ) { for ( Artifact artifact : depArtifacts ) { if ( artifact.getVersion() == null && artifact.getVersionRange() != null ) { // Version is required for equality comparison between artifacts, // but it is not needed for our purposes of filtering out // transitive dependencies (which requires only groupId/artifactId). // Therefore set an arbitrary version if missing. artifact.setResolvedVersion( Artifact.LATEST_VERSION ); } artifacts.add( artifact ); } } } catch ( InvalidDependencyVersionException e ) { throw new IllegalStateException( "Failed to create dependency artifacts for: " + p.getId() + ". Reason: " + e.getMessage(), e ); } } } return artifacts; } protected Map> getProjectsSortedByOrganization( List projects ) { Map> organizations = new TreeMap>( new OrganizationComparator() ); List unknownOrganization = new ArrayList(); for ( MavenProject p : projects ) { if ( p.getOrganization() != null && StringUtils.isNotEmpty( p.getOrganization().getName() ) ) { List sortedProjects = organizations.get( p.getOrganization() ); if ( sortedProjects == null ) { sortedProjects = new ArrayList(); } sortedProjects.add( p ); organizations.put( p.getOrganization(), sortedProjects ); } else { unknownOrganization.add( p ); } } if ( !unknownOrganization.isEmpty() ) { Organization unknownOrg = new Organization(); unknownOrg.setName( "an unknown organization" ); organizations.put( unknownOrg, unknownOrganization ); } return organizations; } protected boolean copyResourceIfExists( File file, String relFileName, VelocityContext context ) throws IOException, MojoExecutionException { for ( Resource resource : resources ) { File resourceDirectory = new File( resource.getDirectory() ); if ( !resourceDirectory.exists() ) { continue; } // TODO - really should use the resource includes/excludes and name mapping File source = new File( resourceDirectory, relFileName ); File templateSource = new File( resourceDirectory, relFileName + TEMPLATE_SUFFIX ); if ( !source.exists() && templateSource.exists() ) { source = templateSource; } if ( source.exists() && !source.equals( file ) ) { if ( source == templateSource ) { Reader reader = null; Writer writer = null; DeferredFileOutputStream os = new DeferredFileOutputStream( velocityFilterInMemoryThreshold, file ); try { if ( encoding != null ) { reader = new InputStreamReader( new FileInputStream( source ), encoding ); writer = new OutputStreamWriter( os, encoding ); } else { reader = ReaderFactory.newPlatformReader( source ); writer = WriterFactory.newPlatformWriter( os ); } velocity.evaluate( context, writer, "", reader ); writer.close(); writer = null; reader.close(); reader = null; } catch ( ParseErrorException e ) { throw new MojoExecutionException( "Error rendering velocity resource: " + source, e ); } catch ( MethodInvocationException e ) { throw new MojoExecutionException( "Error rendering velocity resource: " + source, e ); } catch ( ResourceNotFoundException e ) { throw new MojoExecutionException( "Error rendering velocity resource: " + source, e ); } finally { IOUtil.close( writer ); IOUtil.close( reader ); } fileWriteIfDiffers( os ); } else if ( resource.isFiltering() ) { MavenFileFilterRequest req = setupRequest( resource, source, file ); try { fileFilter.copyFile( req ); } catch ( MavenFilteringException e ) { throw new MojoExecutionException( "Error filtering resource: " + source, e ); } } else { FileUtils.copyFile( source, file ); } // exclude the original (so eclipse doesn't complain about duplicate resources) resource.addExclude( relFileName ); return true; } } return false; } /** * If the transformation result fits in memory and the destination file already exists * then both are compared. *

If destination file is byte-by-byte equal, then it is not overwritten. * This improves subsequent compilation times since upstream plugins property see that * the resource was not modified. *

Note: the method should be called after {@link org.apache.commons.io.output.DeferredFileOutputStream#close} * * @param outStream Deferred stream * @throws IOException */ private void fileWriteIfDiffers( DeferredFileOutputStream outStream ) throws IOException { File file = outStream.getFile(); if ( outStream.isThresholdExceeded() ) { getLog().info( "File " + file + " was overwritten due to content limit threshold " + outStream.getThreshold() + " reached" ); return; } boolean needOverwrite = true; if ( file.exists() ) { InputStream is = null; try { is = new FileInputStream( file ); final InputStream newContents = new ByteArrayInputStream( outStream.getData() ); needOverwrite = !IOUtil.contentEquals( is, newContents ); if ( getLog().isDebugEnabled() ) { getLog().debug( "File " + file + " contents " + ( needOverwrite ? "differs" : "does not differ" ) ); } is.close(); is = null; } finally { IOUtil.close( is ); } } if ( !needOverwrite ) { getLog().debug( "File " + file + " is up to date" ); return; } getLog().debug( "Writing " + file ); OutputStream os = new FileOutputStream( file ); try { outStream.writeTo( os ); os.close(); os = null; } finally { IOUtil.close( os ); } } private MavenFileFilterRequest setupRequest( Resource resource, File source, File file ) { MavenFileFilterRequest req = new MavenFileFilterRequest(); req.setFrom( source ); req.setTo( file ); req.setFiltering( resource.isFiltering() ); req.setMavenProject( project ); req.setMavenSession( mavenSession ); req.setInjectProjectBuildFilters( true ); if ( encoding != null ) { req.setEncoding( encoding ); } if ( filterDelimiters != null && !filterDelimiters.isEmpty() ) { LinkedHashSet delims = new LinkedHashSet(); if ( useDefaultFilterDelimiters ) { delims.addAll( req.getDelimiters() ); } for ( String delim : filterDelimiters ) { if ( delim == null ) { delims.add( "${*}" ); } else { delims.add( delim ); } } req.setDelimiters( delims ); } return req; } protected void validate() throws MojoExecutionException { int bundleCount = 1; for ( String artifactDescriptor : resourceBundles ) { // groupId:artifactId:version, groupId:artifactId:version:type // or groupId:artifactId:version:type:classifier String[] s = StringUtils.split( artifactDescriptor, ":" ); if ( s.length < 3 || s.length > 5 ) { String position; if ( bundleCount == 1 ) { position = "1st"; } else if ( bundleCount == 2 ) { position = "2nd"; } else if ( bundleCount == 3 ) { position = "3rd"; } else { position = bundleCount + "th"; } throw new MojoExecutionException( "The " + position + " resource bundle configured must specify a groupId, artifactId, " + " version and, optionally, type and classifier for a remote resource bundle. " + "Must be of the form groupId:artifactId:version, " + "groupId:artifactId:version:type or " + "groupId:artifactId:version:type:classifier" ); } bundleCount++; } } private static final String KEY_PROJECTS = "projects"; private static final String KEY_PROJECTS_ORGS = "projectsSortedByOrganization"; protected VelocityContext buildVelocityContext( Map properties ) throws MojoExecutionException { // the following properties are expensive to calculate, so we provide them lazily VelocityContext context = new VelocityContext( properties ) { @Override public Object internalGet( String key ) { Object result = super.internalGet( key ); if ( result == null && key != null && key.startsWith( KEY_PROJECTS ) && containsKey( key ) ) { // calculate and put projects* properties List projects = getProjects(); put( KEY_PROJECTS, projects ); put( KEY_PROJECTS_ORGS, getProjectsSortedByOrganization( projects ) ); return super.internalGet( key ); } return result; } }; // to have a consistent getKeys()/containsKey() behaviour, keys must be present from the start context.put( KEY_PROJECTS, null ); context.put( KEY_PROJECTS_ORGS, null ); // the following properties are cheap to calculate, so we provide them eagerly String inceptionYear = project.getInceptionYear(); String year = new SimpleDateFormat( "yyyy" ).format( new Date() ); if ( StringUtils.isEmpty( inceptionYear ) ) { if ( getLog().isDebugEnabled() ) { getLog().debug( "inceptionYear not specified, defaulting to " + year ); } inceptionYear = year; } context.put( "project", project ); context.put( "presentYear", year ); context.put( "locator", locator ); if ( inceptionYear.equals( year ) ) { context.put( "projectTimespan", year ); } else { context.put( "projectTimespan", inceptionYear + "-" + year ); } return context; } private List downloadBundles( List bundles ) throws MojoExecutionException { List bundleArtifacts = new ArrayList(); try { for ( String artifactDescriptor : bundles ) { getLog().info( "Preparing remote bundle " + artifactDescriptor ); // groupId:artifactId:version[:type[:classifier]] String[] s = artifactDescriptor.split( ":" ); File artifactFile = null; // check if the artifact is part of the reactor if ( mavenSession != null ) { List list = mavenSession.getSortedProjects(); for ( MavenProject p : list ) { if ( s[0].equals( p.getGroupId() ) && s[1].equals( p.getArtifactId() ) && s[2].equals( p.getVersion() ) ) { if ( s.length >= 4 && "test-jar".equals( s[3] ) ) { artifactFile = new File( p.getBuild().getTestOutputDirectory() ); } else { artifactFile = new File( p.getBuild().getOutputDirectory() ); } } } } if ( artifactFile == null || !artifactFile.exists() ) { String type = ( s.length >= 4 ? s[3] : "jar" ); String classifier = ( s.length == 5 ? s[4] : null ); Artifact artifact = artifactFactory.createDependencyArtifact( s[0], s[1], VersionRange.createFromVersion( s[2] ), type, classifier, Artifact.SCOPE_RUNTIME ); artifactResolver.resolve( artifact, remoteArtifactRepositories, localRepository ); artifactFile = artifact.getFile(); } bundleArtifacts.add( artifactFile ); } } catch ( ArtifactResolutionException e ) { throw new MojoExecutionException( "Error downloading resources archive.", e ); } catch ( ArtifactNotFoundException e ) { throw new MojoExecutionException( "Resources archive cannot be found.", e ); } return bundleArtifacts; } private ClassLoader initalizeClassloader( List artifacts ) throws MojoExecutionException { RemoteResourcesClassLoader cl = new RemoteResourcesClassLoader( null ); try { for ( File artifact : artifacts ) { cl.addURL( artifact.toURI().toURL() ); } return cl; } catch ( MalformedURLException e ) { throw new MojoExecutionException( "Unable to configure resources classloader: " + e.getMessage(), e ); } } protected void processResourceBundles( ClassLoader classLoader, VelocityContext context ) throws MojoExecutionException { List> remoteResources = new ArrayList>(); int bundleCount = 0; int resourceCount = 0; // list remote resources form bundles InputStream in = null; try { RemoteResourcesBundleXpp3Reader bundleReader = new RemoteResourcesBundleXpp3Reader(); for ( Enumeration e = classLoader.getResources( BundleRemoteResourcesMojo.RESOURCES_MANIFEST ); e.hasMoreElements(); ) { URL url = e.nextElement(); bundleCount++; getLog().debug( "processResourceBundle on bundle#" + bundleCount + " " + url ); in = url.openStream(); RemoteResourcesBundle bundle = bundleReader.read( in ); in.close(); in = null; int n = 0; for ( String bundleResource : bundle.getRemoteResources() ) { n++; resourceCount++; getLog().debug( "bundle#" + bundleCount + " resource#" + n + " " + bundleResource ); remoteResources.add( new AbstractMap.SimpleEntry( bundleResource, bundle ) ); } } } catch ( IOException ioe ) { throw new MojoExecutionException( "Error finding remote resources manifests", ioe ); } catch ( XmlPullParserException xppe ) { throw new MojoExecutionException( "Error parsing remote resource bundle descriptor.", xppe ); } finally { IOUtil.close( in ); } getLog().info( "Copying " + resourceCount + " resource" + ( ( resourceCount > 1 ) ? "s" : "" ) + " from " + bundleCount + " bundle" + ( ( bundleCount > 1 ) ? "s" : "" ) + "." ); String velocityResource = null; OutputStream out = null; Writer writer = null; Reader reader = null; try { for ( Map.Entry entry : remoteResources ) { String bundleResource = entry.getKey(); RemoteResourcesBundle bundle = entry.getValue(); String projectResource = bundleResource; boolean doVelocity = false; if ( projectResource.endsWith( TEMPLATE_SUFFIX ) ) { projectResource = projectResource.substring( 0, projectResource.length() - 3 ); velocityResource = bundleResource; doVelocity = true; } // Don't overwrite resource that are already being provided. File f = new File( outputDirectory, projectResource ); FileUtils.mkdir( f.getParentFile().getAbsolutePath() ); if ( !copyResourceIfExists( f, projectResource, context ) ) { if ( doVelocity ) { DeferredFileOutputStream os = new DeferredFileOutputStream( velocityFilterInMemoryThreshold, f ); writer = bundle.getSourceEncoding() == null ? new OutputStreamWriter( os ) : new OutputStreamWriter( os, bundle.getSourceEncoding() ); if ( bundle.getSourceEncoding() == null ) { // TODO: Is this correct? Shouldn't we behave like the rest of maven and fail // down to JVM default instead ISO-8859-1 ? velocity.mergeTemplate( bundleResource, "ISO-8859-1", context, writer ); } else { velocity.mergeTemplate( bundleResource, bundle.getSourceEncoding(), context, writer ); } writer.close(); writer = null; fileWriteIfDiffers( os ); } else { URL resUrl = classLoader.getResource( bundleResource ); if ( resUrl != null ) { FileUtils.copyURLToFile( resUrl, f ); } } File appendedResourceFile = new File( appendedResourcesDirectory, projectResource ); File appendedVmResourceFile = new File( appendedResourcesDirectory, projectResource + ".vm" ); if ( appendedResourceFile.exists() ) { getLog().info( "Copying appended resource: " + projectResource ); in = new FileInputStream( appendedResourceFile ); out = new FileOutputStream( f, true ); IOUtil.copy( in, out ); out.close(); out = null; in.close(); in = null; } else if ( appendedVmResourceFile.exists() ) { getLog().info( "Filtering appended resource: " + projectResource + ".vm" ); reader = new FileReader( appendedVmResourceFile ); if ( bundle.getSourceEncoding() == null ) { writer = new PrintWriter( new FileWriter( f, true ) ); } else { writer = new PrintWriter( new OutputStreamWriter( new FileOutputStream( f, true ), bundle.getSourceEncoding() ) ); } Velocity.init(); Velocity.evaluate( context, writer, "remote-resources", reader ); writer.close(); writer = null; reader.close(); reader = null; } } } } catch ( IOException ioe ) { throw new MojoExecutionException( "Error reading remote resource", ioe ); } catch ( VelocityException e ) { throw new MojoExecutionException( "Error rendering Velocity resource '" + velocityResource + "'", e ); } finally { IOUtil.close( out ); IOUtil.close( in ); IOUtil.close( writer ); IOUtil.close( reader ); } } protected Model getSupplement( Xpp3Dom supplementModelXml ) throws MojoExecutionException { MavenXpp3Reader modelReader = new MavenXpp3Reader(); Model model = null; try { model = modelReader.read( new StringReader( supplementModelXml.toString() ) ); String groupId = model.getGroupId(); String artifactId = model.getArtifactId(); if ( groupId == null || groupId.trim().equals( "" ) ) { throw new MojoExecutionException( "Supplemental project XML " + "requires that a element be present." ); } if ( artifactId == null || artifactId.trim().equals( "" ) ) { throw new MojoExecutionException( "Supplemental project XML " + "requires that a element be present." ); } } catch ( IOException e ) { getLog().warn( "Unable to read supplemental XML: " + e.getMessage(), e ); } catch ( XmlPullParserException e ) { getLog().warn( "Unable to parse supplemental XML: " + e.getMessage(), e ); } return model; } protected Model mergeModels( Model parent, Model child ) { inheritanceAssembler.assembleModelInheritance( child, parent ); return child; } private static String generateSupplementMapKey( String groupId, String artifactId ) { return groupId.trim() + ":" + artifactId.trim(); } private Map loadSupplements( String models[] ) throws MojoExecutionException { if ( models == null ) { getLog().debug( "Supplemental data models won't be loaded. " + "No models specified." ); return Collections.emptyMap(); } List supplements = new ArrayList(); for ( String set : models ) { getLog().debug( "Preparing ruleset: " + set ); try { File f = locator.getResourceAsFile( set, getLocationTemp( set ) ); if ( null == f || !f.exists() ) { throw new MojoExecutionException( "Cold not resolve " + set ); } if ( !f.canRead() ) { throw new MojoExecutionException( "Supplemental data models won't be loaded. " + "File " + f.getAbsolutePath() + " cannot be read, check permissions on the file." ); } getLog().debug( "Loading supplemental models from " + f.getAbsolutePath() ); SupplementalDataModelXpp3Reader reader = new SupplementalDataModelXpp3Reader(); SupplementalDataModel supplementalModel = reader.read( new FileReader( f ) ); supplements.addAll( supplementalModel.getSupplement() ); } catch ( Exception e ) { String msg = "Error loading supplemental data models: " + e.getMessage(); getLog().error( msg, e ); throw new MojoExecutionException( msg, e ); } } getLog().debug( "Loading supplements complete." ); Map supplementMap = new HashMap(); for ( Supplement sd : supplements ) { Xpp3Dom dom = (Xpp3Dom) sd.getProject(); Model m = getSupplement( dom ); supplementMap.put( generateSupplementMapKey( m.getGroupId(), m.getArtifactId() ), m ); } return supplementMap; } /** * Convenience method to get the location of the specified file name. * * @param name the name of the file whose location is to be resolved * @return a String that contains the absolute file name of the file */ private String getLocationTemp( String name ) { String loc = name; if ( loc.indexOf( '/' ) != -1 ) { loc = loc.substring( loc.lastIndexOf( '/' ) + 1 ); } if ( loc.indexOf( '\\' ) != -1 ) { loc = loc.substring( loc.lastIndexOf( '\\' ) + 1 ); } getLog().debug( "Before: " + name + " After: " + loc ); return loc; } class OrganizationComparator implements Comparator { public int compare( Organization org1, Organization org2 ) { int i = compareStrings( org1.getName(), org2.getName() ); if ( i == 0 ) { i = compareStrings( org1.getUrl(), org2.getUrl() ); } return i; } public boolean equals( Organization o1, Organization o2 ) { return compare( o1, o2 ) == 0; } private int compareStrings( String s1, String s2 ) { if ( s1 == null && s2 == null ) { return 0; } else if ( s1 == null && s2 != null ) { return 1; } else if ( s1 != null && s2 == null ) { return -1; } return s1.compareToIgnoreCase( s2 ); } } class ProjectComparator implements Comparator { public int compare( MavenProject p1, MavenProject p2 ) { return p1.getArtifact().compareTo( p2.getArtifact() ); } public boolean equals( MavenProject p1, MavenProject p2 ) { return p1.getArtifact().equals( p2.getArtifact() ); } } /* LogChute methods */ public void init( RuntimeServices rs ) throws Exception { } public void log( int level, String message ) { switch ( level ) { case LogChute.WARN_ID: getLog().warn( message ); break; case LogChute.INFO_ID: // velocity info messages are too verbose, just consider them as debug messages... getLog().debug( message ); break; case LogChute.DEBUG_ID: getLog().debug( message ); break; case LogChute.ERROR_ID: getLog().error( message ); break; default: getLog().debug( message ); break; } } public void log( int level, String message, Throwable t ) { switch ( level ) { case LogChute.WARN_ID: getLog().warn( message, t ); break; case LogChute.INFO_ID: // velocity info messages are too verbose, just consider them as debug messages... getLog().debug( message, t ); break; case LogChute.DEBUG_ID: getLog().debug( message, t ); break; case LogChute.ERROR_ID: getLog().error( message, t ); break; default: getLog().debug( message, t ); break; } } public boolean isLevelEnabled( int level ) { return false; } } maven-remote-resources-plugin-1.6.0/src/main/mdo/0000775000175000017500000000000013365361410021571 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/main/mdo/remote-resources.mdo0000664000175000017500000000471313365361410025602 0ustar mathieumathieu remote-resources RemoteResourcesBundle META-INF/maven/remote-resources.xml. ]]> package org.apache.maven.plugin.resources.remote RemoteResourcesBundle 1.1.0 Root element of the remote-resources.xml file. remoteResources 1.1.0 String * sourceEncoding 1.1.0 String maven-remote-resources-plugin-1.6.0/src/main/mdo/supplemental-model.mdo0000664000175000017500000000477013365361410026111 0ustar mathieumathieu supplemental-model SupplementalDataModel Provides access to supplemental POM data models. package org.apache.maven.plugin.resources.remote SupplementalDataModel 1.0.0 Root element of the supplemental-models.xml file. supplement 1.0.0 Snippets of POM xml files used to supplement the data model. Supplement * Supplement 1.0.0 A single supplement project 1.0.0 Snippets of POM xml files used to supplement the data model. DOM maven-remote-resources-plugin-1.6.0/src/it/0000775000175000017500000000000013365361410020502 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/0000775000175000017500000000000013365361410026066 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/0000775000175000017500000000000013365361410026655 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/0000775000175000017500000000000013365361410027601 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/0000775000175000017500000000000013365361410030522 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/org/0000775000175000017500000000000013365361410031311 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/org/apache/0000775000175000017500000000000013365361410032532 5ustar mathieumathieu././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/org/apache/mave0000775000175000017500000000000013365361410033403 5ustar mathieumathieu././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/org/apache/maven/MyMojo.javamaven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/src/main/java/org/apache/mave0000664000175000017500000000360013365361410033404 0ustar mathieumathieupackage org.apache.maven; /* * Copyright 2001-2005 The Apache Software Foundation. * * 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. */ import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import java.io.File; import java.io.FileWriter; import java.io.IOException; /** * Goal which touches a timestamp file. * * @goal touch * * @phase process-sources */ public class MyMojo extends AbstractMojo { /** * Location of the file. * @parameter expression="${project.build.directory}" * @required */ private File outputDirectory; public void execute() throws MojoExecutionException { File f = outputDirectory; if ( !f.exists() ) { f.mkdirs(); } File touch = new File( f, "touch.txt" ); FileWriter w = null; try { w = new FileWriter( touch ); w.write( "touch.txt" ); } catch ( IOException e ) { throw new MojoExecutionException( "Error creating file " + touch, e ); } finally { if ( w != null ) { try { w.close(); } catch ( IOException e ) { // ignore } } } } } maven-remote-resources-plugin-1.6.0/src/it/maven-remote-resources-test/pom.xml0000664000175000017500000000450013365361410027402 0ustar mathieumathieu 4.0.0 org.apache.maven maven-remote-resources-test 1.0-SNAPSHOT http://maven.apache.org 2001 org.apache.maven maven-plugin-api 2.0 junit junit 3.8.1 test org.apache.maven.plugins maven-remote-resources-plugin @project.version@ org.apache:apache-distribution-resources:1.0-SNAPSHOT org.apache.maven.plugins:maven-remote-resources-plugin:@project.version@ process maven-remote-resources-plugin-1.6.0/src/it/resources/0000775000175000017500000000000013365361410022514 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/it-parent/0000775000175000017500000000000013365361410024417 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/it-parent/pom.xml0000664000175000017500000000452613365361410025743 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} pom it-remote file:${remoteRepository} true true main-local file:${localRepository} true true it-remote file:${remoteRepository} maven-remote-resources-plugin ${project.version} maven-compiler-plugin 3.8.0 6 6 maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/0000775000175000017500000000000013365361410026516 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/0000775000175000017500000000000013365361410027305 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/0000775000175000017500000000000013365361410030231 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/0000775000175000017500000000000013365361410031152 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/0000775000175000017500000000000013365361410031741 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/0000775000175000017500000000000013365361410033162 5ustar mathieumathieu././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/m0000775000175000017500000000000013365361410033337 5ustar mathieumathieu././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/maven/plugin/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/m0000775000175000017500000000000013365361410033337 5ustar mathieumathieu././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/maven/plugin/rresource/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/m0000775000175000017500000000000013365361410033337 5ustar mathieumathieu././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/maven/plugin/rresource/it/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/m0000775000175000017500000000000013365361410033337 5ustar mathieumathieu././@LongLink0000644000000000000000000000020600000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/maven/plugin/rresource/it/App.javamaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/src/main/java/org/apache/m0000664000175000017500000000175613365361410033352 0ustar mathieumathieupackage org.apache.maven.plugin.rresource.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle/pom.xml0000664000175000017500000000362013365361410030034 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml generate-from-bundle maven-remote-resources-plugin remote-resources process org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/0000775000175000017500000000000013365361410027064 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/0000775000175000017500000000000013365361410027653 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/0000775000175000017500000000000013365361410030577 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/resources/0000775000175000017500000000000013365361410032611 5ustar mathieumathieu././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/resources/DEPENDENCIES.vmmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/resources/DEPEN0000664000175000017500000000154213365361410033371 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Override: #if ($projectName)$projectName#else${project.name}#end maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/0000775000175000017500000000000013365361410031520 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/0000775000175000017500000000000013365361410032307 5ustar mathieumathieu././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache0000775000175000017500000000000013365361410033451 5ustar mathieumathieu././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache0000775000175000017500000000000013365361410033451 5ustar mathieumathieu././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache/maven/plugin/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache0000775000175000017500000000000013365361410033451 5ustar mathieumathieu././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache/maven/plugin/rresource/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache0000775000175000017500000000000013365361410033451 5ustar mathieumathieu././@LongLink0000644000000000000000000000020000000000000011573 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache/maven/plugin/rresource/it/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache0000775000175000017500000000000013365361410033451 5ustar mathieumathieu././@LongLink0000644000000000000000000000021000000000000011574 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache/maven/plugin/rresource/it/App.javamaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/src/main/java/org/apache0000664000175000017500000000175713365361410033465 0ustar mathieumathieupackage org.apache.maven.plugin.rresource.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-override/pom.xml0000664000175000017500000000362213365361410030404 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml generate-from-override maven-remote-resources-plugin remote-resources process org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/0000775000175000017500000000000013365361410026401 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/0000775000175000017500000000000013365361410027170 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/0000775000175000017500000000000013365361410030114 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/resources/0000775000175000017500000000000013365361410032126 5ustar mathieumathieu././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/resources/DEPENDENCIESmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/resources/DEPENDEN0000664000175000017500000000150113365361410033230 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Override: ${project.artifactId} maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/0000775000175000017500000000000013365361410031035 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/0000775000175000017500000000000013365361410031624 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/0000775000175000017500000000000013365361410033045 5ustar mathieumathieu././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/ma0000775000175000017500000000000013365361410033363 5ustar mathieumathieu././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/maven/plugin/maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/ma0000775000175000017500000000000013365361410033363 5ustar mathieumathieu././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/maven/plugin/rresource/maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/ma0000775000175000017500000000000013365361410033363 5ustar mathieumathieu././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/maven/plugin/rresource/it/maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/ma0000775000175000017500000000000013365361410033363 5ustar mathieumathieu././@LongLink0000644000000000000000000000020500000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/maven/plugin/rresource/it/App.javamaven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/src/main/java/org/apache/ma0000664000175000017500000000176013365361410033371 0ustar mathieumathieupackage org.apache.maven.plugin.rresource.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-remote-resources-plugin-1.6.0/src/it/resources/custom-filter-delim/pom.xml0000664000175000017500000000443413365361410027723 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml custom-filter-delim src/main/resources true maven-remote-resources-plugin remote-resources validate process org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} ${*} false maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/0000775000175000017500000000000013365361410027020 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/0000775000175000017500000000000013365361410032476 5ustar mathieumathieu././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplemental-models/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplem0000775000175000017500000000000013365361410034104 5ustar mathieumathieu././@LongLink0000644000000000000000000000016600000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplemental-models/src/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplem0000775000175000017500000000000013365361410034104 5ustar mathieumathieu././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplemental-models/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplem0000775000175000017500000000000013365361410034104 5ustar mathieumathieu././@LongLink0000644000000000000000000000020500000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplemental-models/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplem0000775000175000017500000000000013365361410034104 5ustar mathieumathieu././@LongLink0000644000000000000000000000023400000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplemental-models/src/main/resources/supplemental-models.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplem0000664000175000017500000000236513365361410034114 0ustar mathieumathieu org.apache.maven.plugin.rresource.it.mrr43 deficient-dep Deficient Dependency http://www.deficient-tools.us/dep Deficient Tooling, Inc. http://www.deficient-tools.us/ ././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplemental-models/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/supplem0000664000175000017500000000236013365361410034107 0ustar mathieumathieu 4.0.0 resources org.apache.maven.plugin.rresource.it.mrr43 1 supplemental-models ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000020500000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/apache/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000021300000000000011577 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000022000000000000011575 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/apache/maven/test/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000022700000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/apache/maven/test/plugin/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000023500000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/apache/maven/test/plugin/mrr43/maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000775000175000017500000000000013365361410034007 5ustar mathieumathieu././@LongLink0000644000000000000000000000024500000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/src/main/java/org/apache/maven/test/plugin/mrr43/Dep.javamaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000664000175000017500000000175313365361410034017 0ustar mathieumathieupackage org.apache.maven.test.plugin.mrr43; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /** * Hello world! * */ public class Dep { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficient-dep/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/deficie0000664000175000017500000000235113365361410034012 0ustar mathieumathieu 4.0.0 resources org.apache.maven.plugin.rresource.it.mrr43 1 deficient-dep maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/resource-projects/pom.xml0000664000175000017500000000342313365361410034015 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.mrr43 resources 1 pom supplemental-models deficient-dep maven-compiler-plugin 3.8.0 6 6 it-remote file:${remoteRepository} maven-remote-resources-plugin-1.6.0/src/it/resources/supplemental-artifact/pom.xml0000664000175000017500000000501613365361410030337 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml supplemental-artifact Supplemental Artifact Consumer org.apache.maven.plugin.rresource.it.mrr43 deficient-dep 1 maven-remote-resources-plugin process supplemental-models.xml org.apache.maven.plugin.rresource.it.mrr43:supplemental-models:1 org.apache.maven.plugin.rresource.it:resource-bundle-with-org-processing:${project.version} maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/0000775000175000017500000000000013365361410027236 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/project/0000775000175000017500000000000013365361410030704 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/project/pom.xml0000664000175000017500000000436113365361410032225 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../../it-parent/pom.xml get-dependency-projects org.apache.maven.plugin.rresource.it.gdp release 1.0 org.apache.maven.plugin.rresource.it.gdp snapshot 1.0-SNAPSHOT maven-remote-resources-plugin remote-resources process org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/0000775000175000017500000000000013365361410030656 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/src/0000775000175000017500000000000013365361410031445 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/src/main/0000775000175000017500000000000013365361410032371 5ustar mathieumathieu././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/src/main/resour0000775000175000017500000000000013365361410033631 5ustar mathieumathieu././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/src/main/resources/some.propertiesmaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/src/main/resour0000664000175000017500000000147713365361410033644 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # just to make the project's JAR isn't empty maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/release/pom.xml0000664000175000017500000000257413365361410032203 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.gdp release 1.0 jar Released Dependency main-local file:${localRepository} it-remote file:${remoteRepository} maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/pom.xml0000664000175000017500000000265313365361410030561 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it aggregator 1.0 pom release snapshot it-remote file:${remoteRepository} maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/0000775000175000017500000000000013365361410031075 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/src/0000775000175000017500000000000013365361410031664 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/src/main/0000775000175000017500000000000013365361410032610 5ustar mathieumathieu././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/src/main/resou0000775000175000017500000000000013365361410033666 5ustar mathieumathieu././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/src/main/resources/some.propertiesmaven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/src/main/resou0000664000175000017500000000147713365361410033701 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # just to make the project's JAR isn't empty maven-remote-resources-plugin-1.6.0/src/it/resources/get-dependency-projects/snapshot/pom.xml0000664000175000017500000000260213365361410032412 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.gdp snapshot 1.0-SNAPSHOT jar Snapshot Dependency main-local file:${localRepository} it-remote file:${remoteRepository} maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/0000775000175000017500000000000013365361410026706 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/0000775000175000017500000000000013365361410027475 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/0000775000175000017500000000000013365361410030421 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/resources/0000775000175000017500000000000013365361410032433 5ustar mathieumathieu././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/resources/DEPENDENCIESmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/resources/DEPEND0000664000175000017500000000150113365361410033312 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Override: #{project.artifactId} maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/0000775000175000017500000000000013365361410031342 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/0000775000175000017500000000000013365361410032131 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/0000775000175000017500000000000013365361410033352 5ustar mathieumathieu././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/0000775000175000017500000000000013365361410033352 5ustar mathieumathieu././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/maven/plugin/maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/0000775000175000017500000000000013365361410033352 5ustar mathieumathieu././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/maven/plugin/rresource/maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/0000775000175000017500000000000013365361410033352 5ustar mathieumathieu././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/maven/plugin/rresource/it/maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/0000775000175000017500000000000013365361410033352 5ustar mathieumathieu././@LongLink0000644000000000000000000000020700000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/maven/plugin/rresource/it/App.javamaven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/src/main/java/org/apache/0000664000175000017500000000175613365361410033365 0ustar mathieumathieupackage org.apache.maven.plugin.rresource.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-remote-resources-plugin-1.6.0/src/it/resources/filter-local-override/pom.xml0000664000175000017500000000437213365361410030231 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml filter-local-override src/main/resources true maven-remote-resources-plugin remote-resources process org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} #{*} false maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/0000775000175000017500000000000013365361410024531 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/0000775000175000017500000000000013365361410033537 5ustar mathieumathieu././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/src/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/s0000775000175000017500000000000013365361410033722 5ustar mathieumathieu././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/s0000775000175000017500000000000013365361410033722 5ustar mathieumathieu././@LongLink0000644000000000000000000000016700000000000011607 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/s0000775000175000017500000000000013365361410033722 5ustar mathieumathieu././@LongLink0000644000000000000000000000020600000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/src/main/resources/DEPENDENCIES.vmmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/s0000664000175000017500000000224613365361410033730 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Built-In: #if ($projectName)$projectName#else${project.name}#end #foreach ( $organizationName in $projectsSortedByOrganization.keySet() ) From: '$organizationName.name'#if($organizationName.url) ($organizationName.url)#end #foreach ( $project in $projectsSortedByOrganization.get( $organizationName ) ) - $project.name #if ($project.url)($project.url)#end $project.artifact #end #end././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-org-processing/p0000664000175000017500000000350313365361410033722 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it bootstrap ${project.version} resource-bundle-with-org-processing Resource Bundle with Organization Processing maven-remote-resources-plugin 1.0 bundle ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classifier/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classif0000775000175000017500000000000013365361410033662 5ustar mathieumathieu././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classifier/src/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classif0000775000175000017500000000000013365361410033662 5ustar mathieumathieu././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classifier/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classif0000775000175000017500000000000013365361410033662 5ustar mathieumathieu././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classifier/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classif0000775000175000017500000000000013365361410033662 5ustar mathieumathieu././@LongLink0000644000000000000000000000021300000000000011577 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classifier/src/main/resources/DEPENDENCIES.vmmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classif0000664000175000017500000000166713365361410033676 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Built-In: #if ($projectName)$projectName#else${project.name}#end #foreach( $p in $projects ) Dependency Id: $p.groupId:$p.artifactId:$p.version #end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classifier/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-type-and-classif0000664000175000017500000000401313365361410033662 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it bootstrap ${project.version} resource-bundle-with-type-and-classifier jar Resource Bundle with a Type and Classifier maven-remote-resources-plugin 1.0 bundle maven-jar-plugin test maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/pom.xml0000664000175000017500000000343513365361410026053 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it bootstrap ${project.version} pom IT Bootstrap it-remote file:${remoteRepository} main-local file:${localRepository} resource-bundle-with-template resource-bundle-with-org-processing resource-bundle-with-type-and-classifier maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/0000775000175000017500000000000013365361410032411 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/0000775000175000017500000000000013365361410033200 5ustar mathieumathieu././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/mai0000775000175000017500000000000013365361410033667 5ustar mathieumathieu././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/mai0000775000175000017500000000000013365361410033667 5ustar mathieumathieu././@LongLink0000644000000000000000000000020000000000000011573 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/main/resources/DEPENDENCIES.vmmaven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/src/mai0000664000175000017500000000166713365361410033703 0ustar mathieumathieu## Licensed to the Apache Software Foundation (ASF) under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. The ASF licenses this file ## to you 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. Built-In: #if ($projectName)$projectName#else${project.name}#end #foreach( $p in $projects ) Dependency Id: $p.groupId:$p.artifactId:$p.version #end maven-remote-resources-plugin-1.6.0/src/it/resources/bootstrap/resource-bundle-with-template/pom.xml0000664000175000017500000000346013365361410033731 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it bootstrap ${project.version} resource-bundle-with-template Resource Bundle with a Template maven-remote-resources-plugin 1.0 bundle maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/0000775000175000017500000000000013365361410027663 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/child2/0000775000175000017500000000000013365361410031030 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/child2/pom.xml0000664000175000017500000000313513365361410032347 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.mrr41 parent ${project.version} child-2 org.apache.maven.plugin.rresource.it.mrr41 child-1 ${project.version} org.apache.maven.plugin.rresource.it.mrr41 snapshot 1.0-SNAPSHOT maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/0000775000175000017500000000000013365361410033341 5ustar mathieumathieu././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/release/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/re0000775000175000017500000000000013365361410033670 5ustar mathieumathieu././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/release/src/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/re0000775000175000017500000000000013365361410033670 5ustar mathieumathieu././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/release/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/re0000775000175000017500000000000013365361410033670 5ustar mathieumathieu././@LongLink0000644000000000000000000000017600000000000011607 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/release/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/re0000775000175000017500000000000013365361410033670 5ustar mathieumathieu././@LongLink0000644000000000000000000000021500000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/release/src/main/resources/some.propertiesmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/re0000664000175000017500000000147713365361410033703 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # just to make the project's JAR isn't empty ././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/release/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/re0000664000175000017500000000257613365361410033704 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.mrr41 release 1.0 jar Released Dependency main-local file:${localRepository} it-remote file:${remoteRepository} ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/po0000664000175000017500000000261213365361410033703 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.mrr41 aggregator 1.0 pom release snapshot it-remote file:${remoteRepository} ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/snapshot/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/sn0000775000175000017500000000000013365361410033702 5ustar mathieumathieu././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/snapshot/src/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/sn0000775000175000017500000000000013365361410033702 5ustar mathieumathieu././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/snapshot/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/sn0000775000175000017500000000000013365361410033702 5ustar mathieumathieu././@LongLink0000644000000000000000000000017700000000000011610 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/snapshot/src/main/resources/maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/sn0000775000175000017500000000000013365361410033702 5ustar mathieumathieu././@LongLink0000644000000000000000000000021600000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/snapshot/src/main/resources/some.propertiesmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/sn0000664000175000017500000000147713365361410033715 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # just to make the project's JAR isn't empty ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/snapshot/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/resource-projects/sn0000664000175000017500000000260413365361410033706 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.mrr41 snapshot 1.0-SNAPSHOT jar Snapshot Dependency main-local file:${localRepository} it-remote file:${remoteRepository} maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/child1/0000775000175000017500000000000013365361410031027 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/child1/pom.xml0000664000175000017500000000263113365361410032346 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it.mrr41 parent ${project.version} child-1 org.apache.maven.plugin.rresource.it.mrr41 release 1.0 maven-remote-resources-plugin-1.6.0/src/it/resources/run-only-at-execution-root/pom.xml0000664000175000017500000000417213365361410031204 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml org.apache.maven.plugin.rresource.it.mrr41 parent pom child1 child2 maven-remote-resources-plugin remote-resources process true org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/0000775000175000017500000000000013365361410033330 5ustar mathieumathieu././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000016600000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/apache/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000020300000000000011576 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/apache/maven/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000021200000000000011576 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/apache/maven/plugin/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000022400000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/apache/maven/plugin/rresource/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000022700000000000011604 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/apache/maven/plugin/rresource/it/maven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000775000175000017500000000000013365361410033513 5ustar mathieumathieu././@LongLink0000644000000000000000000000023700000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/src/main/java/org/apache/maven/plugin/rresource/it/App.javamaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/s0000664000175000017500000000176013365361410033521 0ustar mathieumathieupackage org.apache.maven.plugin.rresource.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/pom.xmlmaven-remote-resources-plugin-1.6.0/src/it/resources/generate-from-bundle-with-type-and-classifier/p0000664000175000017500000000367513365361410033525 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml generate-from-bundle-with-type-and-classifier maven-remote-resources-plugin remote-resources process org.apache.maven.plugin.rresource.it:resource-bundle-with-type-and-classifier:${project.version}:jar:test maven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/0000775000175000017500000000000013365361410026332 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/0000775000175000017500000000000013365361410027277 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/0000775000175000017500000000000013365361410030256 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/pom/0000775000175000017500000000000013365361410031051 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/pom/0.2/0000775000175000017500000000000013365361410031350 5ustar mathieumathieu././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/pom/0.2/pom-0.2.pommaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/pom/0.2/pom-0.2.p0000664000175000017500000000165713365361410032632 0ustar mathieumathieu 4.0.0 test pom 0.2 ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/pom/0.2/pom-0.2.jarmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/pom/0.2/pom-0.2.j0000664000175000017500000000053113365361410032612 0ustar mathieumathieuPKs]; META-INF/þÊPKPKs];META-INF/MANIFEST.MFóMÌËLK-.Ñ K-*ÎÌϳR0Ô3àår.JM,IMÑuª ˜éĘ+h—æ)øf&åW—¤æ+xæ%ëiòrñrPK”[ØGGPKs]; META-INF/þÊPKs];”[ØGG=META-INF/MANIFEST.MFPK}Æmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/invalid/0000775000175000017500000000000013365361410031704 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/invalid/0.1/0000775000175000017500000000000013365361410032202 5ustar mathieumathieu././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/invalid/0.1/invalid-0.1.jarmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/invalid/0.1/inval0000664000175000017500000000053113365361410033235 0ustar mathieumathieuPKs]; META-INF/þÊPKPKs];META-INF/MANIFEST.MFóMÌËLK-.Ñ K-*ÎÌϳR0Ô3àår.JM,IMÑuª ˜éĘ+h—æ)øf&åW—¤æ+xæ%ëiòrñrPK”[ØGGPKs]; META-INF/þÊPKs];”[ØGG=META-INF/MANIFEST.MFPK}Æ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/invalid/0.1/invalid-0.1.pommaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/invalid/0.1/inval0000664000175000017500000000207513365361410033242 0ustar mathieumathieu 4.0.0 test invalid 0.1 test unversioned maven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/missing/0000775000175000017500000000000013365361410031727 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/missing/0.1/0000775000175000017500000000000013365361410032225 5ustar mathieumathieu././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/missing/0.1/missing-0.1.jarmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/repo/test/missing/0.1/missi0000664000175000017500000000053113365361410033273 0ustar mathieumathieuPKs]; META-INF/þÊPKPKs];META-INF/MANIFEST.MFóMÌËLK-.Ñ K-*ÎÌϳR0Ô3àår.JM,IMÑuª ˜éĘ+h—æ)øf&åW—¤æ+xæ%ëiòrñrPK”[ØGGPKs]; META-INF/þÊPKs];”[ØGG=META-INF/MANIFEST.MFPK}Æmaven-remote-resources-plugin-1.6.0/src/it/resources/bad-dependency-poms/pom.xml0000664000175000017500000000510213365361410027645 0ustar mathieumathieu 4.0.0 org.apache.maven.plugin.rresource.it it-parent ${project.version} ../it-parent/pom.xml test 1.0 test file:///${it.dir}/repo test pom 0.2 test missing 0.1 test invalid 0.1 maven-remote-resources-plugin remote-resources process org.apache.maven.plugin.rresource.it:resource-bundle-with-template:${project.version} maven-remote-resources-plugin-1.6.0/src/it/settings.xml0000664000175000017500000000317413365361410023071 0ustar mathieumathieu it-repo true local.central @localRepositoryUrl@ true true local.central @localRepositoryUrl@ true true maven-remote-resources-plugin-1.6.0/src/it/process/0000775000175000017500000000000013365361410022160 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/process/src/0000775000175000017500000000000013365361410022747 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/process/src/main/0000775000175000017500000000000013365361410023673 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/process/src/main/resources/0000775000175000017500000000000013365361410025705 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/process/src/main/resources/common2.txt0000664000175000017500000000145513365361410030025 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. using project's resource maven-remote-resources-plugin-1.6.0/src/it/process/verify.groovy0000664000175000017500000000254113365361410024735 0ustar mathieumathieu/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ dir = new File( basedir, 'target/maven-shared-archive-resources' ) assert new File( dir, 'a/a.txt' ).text.contains( 'mrrp-bundle-a' ) assert new File( dir, 'b/b.txt' ).text.contains( 'mrrp-bundle-b' ) assert new File( dir, 'common.txt' ).text.contains( 'mrrp-bundle-a' ) // bundle a is first in classpath assert new File( dir, 'common-vm.txt' ).text.contains( 'mrrp-bundle-a org.apache.maven.its:mrrp-process' ) assert new File( dir, 'common2.txt' ).text.contains( 'using project\'s resource' ) // bundle content overridden by local project's resources return true;maven-remote-resources-plugin-1.6.0/src/it/process/invoker.properties0000664000175000017500000000146713365361410025763 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. invoker.goals = generate-resources maven-remote-resources-plugin-1.6.0/src/it/process/pom.xml0000664000175000017500000000372713365361410023506 0ustar mathieumathieu 4.0.0 org.apache.maven.its mrrp-process 1.0-SNAPSHOT pom UTF-8 org.apache.maven.plugins maven-remote-resources-plugin @project.version@ org.apache.maven.its:mrrp-bundle-a:1.0-SNAPSHOT org.apache.maven.its:mrrp-bundle-b:1.0-SNAPSHOT process maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/0000775000175000017500000000000013365361410023111 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/0000775000175000017500000000000013365361410025556 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/0000775000175000017500000000000013365361410026345 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/0000775000175000017500000000000013365361410027271 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/0000775000175000017500000000000013365361410031303 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/a/0000775000175000017500000000000013365361410031523 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/a/a.txt0000664000175000017500000000144213365361410032505 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-a ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/common-vm.txt.vmmaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/common-vm.t0000664000175000017500000000151313365361410033400 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-a ${project.groupId}:${project.artifactId} maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/common.txt0000664000175000017500000000144213365361410033335 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-a maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/src/main/resources/common2.txt0000664000175000017500000000144413365361410033421 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-a 2 maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-a/pom.xml0000664000175000017500000000242213365361410027073 0ustar mathieumathieu 4.0.0 org.apache.maven.its mrrp-bundle-parent 1.0-SNAPSHOT ../pom.xml mrrp-bundle-a maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/invoker.properties0000664000175000017500000000145413365361410026710 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. invoker.goals = install maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/pom.xml0000664000175000017500000000343013365361410024426 0ustar mathieumathieu 4.0.0 org.apache.maven.its mrrp-bundle-parent 1.0-SNAPSHOT pom mrrp-bundle-a mrrp-bundle-b UTF-8 org.apache.maven.plugins maven-remote-resources-plugin @project.version@ bundle maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/0000775000175000017500000000000013365361410025557 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/0000775000175000017500000000000013365361410026346 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/0000775000175000017500000000000013365361410027272 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/0000775000175000017500000000000013365361410031304 5ustar mathieumathieu././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootmaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/common-vm.txt.vmmaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/common-vm.t0000664000175000017500000000151313365361410033401 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-b ${project.groupId}:${project.artifactId} maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/common.txt0000664000175000017500000000144213365361410033336 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-b maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/common2.txt0000664000175000017500000000144413365361410033422 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-b 2 maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/b/0000775000175000017500000000000013365361410031525 5ustar mathieumathieumaven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/src/main/resources/b/b.txt0000664000175000017500000000144213365361410032510 0ustar mathieumathieu# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. mrrp-bundle-b maven-remote-resources-plugin-1.6.0/src/it/setup-bundle/mrrp-bundle-b/pom.xml0000664000175000017500000000242213365361410027074 0ustar mathieumathieu 4.0.0 org.apache.maven.its mrrp-bundle-parent 1.0-SNAPSHOT ../pom.xml mrrp-bundle-b maven-remote-resources-plugin-1.6.0/DEPENDENCIES0000664000175000017500000002743213365361416021066 0ustar mathieumathieu// ------------------------------------------------------------------ // Transitive dependencies of this project determined from the // maven pom organized by organization. // ------------------------------------------------------------------ Apache Maven Remote Resources Plugin From: 'an unknown organization' - FindBugs-jsr305 (http://findbugs.sourceforge.net/) com.google.code.findbugs:jsr305:jar:2.0.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Codec commons-codec:commons-codec:jar:1.2 - Neko HTML (http://nekohtml.sourceforge.net/) nekohtml:nekohtml:jar:1.9.6.2 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - xercesMinimal nekohtml:xercesMinimal:jar:1.9.6.2 - plexus-build-api (http://forge.sonatype.com/spice-parent/plexus-build-api/) org.sonatype.plexus:plexus-build-api:jar:0.0.7 License: Apache Public License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) - Plexus Cipher: encryption/decryption Component (http://spice.sonatype.org/plexus-cipher) org.sonatype.plexus:plexus-cipher:jar:1.4 License: Apache Public License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) - Plexus Security Dispatcher Component (http://spice.sonatype.org/plexus-sec-dispatcher) org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 License: Apache Public License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) From: 'Apache Software Foundation' (http://jakarta.apache.org/) - HttpClient (http://jakarta.apache.org/commons/httpclient/) commons-httpclient:commons-httpclient:jar:3.0 License: Apache License (http://www.apache.org/licenses/LICENSE-2.0) From: 'Codehaus' (http://www.codehaus.org/) - Default Plexus Container org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1 - Plexus Default Interactivity Handler org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4 - Plexus Resource Component (http://plexus.codehaus.org/plexus-components/plexus-resources) org.codehaus.plexus:plexus-resources:jar:1.0.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) From: 'Codehaus Plexus' (http://codehaus-plexus.github.io/) - Plexus Interpolation API (http://codehaus-plexus.github.io/plexus-interpolation/) org.codehaus.plexus:plexus-interpolation:bundle:1.25 License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Plexus Common Utilities (http://codehaus-plexus.github.io/plexus-utils/) org.codehaus.plexus:plexus-utils:jar:3.1.0 License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) From: 'Dawid Kurzyniec' (http://www.mathcs.emory.edu/~dawidk/) - Backport of JSR 166 (http://backport-jsr166.sourceforge.net/) backport-util-concurrent:backport-util-concurrent:jar:3.1 License: Public Domain (http://creativecommons.org/licenses/publicdomain) From: 'jcraft' (http://www.jcraft.com/jsch) - JSch (http://www.jcraft.com/jsch/) com.jcraft:jsch:jar:0.1.38 License: BSD (http://www.jcraft.com/jsch/LICENSE.txt) From: 'QOS.ch' (http://www.qos.ch) - JCL 1.1.1 implemented over SLF4J (http://www.slf4j.org) org.slf4j:jcl-over-slf4j:jar:1.5.6 - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:1.5.6 - SLF4J JDK14 Binding (http://www.slf4j.org) org.slf4j:slf4j-jdk14:jar:1.5.6 - SLF4J NOP Binding (http://www.slf4j.org) org.slf4j:slf4j-nop:jar:1.5.3 From: 'The Apache Software Foundation' (http://www.apache.org/) - Commons CLI (http://commons.apache.org/cli/) commons-cli:commons-cli:jar:1.2 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Commons Collections (http://commons.apache.org/collections/) commons-collections:commons-collections:jar:3.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Apache Commons IO (http://commons.apache.org/proper/commons-io/) commons-io:commons-io:jar:2.5 License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Commons Lang (http://commons.apache.org/lang/) commons-lang:commons-lang:jar:2.4 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Jackrabbit JCR Commons (http://jackrabbit.apache.org/jackrabbit-jcr-commons/) org.apache.jackrabbit:jackrabbit-jcr-commons:bundle:1.5.0 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Jackrabbit WebDAV Library (http://jackrabbit.apache.org/jackrabbit-webdav/) org.apache.jackrabbit:jackrabbit-webdav:jar:1.5.0 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Artifact (http://maven.apache.org/maven-artifact) org.apache.maven:maven-artifact:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Artifact Manager (http://maven.apache.org/maven-artifact-manager) org.apache.maven:maven-artifact-manager:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Core (http://maven.apache.org/maven-core) org.apache.maven:maven-core:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Error Diagnostics (http://maven.apache.org/maven-error-diagnostics) org.apache.maven:maven-error-diagnostics:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Model (http://maven.apache.org/maven-model) org.apache.maven:maven-model:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Monitor (http://maven.apache.org/maven-monitor) org.apache.maven:maven-monitor:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Plugin API (http://maven.apache.org/maven-plugin-api) org.apache.maven:maven-plugin-api:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Plugin Descriptor Model (http://maven.apache.org/maven-plugin-descriptor) org.apache.maven:maven-plugin-descriptor:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Plugin Parameter Documenter API (http://maven.apache.org/maven-plugin-parameter-documenter) org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Plugin Registry Model (http://maven.apache.org/maven-plugin-registry) org.apache.maven:maven-plugin-registry:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Profile Model (http://maven.apache.org/maven-profile) org.apache.maven:maven-profile:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Project Builder (http://maven.apache.org/maven-project) org.apache.maven:maven-project:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Repository Metadata Model (http://maven.apache.org/maven-repository-metadata) org.apache.maven:maven-repository-metadata:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Local Settings Model (http://maven.apache.org/maven-settings) org.apache.maven:maven-settings:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Doxia :: Logging API (http://maven.apache.org/doxia/doxia/doxia-logging-api) org.apache.maven.doxia:doxia-logging-api:jar:1.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Doxia :: Sink API (http://maven.apache.org/doxia/doxia/doxia-sink-api) org.apache.maven.doxia:doxia-sink-api:jar:1.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Reporting API (http://maven.apache.org/maven-reporting/maven-reporting-api) org.apache.maven.reporting:maven-reporting-api:jar:2.2.1 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Artifact Resolution API (http://maven.apache.org/shared/maven-artifact-resolver/) org.apache.maven.shared:maven-artifact-resolver:jar:1.0 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Common Artifact Filters (http://maven.apache.org/shared/maven-common-artifact-filters/) org.apache.maven.shared:maven-common-artifact-filters:jar:1.4 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Apache Maven Shared Utils (http://maven.apache.org/shared/maven-shared-utils/) org.apache.maven.shared:maven-shared-utils:jar:3.0.0 License: Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon File Provider (http://maven.apache.org/wagon/wagon-providers/wagon-file) org.apache.maven.wagon:wagon-file:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon HTTP Provider (http://maven.apache.org/wagon/wagon-providers/wagon-http) org.apache.maven.wagon:wagon-http:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon Lightweight HTTP Provider (http://maven.apache.org/wagon/wagon-providers/wagon-http-lightweight) org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon HTTP Shared Library (http://maven.apache.org/wagon/wagon-providers/wagon-http-shared) org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon SSH Provider (http://maven.apache.org/wagon/wagon-providers/wagon-ssh) org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon SSH Common Library (http://maven.apache.org/wagon/wagon-providers/wagon-ssh-common) org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon SSH External Provider (http://maven.apache.org/wagon/wagon-providers/wagon-ssh-external) org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Maven Wagon WebDav Provider (http://maven.apache.org/wagon/wagon-providers/wagon-webdav-jackrabbit) org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:1.0-beta-6 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) - Apache Velocity (http://velocity.apache.org/engine/devel/) org.apache.velocity:velocity:jar:1.7 License: The Apache Software License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.txt) From: 'The Apache Software Foundation' (https://www.apache.org/) - Apache Maven Filtering (https://maven.apache.org/shared/maven-filtering/) org.apache.maven.shared:maven-filtering:jar:3.1.1 License: Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) From: 'The Codehaus' (http://codehaus.org/) - classworlds (http://classworlds.codehaus.org/) classworlds:classworlds:jar:1.1 maven-remote-resources-plugin-1.6.0/NOTICE0000664000175000017500000000030113365361416020203 0ustar mathieumathieu Apache Maven Remote Resources Plugin Copyright 2002-2018 The Apache Software Foundation This product includes software developed at The Apache Software Foundation (http://www.apache.org/). maven-remote-resources-plugin-1.6.0/LICENSE0000664000175000017500000002613613365361416020322 0ustar mathieumathieu Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] 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. maven-remote-resources-plugin-1.6.0/pom.xml0000664000175000017500000003061313365361410020617 0ustar mathieumathieu 4.0.0 org.apache.maven.plugins maven-plugins 33 maven-remote-resources-plugin 1.6.0 maven-plugin Apache Maven Remote Resources Plugin Process resources packaged in JARs that have been deployed to a remote repository. The primary use case being satisfied is the consistent inclusion of common resources in a large set of projects. Maven projects at Apache use this plug-in to satisfy licensing requirements at Apache where each project must include license and notice files for each release. 2.2.1 scm:git:https://gitbox.apache.org/repos/asf/maven-remote-resources-plugin.git scm:git:https://gitbox.apache.org/repos/asf/maven-remote-resources-plugin.git https://github.com/apache/maven-remote-resources-plugin/tree/${project.scm.tag} maven-remote-resources-plugin-1.6.0 JIRA https://issues.apache.org/jira/browse/MRRESOURCES Jenkins https://builds.apache.org/job/maven-box/job/maven-remote-resources-plugin/ apache.website scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path} 2.2.1 3.1.1 3.3 org.apache.maven maven-artifact ${mavenVersion} org.apache.maven maven-core ${mavenVersion} org.apache.maven maven-model ${mavenVersion} org.apache.maven maven-plugin-api ${mavenVersion} org.apache.maven maven-project ${mavenVersion} org.apache.maven maven-settings ${mavenVersion} org.apache.maven.plugin-tools maven-plugin-annotations provided org.apache.maven.shared maven-artifact-resolver 1.0 org.apache.maven.shared maven-common-artifact-filters 1.4 org.apache.maven.shared maven-filtering ${mavenFilteringVersion} org.codehaus.plexus plexus-resources 1.0.1 org.codehaus.plexus plexus-interpolation 1.25 org.codehaus.plexus plexus-utils 3.1.0 commons-io commons-io 2.5 org.apache.velocity velocity 1.7 junit junit 4.12 test org.apache.maven.plugin-testing maven-plugin-testing-harness 1.3 test org.apache.maven.wagon wagon-provider-api 2.2 test org.apache.maven.shared maven-verifier 1.5 test src/test/resources org.apache.rat apache-rat-plugin src/test/resources/ISO-8859-1.bin.vm src/test/resources/UTF-8.bin.vm org.codehaus.modello modello-maven-plugin generate-xsd-site-remote-resources pre-site xsd 1.1.0 ${project.reporting.outputDirectory}/xsd src/main/mdo/remote-resources.mdo generate-xsd-site-supplemental-model pre-site xsd 1.0.0 ${project.reporting.outputDirectory}/xsd src/main/mdo/supplemental-model.mdo site-docs-remote-resources pre-site xdoc 1.1.0 src/main/mdo/remote-resources.mdo site-docs-supplemental-models pre-site xdoc 1.0.0 src/main/mdo/supplemental-model.mdo remote-resources xpp3-writer java xpp3-reader 1.1.0 true src/main/mdo/remote-resources.mdo supplemental-models xpp3-writer java xpp3-reader 1.0.0 true src/main/mdo/supplemental-model.mdo maven-plugin-plugin generate-descriptor descriptor run-its ${project.build.directory}/remote-repo src/it/resources true custom-filter-delim/src/main/resources/** src/it/resources false custom-filter-delim/src/main/resources/** maven-failsafe-plugin integration-tests integration-test verify ${project.build.directory}/it-repo maven-invoker-plugin install-descriptor pre-integration-test install ${project.build.directory}/it-repo maven-remote-resources-plugin-1.6.0/Jenkinsfile0000664000175000017500000000150113365361410021460 0ustar mathieumathieu/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ asfMavenTlpPlgnBuild()