mirror of https://github.com/apache/archiva.git
Only put stuff in MAven 1 if it is maven 1 to avoid problems later during the m1->m2 conversion
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@555707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f9c465abb
commit
77458d992e
|
@ -147,10 +147,13 @@ BUNDLE=tmp.jar
|
||||||
|
|
||||||
mkdir -p ${m2dir}
|
mkdir -p ${m2dir}
|
||||||
|
|
||||||
mkdir -p $REPODIR/${groupId}/poms
|
if [ -z "${maven2}" ]
|
||||||
cp -i ${artifactId}-${version}.pom $REPODIR/${groupId}/poms
|
|
||||||
if [ ! -z "${maven2}" ]
|
|
||||||
then
|
then
|
||||||
|
# Maven 1
|
||||||
|
mkdir -p $REPODIR/${groupId}/poms
|
||||||
|
cp -i ${artifactId}-${version}.pom $REPODIR/${groupId}/poms
|
||||||
|
else
|
||||||
|
# Maven 2
|
||||||
cp -i ${artifactId}-${version}.pom ${m2dir}
|
cp -i ${artifactId}-${version}.pom ${m2dir}
|
||||||
md5sum ${m2dir}/${artifactId}-${version}.pom > ${m2dir}/${artifactId}-${version}.pom.md5
|
md5sum ${m2dir}/${artifactId}-${version}.pom > ${m2dir}/${artifactId}-${version}.pom.md5
|
||||||
sha1sum ${m2dir}/${artifactId}-${version}.pom > ${m2dir}/${artifactId}-${version}.pom.sha1
|
sha1sum ${m2dir}/${artifactId}-${version}.pom > ${m2dir}/${artifactId}-${version}.pom.sha1
|
||||||
|
@ -165,8 +168,14 @@ BUNDLE=tmp.jar
|
||||||
cp -i ${artifactId}-${version}.jar $REPODIR/${groupId}/plugins
|
cp -i ${artifactId}-${version}.jar $REPODIR/${groupId}/plugins
|
||||||
else
|
else
|
||||||
echo "Deploying JAR ..."
|
echo "Deploying JAR ..."
|
||||||
mkdir -p $REPODIR/${groupId}/jars
|
|
||||||
cp -i ${artifactId}-${version}.jar $REPODIR/${groupId}/jars
|
if [ -z "${maven2}" ]
|
||||||
|
then
|
||||||
|
# Maven 1
|
||||||
|
mkdir -p $REPODIR/${groupId}/jars
|
||||||
|
cp -i ${artifactId}-${version}.jar $REPODIR/${groupId}/jars
|
||||||
|
fi
|
||||||
|
|
||||||
cp -i ${artifactId}-${version}.jar ${m2dir}
|
cp -i ${artifactId}-${version}.jar ${m2dir}
|
||||||
if [ -f ${m2dir}/${artifactId}-${version}.jar ]
|
if [ -f ${m2dir}/${artifactId}-${version}.jar ]
|
||||||
then
|
then
|
||||||
|
@ -178,8 +187,8 @@ BUNDLE=tmp.jar
|
||||||
if [ -f ${artifactId}-${version}-sources.jar ]
|
if [ -f ${artifactId}-${version}-sources.jar ]
|
||||||
then
|
then
|
||||||
echo "Deploying Java sources ..."
|
echo "Deploying Java sources ..."
|
||||||
mkdir -p $REPODIR/${groupId}/java-sources
|
#mkdir -p $REPODIR/${groupId}/java-sources
|
||||||
cp -i ${artifactId}-${version}-sources.jar $REPODIR/${groupId}/java-sources
|
#cp -i ${artifactId}-${version}-sources.jar $REPODIR/${groupId}/java-sources
|
||||||
cp -i ${artifactId}-${version}-sources.jar ${m2dir}
|
cp -i ${artifactId}-${version}-sources.jar ${m2dir}
|
||||||
md5sum ${m2dir}/${artifactId}-${version}-sources.jar > ${m2dir}/${artifactId}-${version}-sources.jar.md5
|
md5sum ${m2dir}/${artifactId}-${version}-sources.jar > ${m2dir}/${artifactId}-${version}-sources.jar.md5
|
||||||
sha1sum ${m2dir}/${artifactId}-${version}-sources.jar > ${m2dir}/${artifactId}-${version}-sources.jar.sha1
|
sha1sum ${m2dir}/${artifactId}-${version}-sources.jar > ${m2dir}/${artifactId}-${version}-sources.jar.sha1
|
||||||
|
@ -190,8 +199,8 @@ BUNDLE=tmp.jar
|
||||||
if [ -f ${artifactId}-${version}-javadoc.jar ]
|
if [ -f ${artifactId}-${version}-javadoc.jar ]
|
||||||
then
|
then
|
||||||
echo "Deploying Javadocs ..."
|
echo "Deploying Javadocs ..."
|
||||||
mkdir -p $REPODIR/${groupId}/javadoc
|
#mkdir -p $REPODIR/${groupId}/javadoc
|
||||||
cp -i ${artifactId}-${version}-javadoc.jar $REPODIR/${groupId}/javadoc
|
#cp -i ${artifactId}-${version}-javadoc.jar $REPODIR/${groupId}/javadoc
|
||||||
cp -i ${artifactId}-${version}-javadoc.jar ${m2dir}
|
cp -i ${artifactId}-${version}-javadoc.jar ${m2dir}
|
||||||
md5sum ${m2dir}/${artifactId}-${version}-javadoc.jar > ${m2dir}/${artifactId}-${version}-javadoc.jar.md5
|
md5sum ${m2dir}/${artifactId}-${version}-javadoc.jar > ${m2dir}/${artifactId}-${version}-javadoc.jar.md5
|
||||||
sha1sum ${m2dir}/${artifactId}-${version}-javadoc.jar > ${m2dir}/${artifactId}-${version}-javadoc.jar.sha1
|
sha1sum ${m2dir}/${artifactId}-${version}-javadoc.jar > ${m2dir}/${artifactId}-${version}-javadoc.jar.sha1
|
||||||
|
|
Loading…
Reference in New Issue