maven-shade-plugin-1.7.1/ 0000775 0001750 0001750 00000000000 12236137670 014545 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/ 0000775 0001750 0001750 00000000000 12236137667 015342 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/ 0000775 0001750 0001750 00000000000 12236137667 015756 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/ 0000775 0001750 0001750 00000000000 12236137667 021322 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/ 0000775 0001750 0001750 00000000000 12236137667 022111 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/ 0000775 0001750 0001750 00000000000 12236137667 023070 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/ 0000775 0001750 0001750 00000000000 12236137667 024011 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/ 0000775 0001750 0001750 00000000000 12236137667 024600 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/ 0000775 0001750 0001750 00000000000 12236137667 026021 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/maven/ 0000775 0001750 0001750 00000000000 12236137667 027127 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/maven/plugins/ 0000775 0001750 0001750 00000000000 12236137667 030610 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/ 0000775 0001750 0001750 00000000000 12236137667 031674 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/ 0000775 0001750 0001750 00000000000 12236137667 032473 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000160 12236137670 011646 L ustar root root maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/AppTest.java maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/A0000664 0001750 0001750 00000001226 11727670760 032577 0 ustar ebourg ebourg package org.apache.maven.plugins.shade.its;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/ 0000775 0001750 0001750 00000000000 12236137667 023035 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/ 0000775 0001750 0001750 00000000000 12236137667 023756 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/ 0000775 0001750 0001750 00000000000 12236137667 024545 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/ 0000775 0001750 0001750 00000000000 12236137667 025766 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/maven/ 0000775 0001750 0001750 00000000000 12236137667 027074 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/maven/plugins/ 0000775 0001750 0001750 00000000000 12236137667 030555 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/maven/plugins/shade/ 0000775 0001750 0001750 00000000000 12236137667 031641 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/maven/plugins/shade/its/ 0000775 0001750 0001750 00000000000 12236137667 032440 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000154 12236137670 011651 L ustar root root maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/maven/plugins/shade/its/App.java maven-shade-plugin-1.7.1/src/it/users-shader-impl/src/main/java/org/apache/maven/plugins/shade/its/A0000664 0001750 0001750 00000000305 11727670760 032541 0 ustar ebourg ebourg package org.apache.maven.plugins.shade.its;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
maven-shade-plugin-1.7.1/src/it/users-shader-impl/verify.groovy 0000664 0001750 0001750 00000001715 11727670760 024101 0 ustar ebourg ebourg /*
* 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.
*/
assert new File(basedir, 'build.log').exists();
content = new File(basedir, 'build.log').text;
assert content.contains( 'Executing MockShader#shade');
return true; maven-shade-plugin-1.7.1/src/it/users-shader-impl/invoker.properties 0000664 0001750 0001750 00000000034 11727671022 025102 0 ustar ebourg ebourg invoker.goals=clean package
maven-shade-plugin-1.7.1/src/it/users-shader-impl/pom.xml 0000664 0001750 0001750 00000005356 11727670760 022650 0 ustar ebourg ebourg
4.0.0org.apache.maven.plugins.shade.itsusers-shader-impl1.0-SNAPSHOTusers-shader-impljunitjunit4.7testmaven-compiler-plugin1.51.5org.apache.maven.pluginsmaven-shade-plugin@project.version@org.apache.maven.pluginsmaven-shade-plugin@project.version@testscreate-shaded-artifactpackageshademocktrueshadedfalse
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/ 0000775 0001750 0001750 00000000000 12236137670 022000 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/invoker.properties 0000664 0001750 0001750 00000000034 11427244527 025571 0 ustar ebourg ebourg invoker.java.version = 1.5+
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/ 0000775 0001750 0001750 00000000000 12236137670 026047 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/ 0000775 0001750 0001750 00000000000 12236137670 026636 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/ 0000775 0001750 0001750 00000000000 12236137670 027562 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/ 0000775 0001750 0001750 00000000000 12236137670 030503 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/ 0000775 0001750 0001750 00000000000 12236137670 031272 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000146 12236137670 011652 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/ maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000775 0001750 0001750 00000000000 12236137670 032434 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000154 12236137670 011651 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/maven/ maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000775 0001750 0001750 00000000000 12236137670 032434 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000157 12236137670 011654 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/maven/it/ maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000775 0001750 0001750 00000000000 12236137670 032434 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000162 12236137670 011650 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/maven/it/pi/ maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000775 0001750 0001750 00000000000 12236137670 032434 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000203 12236137670 011644 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/maven/it/pi/package-info.java maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000664 0001750 0001750 00000001671 11603664151 032437 0 ustar ebourg ebourg /*
* 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.
*/
/**
* This is some javadoc for the package org.apache.maven.it.pi.
*
* @since 100
*/
@TestPackageAnnotation
package org.apache.maven.it.pi; ././@LongLink 0000644 0000000 0000000 00000000214 12236137670 011646 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/maven/it/pi/TestPackageAnnotation.java maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000664 0001750 0001750 00000001755 11603664151 032442 0 ustar ebourg ebourg /*
* 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.
*/
package org.apache.maven.it.pi;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.CLASS)
public @interface TestPackageAnnotation
{
}
././@LongLink 0000644 0000000 0000000 00000000203 12236137670 011644 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache/maven/it/pi/HaveOneClass.java maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/src/main/java/org/apache0000664 0001750 0001750 00000001640 11603664151 032433 0 ustar ebourg ebourg /*
* 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.
*/
package org.apache.maven.it.pi;
public class HaveOneClass
{
public static final String CONSTANT = "variable";
}
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/jar-with-package-info/pom.xml 0000664 0001750 0001750 00000002203 11603664151 027355 0 ustar ebourg ebourg
org.apache.maven.its.shade.mjpitest-package-info14.0.0depjar-with-package-info
Jar file with a package-info in it.
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/ 0000775 0001750 0001750 00000000000 12236137667 022765 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/ 0000775 0001750 0001750 00000000000 12236137667 023554 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/ 0000775 0001750 0001750 00000000000 12236137667 024500 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/ 0000775 0001750 0001750 00000000000 12236137667 025421 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/ 0000775 0001750 0001750 00000000000 12236137667 026210 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/apache/ 0000775 0001750 0001750 00000000000 12236137667 027431 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/apache/maven/ 0000775 0001750 0001750 00000000000 12236137667 030537 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/apache/maven/it/ 0000775 0001750 0001750 00000000000 12236137667 031153 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/apache/maven/it/pi/ 0000775 0001750 0001750 00000000000 12236137667 031563 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000152 12236137670 011647 L ustar root root maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/apache/maven/it/pi/Main.java maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/src/main/java/org/apache/maven/it/pi/Main0000664 0001750 0001750 00000000113 11603664151 032353 0 ustar ebourg ebourg package org.apache.maven.it.pi;
public class Main extends HaveOneClass
{
}
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/test/pom.xml 0000664 0001750 0001750 00000004017 11603664151 024272 0 ustar ebourg ebourg
4.0.0org.apache.maven.its.shade.mjpitest-package-info1testtest-shade-with-package-info
Test that artifact contents can be filtered automatically to produce a mini jar that only
contains the referenced classes including package-info.java.
org.apache.maven.its.shade.mjpidep1org.apache.maven.pluginsmaven-shade-pluginattach-shadepackageshadefalsetrue
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/verify.bsh 0000664 0001750 0001750 00000002706 11727627314 024012 0 ustar ebourg ebourg /*
* 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.*;
import java.util.jar.*;
String[] wanted =
{
"org/apache/maven/it/pi/Main.class",
"org/apache/maven/it/pi/HaveOneClass.class",
"org/apache/maven/it/pi/package-info.class",
};
String[] unwanted =
{
};
JarFile jarFile = new JarFile( new File( basedir, "test/target/test-1.jar" ) );
for ( String path : wanted )
{
if ( jarFile.getEntry( path ) == null )
{
throw new IllegalStateException( "wanted path is missing: " + path );
}
}
for ( String path : unwanted )
{
if ( jarFile.getEntry( path ) != null )
{
throw new IllegalStateException( "unwanted path is present: " + path );
}
}
jarFile.close();
maven-shade-plugin-1.7.1/src/it/mini-jar-package-info/pom.xml 0000664 0001750 0001750 00000004056 11603664151 023316 0 ustar ebourg ebourg
4.0.0org.apache.maven.its.shade.mjpitest-package-info1pommini-jar-with-package-infoTest for minimizeJar keeping package-info around.@project.version@jar-with-package-infotestorg.apache.maven.pluginsmaven-compiler-plugin2.3.21.51.5org.apache.maven.pluginsmaven-shade-plugin${shade-version}
maven-shade-plugin-1.7.1/src/it/finalNameShade/ 0000775 0001750 0001750 00000000000 12236137667 020615 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/finalNameShade/src/ 0000775 0001750 0001750 00000000000 12236137667 021404 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/finalNameShade/src/main/ 0000775 0001750 0001750 00000000000 12236137667 022330 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/finalNameShade/src/main/resources/ 0000775 0001750 0001750 00000000000 12236137667 024342 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/finalNameShade/src/main/resources/META-INF/ 0000775 0001750 0001750 00000000000 12236137667 025502 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/finalNameShade/src/main/resources/META-INF/ejb-jar.xml 0000664 0001750 0001750 00000000047 11251463631 027524 0 ustar ebourg ebourg
maven-shade-plugin-1.7.1/src/it/finalNameShade/verify.bsh 0000664 0001750 0001750 00000003672 11727627314 022624 0 ustar ebourg ebourg /*
* 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.*;
import java.util.*;
import java.util.regex.*;
try
{
// check for primary artifact, which is the unshaded one!
File file = new File( basedir, "target/finalNameShade-1.0.jar" );
System.out.println( "file with finalName : " + file );
if ( !file.exists() )
{
System.out.println( "file with finalName does not exist: " + file );
return false;
}
// check for the shaded jar
File shaded = new File( basedir, "target/MyFinalShadeName.jar" );
System.out.println( "shaded file with name : " + shaded );
if ( !shaded.exists() )
{
System.out.println( "shaded file does not exist: " + shaded );
return false;
}
// check for the artifact in the repo
File rfile = new File( localRepositoryPath
, "org/apache/maven/its/shade/fns/finalNameShade/1.0/finalNameShade-1.0.jar" );
System.out.println( "Checking for existence in repo: " + rfile );
if ( !rfile.isFile() )
{
throw new FileNotFoundException( "Missing: " + rfile.getAbsolutePath() );
}
}
catch( Throwable t )
{
t.printStackTrace();
return false;
}
return true;
maven-shade-plugin-1.7.1/src/it/finalNameShade/pom.xml 0000664 0001750 0001750 00000004144 11251463631 022122 0 ustar ebourg ebourg
4.0.0org.apache.maven.its.shade.fnsfinalNameShade1.0MSHADE-54 :: Shaded Artifact Producer
Test that attached artifact has the correct finalName if
the finalName is set in the shade plugin section and
artifact attaching is NOT activated.
org.apache.maven.pluginsmaven-shade-plugin@project.version@attach-shaded-artifactpackageshadeMyFinalShadeNameshadedfalse
maven-shade-plugin-1.7.1/src/it/finalNameShade/setup.bsh 0000664 0001750 0001750 00000002036 11727627314 022451 0 ustar ebourg ebourg /*
* 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.*;
import java.util.*;
import org.codehaus.plexus.util.*;
File file = new File( localRepositoryPath, "org/apache/maven/its/shade/fns" );
System.out.println( "Deleting " + file );
FileUtils.deleteDirectory( file );
return true;
maven-shade-plugin-1.7.1/src/it/attach-after-lifecycle-fork/ 0000775 0001750 0001750 00000000000 12236137667 023215 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/attach-after-lifecycle-fork/verify.bsh 0000664 0001750 0001750 00000002411 11727627314 025212 0 ustar ebourg ebourg /*
* 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.*;
import java.util.*;
String[] paths =
{
"org/apache/maven/its/shade/aalf/test/1.0/test-1.0-shade.jar",
"org/apache/maven/its/shade/aalf/test/1.0/test-1.0-sources.jar",
};
for ( String path : paths )
{
File file = new File( localRepositoryPath, path );
System.out.println( "Checking for existence of " + file );
if ( !file.isFile() )
{
throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() );
}
}
return true;
maven-shade-plugin-1.7.1/src/it/attach-after-lifecycle-fork/pom.xml 0000664 0001750 0001750 00000006724 11124671066 024532 0 ustar ebourg ebourg
4.0.0org.apache.maven.its.shade.aalftest1.0jarMSHADE-44
Test that attaching artifacts works when the plugin is executed after another plugin that forked the lifecycle.
org.apache.maven.pluginsmaven-compiler-plugin2.0.2org.apache.maven.pluginsmaven-install-plugin2.2org.apache.maven.pluginsmaven-jar-plugin2.1org.apache.maven.pluginsmaven-resources-plugin2.2org.apache.maven.pluginsmaven-source-plugin2.0.4attach-sourcespackagejarorg.apache.maven.pluginsmaven-shade-plugin@project.version@attach-shadepackageshadetrueshadefalseorg.apache.maven.pluginsmaven-surefire-plugin2.3.1
maven-shade-plugin-1.7.1/src/it/attach-after-lifecycle-fork/setup.bsh 0000664 0001750 0001750 00000002037 11727627314 025052 0 ustar ebourg ebourg /*
* 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.*;
import java.util.*;
import org.codehaus.plexus.util.*;
File file = new File( localRepositoryPath, "org/apache/maven/its/shade/aalf" );
System.out.println( "Deleting " + file );
FileUtils.deleteDirectory( file );
return true;
maven-shade-plugin-1.7.1/src/it/services-resource-transformer/ 0000775 0001750 0001750 00000000000 12236137667 023766 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/verify.bsh 0000664 0001750 0001750 00000002440 11727627314 025765 0 ustar ebourg ebourg /*
* 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.*;
import java.util.jar.*;
import org.codehaus.plexus.util.*;
JarFile jarFile = new JarFile( new File( basedir, "target/test-1.0.jar" ) );
JarEntry jarEntry = jarFile.getEntry( "META-INF/services/org.apache.maven.Shade" );
String service = IOUtil.toString( jarFile.getInputStream( jarEntry ), "UTF-8" );
jarFile.close();
String[] providers = service.split( "(\r\n)|(\r)|(\n)" );
if ( providers.length != 2 )
{
throw new IllegalStateException( "Broken provider list: " + service );
}
maven-shade-plugin-1.7.1/src/it/services-resource-transformer/pom.xml 0000664 0001750 0001750 00000004757 11351445632 025307 0 ustar ebourg ebourg
4.0.0org.apache.maven.its.shade.srttest1.0jarMSHADE-76
Test the merging of META-INF/services/** entries.
shade-itfile:///${basedir}/repoignorefalseorg.apache.maven.its.shade.srtone0.1org.apache.maven.its.shade.srttwo0.1org.apache.maven.pluginsmaven-shade-plugin@project.version@attach-shadepackageshadefalse
maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/ 0000775 0001750 0001750 00000000000 12236137667 024733 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/ 0000775 0001750 0001750 00000000000 12236137667 025522 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/ 0000775 0001750 0001750 00000000000 12236137667 026743 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/ 0000775 0001750 0001750 00000000000 12236137667 030051 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/ 0000775 0001750 0001750 00000000000 12236137667 030650 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/ 0000775 0001750 0001750 00000000000 12236137667 031734 5 ustar ebourg ebourg maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/ 0000775 0001750 0001750 00000000000 12236137667 032544 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000147 12236137670 011653 L ustar root root maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/two/ maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/tw0000775 0001750 0001750 00000000000 12236137667 033117 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000171 12236137670 011650 L ustar root root maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/two/maven-metadata.xml maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/tw0000664 0001750 0001750 00000000463 11351445632 033113 0 ustar ebourg ebourg
org.apache.maven.its.shade.srttwo0.10.120100321160331
././@LongLink 0000644 0000000 0000000 00000000153 12236137670 011650 L ustar root root maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/two/0.1/ maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/tw0000775 0001750 0001750 00000000000 12236137667 033117 5 ustar ebourg ebourg ././@LongLink 0000644 0000000 0000000 00000000166 12236137670 011654 L ustar root root maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/two/0.1/two-0.1.pom maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/tw0000664 0001750 0001750 00000002256 11351445632 033115 0 ustar ebourg ebourg
4.0.0org.apache.maven.its.shade.srttwo0.1jarmaven-core-itfile:///${basedir}/repo
././@LongLink 0000644 0000000 0000000 00000000166 12236137670 011654 L ustar root root maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/two/0.1/two-0.1.jar maven-shade-plugin-1.7.1/src/it/services-resource-transformer/repo/org/apache/maven/its/shade/srt/tw0000664 0001750 0001750 00000004346 11351445632 033117 0 ustar ebourg ebourg PK
pˆu<