mirror of https://github.com/apache/maven.git
get repoclean compiling again, add assembly descriptor in place of install script
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@226715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5354706f05
commit
9a662b5292
|
@ -1,85 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
||||
echo ""
|
||||
echo "*******************"
|
||||
echo "* Usage: 'sh ./install.sh /path/to/install/target /path/to/local/repo'"
|
||||
echo "*******************"
|
||||
echo ""
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
(
|
||||
# First, ensure that the repoclean library has been built.
|
||||
|
||||
echo "-----------------------------------------------------------------------"
|
||||
echo " Building a clean copy of repoclean ... "
|
||||
echo "-----------------------------------------------------------------------"
|
||||
m2 clean:clean package
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
)
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
|
||||
(
|
||||
# Now, install the bash script and dependencies to the specified target dir.
|
||||
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------------------"
|
||||
echo " Installing repoclean to ${1} ... "
|
||||
echo "-----------------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
mkdir -p $1/lib
|
||||
|
||||
echo "Copying application libraries..."
|
||||
echo ""
|
||||
|
||||
cp -f target/repoclean-1.0-SNAPSHOT.jar $1/lib
|
||||
|
||||
version=`cat $2/plexus/plexus-container-default/1.0-alpha-3-SNAPSHOT/plexus-container-default-1.0-alpha-3-SNAPSHOT.version.txt`
|
||||
|
||||
cp -f $2/plexus/plexus-container-default/1.0-alpha-3-SNAPSHOT/plexus-container-default-$version.jar $1/lib
|
||||
version="ERROR-IN-SCRIPT"
|
||||
|
||||
version=`cat $2/plexus/plexus-mail-sender-api/1.0-alpha-1-SNAPSHOT/plexus-mail-sender-api-1.0-alpha-1-SNAPSHOT.version.txt`
|
||||
cp -f $2/plexus/plexus-mail-sender-api/1.0-alpha-1-SNAPSHOT/plexus-mail-sender-api-$version.jar $1/lib
|
||||
version="ERROR-IN-SCRIPT"
|
||||
|
||||
version=`cat $2/plexus/plexus-mail-sender-simple/1.0-alpha-1-SNAPSHOT/plexus-mail-sender-simple-1.0-alpha-1-SNAPSHOT.version.txt`
|
||||
cp -f $2/plexus/plexus-mail-sender-simple/1.0-alpha-1-SNAPSHOT/plexus-mail-sender-simple-$version.jar $1/lib
|
||||
version="ERROR-IN-SCRIPT"
|
||||
|
||||
cp -f $2/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar $1/lib
|
||||
|
||||
version=`cat $2/org/apache/maven/maven-artifact/2.0-SNAPSHOT/maven-artifact-2.0-SNAPSHOT.version.txt`
|
||||
cp -f $2/org/apache/maven/maven-artifact/2.0-SNAPSHOT/maven-artifact-$version.jar $1/lib
|
||||
version="ERROR-IN-SCRIPT"
|
||||
|
||||
version=`cat $2/org/apache/maven/maven-model/2.0-SNAPSHOT/maven-model-2.0-SNAPSHOT.version.txt`
|
||||
cp -f $2/org/apache/maven/maven-model/2.0-SNAPSHOT/maven-model-$version.jar $1/lib
|
||||
version="ERROR-IN-SCRIPT"
|
||||
|
||||
cp -f $2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-2/wagon-provider-api-1.0-alpha-2.jar $1/lib
|
||||
|
||||
cp -f $2/org/apache/maven/wagon/wagon-file/1.0-alpha-2/wagon-file-1.0-alpha-2.jar $1/lib
|
||||
|
||||
echo "Copying startup script, and changing its permissions to '+x'..."
|
||||
echo ""
|
||||
|
||||
cp -f src/main/bash/repoclean.sh $1
|
||||
chmod +x $1/repoclean.sh
|
||||
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
|
||||
)
|
||||
ret=$?; if [ $ret != 0 ]; then exit $ret; fi
|
||||
|
||||
echo ""
|
||||
echo "*******************"
|
||||
echo "* repoclean utility has been installed to: ${1}."
|
||||
echo "*"
|
||||
echo "* To run, change to '${1}' and execute './repoclean.sh', which will give further usage instructions."
|
||||
echo "*******************"
|
||||
echo ""
|
|
@ -5,32 +5,26 @@
|
|||
<artifactId>repoclean</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>Maven v3-to-v4 Repository Cleaner</name>
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>plexus</groupId>
|
||||
<artifactId>plexus-container-default</artifactId>
|
||||
<version>1.0-alpha-3-SNAPSHOT</version>
|
||||
<version>1.0-alpha-3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>plexus</groupId>
|
||||
<artifactId>plexus-mail-sender-api</artifactId>
|
||||
<version>1.0-alpha-1-SNAPSHOT</version>
|
||||
<version>1.0-alpha-1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>plexus</groupId>
|
||||
<artifactId>plexus-mail-sender-simple</artifactId>
|
||||
<version>1.0-alpha-1-SNAPSHOT</version>
|
||||
<version>1.0-alpha-1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- dependency>
|
||||
<groupId>plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>1.0-alpha-2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency -->
|
||||
<dependency>
|
||||
<groupId>classworlds</groupId>
|
||||
<artifactId>classworlds</artifactId>
|
||||
|
@ -40,13 +34,13 @@
|
|||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-artifact</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<version>2.0-alpha-2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
<version>2.0-SNAPSHOT</version>
|
||||
<version>2.0-alpha-2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -55,5 +49,28 @@
|
|||
<version>3.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-provider-api</artifactId>
|
||||
<version>1.0-alpha-2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-file</artifactId>
|
||||
<version>1.0-alpha-2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<descriptor>src/assembly/bin.xml</descriptor>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<assembly>
|
||||
<id>bin</id>
|
||||
<formats>
|
||||
<format>tar.gz</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>src/main/bash</directory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<!-- TODO: use expressions instead: ${project.build.directory}, ${project.build.finalName}, or have a <build /> tag to include the built artifact -->
|
||||
<directory>target</directory>
|
||||
<outputDirectory>lib</outputDirectory>
|
||||
<includes>
|
||||
<include>repoclean-*.jar</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>repoclean-*-sources.jar</exclude>
|
||||
</excludes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<dependencySets>
|
||||
<dependencySet>
|
||||
<outputDirectory>lib</outputDirectory>
|
||||
<excludes>
|
||||
<!-- transitively picked up via default container - not needed -->
|
||||
<exclude>junit:junit</exclude>
|
||||
</excludes>
|
||||
</dependencySet>
|
||||
</dependencySets>
|
||||
</assembly>
|
Loading…
Reference in New Issue