You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2004/06/01 23:31:06 UTC
cvs commit: maven-components/maven-core m2-bootstrap-all.sh m2-bootstrap.sh m2-core-plugins.txt bootstrap-all.sh bootstrap.plugins bootstrap.sh
jvanzyl 2004/06/01 14:31:06
Added: maven-core m2-bootstrap-all.sh m2-bootstrap.sh
m2-core-plugins.txt
Removed: maven-core bootstrap-all.sh bootstrap.plugins bootstrap.sh
Log:
o changing names to make some scripting stuff easier
Revision Changes Path
1.1 maven-components/maven-core/m2-bootstrap-all.sh
Index: m2-bootstrap-all.sh
===================================================================
#!/bin/sh
# Build and install mboot
(
echo "-----------------------------------------------------------------------"
echo " Building mboot ... "
echo "-----------------------------------------------------------------------"
cd ../maven-mboot
./build
cd target
./mboot-install.sh
)
(
echo "-----------------------------------------------------------------------"
echo " Install the parent pom for all maven-component artifacts ... "
echo "-----------------------------------------------------------------------"
cd ..
mboot --pom-install
)
# Build and install maven-model.
(
echo "-----------------------------------------------------------------------"
echo " Building maven-model ... "
echo "-----------------------------------------------------------------------"
cd ../maven-model
./build.sh
)
# Build and install maven-project.
(
echo "-----------------------------------------------------------------------"
echo " Building maven-project ... "
echo "-----------------------------------------------------------------------"
cd ../maven-project
mboot --install
)
# Build and install maven-plugin.
(
echo "-----------------------------------------------------------------------"
echo " Building maven-plugin ... "
echo "-----------------------------------------------------------------------"
cd ../maven-plugin
mboot --install
)
# Bootstrap the maven-core component which will give you a small distribution.
echo "-----------------------------------------------------------------------"
echo " Building maven-core ... "
echo "-----------------------------------------------------------------------"
./bootstrap.sh
1.1 maven-components/maven-core/m2-bootstrap.sh
Index: m2-bootstrap.sh
===================================================================
#!/bin/sh
rm -rf target
mboot --leave-boot-files --install
DIST=dist/m2
rm -rf ${DIST}
mkdir -p ${DIST}
mkdir -p ${DIST}/bin
mkdir -p ${DIST}/lib
mkdir -p ${DIST}/core
mkdir -p ${DIST}/plugins
cp target/maven*.jar ${DIST}/lib
repoLocal=`cat bootstrap.repo`
if [ "$cygwin" = "true" ]
then
repoLocal=`cygpath -pu "$repoLocal"`
fi
cp src/bin/* ${DIST}/bin > /dev/null 2>&1
libs=`cat bootstrap.deps`
cp ../maven-model/maven.xsd ${DIST}
core="\
plexus/jars/plexus-0.14-SNAPSHOT.jar \
classworlds/jars/classworlds-1.1-SNAPSHOT.jar \
xpp3/jars/xpp3-1.1.3.3.jar \
xstream/jars/xstream-1.0-SNAPSHOT.jar"
for i in $core
do
cp "$repoLocal/$i" ${DIST}/core
done
for i in $libs
do
cp "$repoLocal/$i" ${DIST}/lib
done
rm -f ${DIST}/lib/plexus-0.14-SNAPSHOT.jar > /dev/null 2>&1
rm -f ${DIST}/lib/classworlds*.jar > /dev/null 2>&1
rm -f ${DIST}/lib/xpp3*.jar > /dev/null 2>&1
rm -f ${DIST}/lib/xstream*.jar > /dev/null 2>&1
rm -f ${DIST}/lib/junit*.jar > /dev/null 2>&1
# Install parent plugin model
(
cd ../maven-plugins
mboot --pom-install
)
# Build the plugins
for plugin in `cat m2-core-plugins.txt`
do
echo "-----------------------------------------------------------------------"
echo " Building ${plugin} plugin ... "
echo "-----------------------------------------------------------------------"
(
cd ../maven-plugins/${plugin}
rm -rf target > /dev/null 2>&1
echo "Generating plugin descriptor for ${plugin} ..."
pluggy --mode=descriptor --source=src/main/java --destination=target/classes/META-INF/maven --pom=project.xml
echo "Generating bean adapter for ${plugin} ..."
pluggy --mode=bean --source=src/main/java --destination=target/generated-sources --pom=project.xml
echo "Generating Jelly harness for ${plugin} ..."
pluggy --mode=jelly --source=src/main/java --destination=target/classes --pom=project.xml
mboot
)
cp ../maven-plugins/${plugin}/target/${plugin}*.jar ${DIST}/plugins
done
echo "M2_HOME = ${M2_HOME}"
rm -rf "${M2_HOME}"
mkdir -p "${M2_HOME}"
cp ${DIST}/*.xsd "${M2_HOME}"
cp -r ${DIST}/bin "${M2_HOME}"
cp -r ${DIST}/lib "${M2_HOME}"
cp -r ${DIST}/core "${M2_HOME}"
cp -r ${DIST}/plugins "${M2_HOME}"
rm -f bootstrap.* > /dev/null 2>&1
1.1 maven-components/maven-core/m2-core-plugins.txt
Index: m2-core-plugins.txt
===================================================================
maven-clean-plugin
maven-compiler-plugin
maven-jar-plugin
maven-plugin-plugin
maven-resources-plugin
maven-surefire-plugin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org