debian/0000775000000000000000000000000012247115200007162 5ustar debian/changelog0000664000000000000000000002343512247115141011047 0ustar maven2 (2.2.1-19) unstable; urgency=low * Team upload * Updated the dependency on libmaven-shade-plugin-java to 1.7.1 * debian/rules: Modified the clean target to allow rebuilds -- Emmanuel Bourg Mon, 02 Dec 2013 15:34:06 +0100 maven2 (2.2.1-18) unstable; urgency=low * Team upload * Rebuild with libmaven2-core-java 2.2.1-14 (Updates maven-compiler-plugin) -- Emmanuel Bourg Thu, 21 Nov 2013 18:01:39 +0100 maven2 (2.2.1-17) unstable; urgency=low * Team upload. * Rebuild with libmaven2-core-java 2.2.1-13 (Updates maven-source-plugin, maven-install-plugin and maven-javadoc-plugin) -- Emmanuel Bourg Tue, 05 Nov 2013 23:44:28 +0100 maven2 (2.2.1-16) unstable; urgency=low * Team upload. * Rebuild with libmaven2-core-java 2.2.1-12 (Updates maven-plugin-plugin) * Updated Standards-Version to 3.9.5 (no changes) -- Emmanuel Bourg Fri, 18 Oct 2013 19:10:12 +0200 maven2 (2.2.1-15) unstable; urgency=low * Team upload. * Rebuild with libmaven2-core-java 2.2.1-11 (Updates maven-javadoc-plugin, maven-jar-plugin and maven-dependency-plugin) * Build depend on debhelper >= 9 -- Emmanuel Bourg Fri, 18 Oct 2013 17:52:29 +0200 maven2 (2.2.1-14) unstable; urgency=low * Team upload. * Rebuild with libmaven2-core-java 2.2.1-10 (Updates maven-antrun-plugin) -- Emmanuel Bourg Sun, 23 Jun 2013 15:29:15 +0200 maven2 (2.2.1-13) unstable; urgency=low [ Miguel Landaeta ] * Team upload. * Fix permissions of mvnDebug script. (Closes: #687154). * Remove Michael Koch from Uploaders list. Thanks for your work on this package. (Closes: #654115). [ tony mancill ] * Fix typo in maven bash completion file. (Closes: #688722) - Thank you to Oleksandr Gavenko. [ Ludovic Claude ] * Add resolution for the exec plugin in the bash completion. [ Emmanuel Bourg ] * Updated Standards-Version to 3.9.4 (no changes) * Removed the dependency on backport-util-concurrent * debian/control: Use canonical URLs for the Vcs-* fields * debian/maven.rules: Removed the unused rule for maven-clean-plugin -- Emmanuel Bourg Wed, 12 Jun 2013 10:06:15 +0200 maven2 (2.2.1-12) unstable; urgency=low * Team upload. * Upload to unstable to allow side-by-side installation of maven (3.x) and maven2 packages. * d/control: Bump Standards-Version to 3.9.3: no changes were required. * d/copyright: Upgrade to copyright format 1.0. -- Damien Raude-Morvan Thu, 16 Aug 2012 21:05:27 +0200 maven2 (2.2.1-11) experimental; urgency=low * Team upload. * Use alternative to install /usr/bin/mvn. -- Damien Raude-Morvan Sat, 17 Dec 2011 23:56:39 +0100 maven2 (2.2.1-10) unstable; urgency=low * Team upload. * Rebuild now that libmaven2-core-java 2.2.1-8 is in unstable. -- tony mancill Thu, 13 Oct 2011 19:09:11 -0700 maven2 (2.2.1-9) unstable; urgency=low * Team upload. * Rebuild to update plugin versions. * Make copyright DEP-5 compliant. -- Miguel Landaeta Wed, 12 Oct 2011 17:11:45 -0430 maven2 (2.2.1-8) unstable; urgency=low * Team upload. * Rebuild to update plugin versions. -- Damien Raude-Morvan Tue, 11 Oct 2011 23:36:37 +0200 maven2 (2.2.1-7) unstable; urgency=low * Team upload. * Rebuild to update plugin versions. -- Miguel Landaeta Sun, 14 Aug 2011 15:06:30 -0430 maven2 (2.2.1-6) unstable; urgency=low * Team upload. * No change rebuild in order to re-assemble the uber jar. (Closes: #636206). * Bump Standards-Version to 3.9.2. No changes were required. -- Miguel Landaeta Tue, 02 Aug 2011 21:56:46 -0430 maven2 (2.2.1-5) unstable; urgency=low * Remove Paul from Uploaders list. * Add myself to Uploaders list. * Build with maven2-core 2.2.1-4. -- Torsten Werner Sun, 16 May 2010 13:43:36 +0200 maven2 (2.2.1-4) unstable; urgency=low * Improve bash completion for maven2, -D options are better handled for plugins (for example, mvn install:install-file -DpomFile=...) * Apply patch from Heikki Henriksen to fix mvnDebug command. Thanks Heikki! (Closes: #561596) -- Ludovic Claude Tue, 06 Apr 2010 20:38:51 +0200 maven2 (2.2.1-3) unstable; urgency=low * Team Upload. * Rebuild with new libmaven2-core-java 2.2.1-2 (should fix plugins dependencies version issues) * Update Standards-Version to 3.8.4: no changes needed * Bump debhelper to >= 7 * Use 3.0 (quilt) source format: - Rework debian/README.source -- Damien Raude-Morvan Mon, 05 Apr 2010 21:39:56 +0200 maven2 (2.2.1-2) unstable; urgency=low * Rebuild to update plugin versions (Closes: #552704, #553046). -- Michael Koch Tue, 03 Nov 2009 14:41:53 +0100 maven2 (2.2.1-1) unstable; urgency=low * New upstream release (Closes: #542546) * Update download url for debian/watch and debian/orig-tar.sh * Update Standards-Version to 3.8.3 - add debian/README.source * Fix bash completion to keep working after single options such as --offline or -Dmaven.test.skip=true * Ensure that all classes are compiled for Java 1.5 (Closes: #542162) -- Ludovic Claude Thu, 03 Sep 2009 20:42:38 +0100 maven2 (2.2.0-2) unstable; urgency=low * Upload to unstable. -- Torsten Werner Fri, 14 Aug 2009 14:59:25 +0200 maven2 (2.2.0-1) experimental; urgency=low * New upstream version * Added myself to Uploaders. * Change section to java, bump Standards-Version to 3.8.1 * Add a Build-Depends-Indep dependency on maven-repo-helper * Move ant to Build-Depends (needed for clean target) * Add dependency on java runtimes for the maven2 binary. * Change the dependency on java-gcj to default-jdk (Closes: #526295) * Update watch and added orig-tar.sh to download the sources, get-orig-source in rules now uses uscan * Use quilt to manage the patches, add a patch to use the upstream build.xml as the build file, disabling all dependency downloading from it * Split the package in 2 parts: maven2-core contains all libraries, this package contains only the uber jar and the scripts * Updated the build to use Maven and its plugins to bootstrap itself, based on a patched version of the build.xml boostrap script provided with Maven. In particular, it now generates properly the shaded uber-jar, this will avoid potential class versionning conflicts for the shared libraries used in the plugins. * Added Build-Depends-Indep on libmaven-clean-plugin-java, libmaven-compiler-plugin-java, libmaven-install-plugin-java, libmaven-jar-plugin-java, libmaven-resources-plugin-java, libmaven-shade-plugin-java and add a Recommends on those libraries. * Remove debian/META-INF as this information is now generated by the build. * Improve command line completion. -- Ludovic Claude Mon, 02 Mar 2009 15:04:20 +0000 maven2 (2.0.9-2) unstable; urgency=low [ Michael Koch ] * Reworked watch file to support RC versions correctly. * Added myself to Uploaders. [ Paul Cager ] * Added maven-toolchain to list of sub-projects to build. (Closes: #486938). * Standards version 3.8.0 (no changes necessary). -- Paul Cager Sat, 21 Jun 2008 20:49:29 +0000 maven2 (2.0.9-1) unstable; urgency=low [ Paul Cager ] * New upstream version [ Michael Koch ] * Added bash-completion file (Closes: #477443). -- Paul Cager Thu, 24 Apr 2008 23:46:29 +0100 maven2 (2.0.8-6) unstable; urgency=low * Added symlink /usr/share/maven2/bin/mvn -> /usr/bin/mvn (and the same for m2). Fixes bug http://jira.codehaus.org/browse/MINVOKER-28 (thanks to manfred@mosabuam.com for reporting the bug). -- Paul Cager Fri, 04 Apr 2008 20:15:52 +0100 maven2 (2.0.8-5) unstable; urgency=low * Fixed processing of command line options (Closes: #466860) - Removed patch to call of commons-cli, and fixed problem in commons-cli instead (see bug 469082). -- Paul Cager Sun, 16 Mar 2008 11:44:55 +0000 maven2 (2.0.8-4) unstable; urgency=low * Closes: #458895: Creating empty project with artifacts fails. Bug appeared when version 1.1 of libcommons-cli-java was uploaded. This new version conforms more rigorously to its API check which exposed a bug in the Maven code. (Patch "command-line"). -- Paul Cager Fri, 11 Jan 2008 23:49:29 +0000 maven2 (2.0.8-3) unstable; urgency=low * Add versioned runtime dependency to libplexus-utils-java. -- Paul Cager Fri, 14 Dec 2007 22:37:09 +0000 maven2 (2.0.8-2) unstable; urgency=low * Fixed version number. (Closes: #456298) -- Paul Cager Fri, 14 Dec 2007 13:06:50 +0000 maven2 (2.0.8-1) unstable; urgency=low * New upstream release (Closes: #454087). * Added min version to Build-Depends for libplexus-utils-java. * Added Vcs-Svn control fields etc. * Marked as compliant to standards version 3.7.3. -- Paul Cager Sun, 02 Dec 2007 23:27:21 +0000 maven2 (2.0.7-2) unstable; urgency=low * Changed to use correct JDK/JRE defined in Debian's alternatives system, or any one the user has specifically set up. (Closes: #445006) * Uses new "Homepage" field in debian/control. -- Paul Cager Sun, 28 Oct 2007 13:58:23 +0000 maven2 (2.0.7-1) unstable; urgency=low * Initial release. (Closes: #323050) -- Paul Cager Fri, 06 Jul 2007 16:37:52 +0100 debian/build.properties0000664000000000000000000000131212243436221012401 0ustar maven.home = debian/tmp/maven-${version} classpath.compile = \ /usr/share/java/backport-util-concurrent.jar:\ /usr/share/java/doxia-sink-api.jar:\ /usr/share/java/classworlds.jar:\ /usr/share/java/commons-cli.jar:\ /usr/share/java/junit.jar:\ /usr/share/java/modello-core.jar:\ /usr/share/java/plexus-cipher.jar:\ /usr/share/java/plexus-container-default-alpha.jar:\ /usr/share/java/plexus-interactivity-api.jar:\ /usr/share/java/plexus-interpolation.jar:\ /usr/share/java/plexus-sec-dispatcher.jar:\ /usr/share/java/plexus-utils.jar:\ /usr/share/java/wagon-provider-api.jar debian/README.source0000664000000000000000000000100112230200016011321 0ustar maven2 package The source has been downloaded from upstream's svn, and may be recreated using the "get-orig-source" rule in debian/rules. The debian directory contains a number of configuration files in the META-INF directory (components.xml, pom.xml etc). These files would normally be generated when "bootstrapping" Maven. Bootstrapping is not possible in the Debian build because it would download and use some (binary) Jars. -- Paul Cager Fri, 06 Jul 2007 16:37:52 +0100 debian/source/0000775000000000000000000000000012230200016010452 5ustar debian/source/format0000664000000000000000000000001412230200016011660 0ustar 3.0 (quilt) debian/maven2.prerm0000664000000000000000000000025412230200016011412 0ustar #!/bin/sh set -e basedir=/usr/share/maven2 case "$1" in deconfigure|remove) update-alternatives --remove mvn $basedir/bin/mvn ;; esac #DEBHELPER# exit 0 debian/bash_completion.d/0000775000000000000000000000000012230200016012542 5ustar debian/bash_completion.d/maven20000664000000000000000000005262012230200016013662 0ustar # Programmable completion for the Maven mvn command under bash. Source # this file (or on some systems add it to ~/.bash_completion and start a new # shell) and bash's completion mechanism will know all about mvn's options! # # Copyright (C) 2009, Ludovic Claude # Base on git completion script, Copyright (C) 2006,2007 Shawn O. Pearce # Distributed under the GNU General Public License, version 2.0. # Customization: you can always edit this file (as root) and add or remove plugins and options in the lists defined below. # If you have some interesting changes, please send patches to ludovic.claude@laposte.net # Alternatively, you can create a file called bash_completion in your ~/.m2 directory. # This file can override any of the variables defined below (__mvnopts, __mvnoptsWithArg __mvnparams, __mvnpackaging, # __mvnclassifiers, __mvndefault_phases, __mvnclean_phases, __mvnsite_phases, __mvncore_plugins, __mvnpackaging_plugins, # __mvnreporting_plugins, __mvntools_plugins, __mvnide_plugins, __mvnother_plugins, __mvncustom_plugins) # __mvncustom_plugins is the best variable to use to add new plugins and goals # __mvnopts="--also-make --also-make-dependents --file --debug --batch-mode --lax-checksums --strict-checksums --check-plugin-updates --define --errors --encrypt-master-password --encrypt-password --fail-at-end --fail-fast --fail-never --help --non-recursive --no-plugin-registry --no-plugin-updates --offline --activate-profiles --projects --quiet --reactor --resume-from --settings --global-settings --update-snapshots --update-plugins --version --show-version" __mvnoptsWithArg="--file|--define|--encrypt-master-password|--encrypt-password|--resume-from|--settings|--global-settings|--activate-profiles|--projects" __mvnparams="-Dmaven.test.skip=true -Dsurefire.useFile=false -Dmaven.surefire.debug -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y -Dverbose -Dmaven.test.failure.ignore=true" __mvnpackaging="pom jar maven-plugin ejb war ear rar par" __mvnclassifiers="sources test-jar" __mvnscopes="compile test runtime system" # phases for the default lifecycle __mvndefault_phases="validate initialize generate-sources process-sources generate-resources process-resources compile process-classes generate-test-sources process-test-sources generate-test-resources process-test-resources test-compile process-test-classes test package pre-integration-test integration-test post-integration-test verify install deploy" # phases for the clean lifecycle __mvnclean_phases="pre-clean clean post-clean" # phases for the site lifecycle __mvnsite_phases="pre-site site post-site site-deploy" # core plugin targets __mvncore_plugins="clean:clean clean:help compiler:compile compiler:testCompile compiler:help deploy:deploy deploy:deploy-file deploy:help install:install install:install-file install:help resources:resources resources:testResources resources:copy-resources resources:help site:site site:deploy site:run site:stage site:stage-deploy site:attach-descriptor site:jar site:help surefire:test surefire:help verifier:verify verifier:help" # packaging plugin targets __mvnpackaging_plugins="ear:ear ear:generate-application-xml ear:help jar:jar jar:test-jar jar:sign jar:sign-verify jar:help rar:rar rar:help war:war war:exploded war:inplace war:manifest war:help shade:shade shade:help" # reporting plugin targets __mvnreporting_plugins="changelog:changelog changelog:dev-activity changelog:file-activity changelog:help changes:announcement-mail changes:announcement-generate changes:changes-report changes:jira-report changes:changes-validate changes:help checkstyle:checkstyle checkstyle:check checkstyle:help doap:generate doap:help docck:check docck:help javadoc:javadoc javadoc:test-javadoc javadoc:aggregate javadoc:test-aggregate javadoc:jar javadoc:test-jar javadoc:help jxr:jxr jxr:test-jxr jxr:help pmd:pmd pmd:cpd pmd:check pmd:cpd-check pmd:help project-info-reports:cim project-info-reports:dependencies project-info-reports:dependency-convergence project-info-reports:dependency-management project-info-reports:index project-info-reports:issue-tracking project-info-reports:license project-info-reports:mailing-list project-info-reports:plugin-management project-info-reports:project-team project-info-reports:scm project-info-reports:summary project-info-reports:help surefire-report:report surefire-report:report-only surefire-report:help" # tools plugin targets __mvntools_plugins="ant:ant ant:clean ant:help antrun:run antrun:help archetype:create archetype:generate archetype:create-from-project archetype:crawl archetype:help assembly:assembly assembly:directory assembly:directory-single assembly:single assembly:help dependency:copy dependency:copy-dependencies dependency:unpack dependency:unpack-dependencies dependency:resolve dependency:list dependency:sources dependency:resolve-plugins dependency:go-offline dependency:purge-local-repository dependency:build-classpath dependency:analyze dependency:analyze-dep-mgt dependency:tree dependency:help enforcer:enforce enforcer:display-info enforcer:help gpg:sign gpg:sign-and-deploy-file gpg:help help:active-profiles help:all-profiles help:describe help:effective-pom help:effective-settings help:evaluate help:expressions help:system invoker:install invoker:run invoker:help one:convert one:deploy-maven-one-repository one:install-maven-one-repository one:maven-one-plugin one:help patch:apply patch:help pdf:pdf pdf:help plugin:descriptor plugin:report plugin:updateRegistry plugin:xdoc plugin:addPluginArtifactMetadata plugin:helpmojo plugin:help release:clean release:prepare release:rollback release:perform release:stage release:branch release:help reactor:resume reactor:make reactor:make-dependents reactor:make-scm-changes reactor:help remote-resources:bundle remote-resources:process remote-resources:help repository:bundle-create repository:bundle-pack repository:help scm:branch scm:validate scm:add scm:unedit scm:export scm:bootstrap scm:changelog scm:list scm:checkin scm:checkout scm:status scm:update scm:diff scm:update-subprojects scm:edit scm:tag scm:help source:aggregate source:jar source:test-jar source:jar-no-fork source:test-jar-no-fork source:help stage:copy stage:help" # IDE plugin targets __mvnide_plugins="eclipse:clean eclipse:configure-workspace eclipse:eclipse eclipse:help eclipse:install-plugins eclipse:m2eclipse eclipse:make-artifacts eclipse:myeclipse eclipse:myeclipse-clean eclipse:rad eclipse:rad-clean eclipse:remove-cache eclipse:to-maven idea:clean idea:help idea:idea idea:module idea:project idea:workspace" __mvnother_plugins=" plexus:app plexus:bundle-application plexus:bundle-runtime plexus:descriptor plexus:runtime plexus:service jetty:run-war jetty:run cargo:start cargo:stop dbunit:export dbunit:operation exec:exec exec:java exec:help hibernate3:hbm2cfgxml hibernate3:hbm2ddl hibernate3:hbm2doc hibernate3:hbm2hbmxml hibernate3:hbm2java hibernate3:schema-export hibernate3:schema-update groovy:compile groovy:console groovy:execute groovy:generateStubs groovy:generateTestStubs groovy:help groovy:providers groovy:shell groovy:testCompile gwt:compile gwt:eclipse gwt:eclipseTest gwt:generateAsync gwt:help gwt:i18n gwt:test javacc:help javacc:javacc javacc:jjdoc javacc:jjtree javacc:jjtree-javacc javacc:jtb javacc:jtb-javacc jboss:configure jboss:deploy jboss:harddeploy jboss:start jboss:stop jboss:undeploy jboss-packaging:esb jboss-packaging:esb-exploded jboss-packaging:har jboss-packaging:har-exploded jboss-packaging:sar jboss-packaging:sar-exploded jboss-packaging:sar-inplace jboss-packaging:spring jpox:enhance jpox:schema-create jpox:schema-dbinfo jpox:schema-delete jpox:schema-info jpox:schema-validate make:autoreconf make:chmod make:chown make:compile make:configure make:help make:make-clean make:make-dist make:make-install make:test make:validate-pom nbm:autoupdate nbm:branding nbm:cluster nbm:directory nbm:jar nbm:nbm nbm:populate-repository nbm:run-ide nbm:run-platform tomcat:deploy tomcat:exploded tomcat:info tomcat:inplace tomcat:list tomcat:redeploy tomcat:resources tomcat:roles tomcat:run tomcat:run-war tomcat:sessions tomcat:start tomcat:stop tomcat:undeploy wagon:copy wagon:download wagon:download-single wagon:help wagon:list wagon:merge-maven-repos wagon:upload wagon:upload-single was6:clean was6:ejbdeploy was6:help was6:installApp was6:wsAdmin was6:wsDefaultBindings was6:wsListApps was6:wsStartApp was6:wsStartServer was6:wsStopApp was6:wsStopServer was6:wsUninstallApp weblogic:appc weblogic:clientgen weblogic:clientgen9 weblogic:deploy weblogic:jwsc weblogic:listapps weblogic:redeploy weblogic:servicegen weblogic:start weblogic:stop weblogic:undeploy weblogic:wsdlgen" __mvncustom_plugins="" ### End of customizable area if [ -e ~/.m2/bash_completion ]; then source ~/.m2/bash_completion fi __mvnphases="${__mvndefault_phases} ${__mvnclean_phases} ${__mvnsite_phases}" __mvnall_plugin_and_goals="${__mvncore_plugins} ${__mvnpackaging_plugins} ${__mvnreporting_plugins} ${__mvntools_plugins} ${__mvnide_plugins} ${__mvnother_plugins} ${__mvncustom_plugins}" __mvnplugins=$(echo ${__mvnall_plugin_and_goals} | sed -re 's/:[^ \t]+/:\n/g' | sort -u | sed 's/[\s\n]//g') __mvncomp_1 () { local c IFS=' '$'\t'$'\n' for c in $1; do case "$c$2" in --*=*) printf %s$'\n' "$c$2" ;; *.) printf %s$'\n' "$c$2" ;; *) printf %s$'\n' "$c$2 " ;; esac done } __mvncomp () { local genOpt= if [ "$1" == "-nospace" ]; then genOpt="true" shift fi local cur="${COMP_WORDS[COMP_CWORD]}" if [ $# -gt 2 ]; then cur="$3" fi case "$cur" in -*=) COMPREPLY=() ;; *) local IFS=$'\n' COMPREPLY=($(compgen -P "$2" \ -W "$(__mvncomp_1 "$1" "$4")" \ -- "$cur")) ;; esac } __mvnlist_projects () { local poms=$(find . -name pom.xml -print) echo $poms | while read -d ' ' POM; do local DIR=$(dirname "$POM") if [[ "$DIR" != "." ]]; then echo "${DIR#./}" fi done } __mvnlist_goals () { local plugin=$1 local pfx="" if [[ "$2" ]]; then pfx=$2 fi echo ${__mvnall_plugin_and_goals} | tr ' ' '\n' | grep "$plugin" | sed "s/.*:/${pfx}/g" } __mvnlist_poms () { for x in `find -type f -name pom.xml -or -name *.pom` ; do echo ${x#./} ; done } __mvnlist_jars () { for x in `find -type f -name *.jar` ; do echo ${x#./} ; done } __mvnlist_prefix () { local pfx=$1 IFS=' '$'\t'$'\n' shift local list=$@ for c in $list; do echo "$pfx$c" done } __mvnprefix_equals () { local cur=$1 local pfx="" case "$COMP_WORDBREAKS" in *=*) : great ;; *) pfx="${cur%%=*}=" ;; esac echo $pfx } __mvnprefix_colon () { local cur=$1 local pfx="" case "$COMP_WORDBREAKS" in *:*) : great ;; *) pfx="${cur%%:*}:" ;; esac echo $pfx } __mvnprefix_comma () { local cur=$1 local pfx="" case "$COMP_WORDBREAKS" in *,*) : great ;; *) pfx="${cur%%,*}," ;; esac echo $pfx } __mvnplugin_help () { local plugin=$1 local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in goal=*) __mvncomp "$(__mvnlist_goals $plugin)" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) __mvncomp "detail lineLength= indentSize= $(__mvnlist_goals $plugin 'goal=')" "-D" "${cur}" ;; esac } __mvnhelp_describe () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in cmd=*:*) local plugin="${cur#*=}" plugin="${plugin%%:*}:" __mvncomp "$(__mvnlist_goals $plugin)" "$(__mvnprefix_colon $cur)" "${cur#*:}" ;; cmd=*) __mvncomp "${__mvnphases} ${__mvnall_plugin_and_goals}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; plugin=*) __mvncomp "org.apache.maven.plugins:maven-" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; groupId=*) __mvncomp "org.apache.maven.plugins" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; artifactId=*) __mvncomp "" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) # present several cmd= options to block full completion and insertion of a space __mvncomp "detail cmd=press cmd=tab plugin= groupId= artifactId=" "-D" "${cur}" ;; esac } __mvndeploy_deploy () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" __mvncomp "altDeploymentRepository= skip=true updateReleaseInfo=true" "-D" "${cur}" } __mvndeploy_deploy_file () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in file=*) COMPREPLY=( $( compgen -f -P "$(__mvnprefix_equals $cur)" -- "${cur#*=}" ) ) ;; pomFile=*) __mvncomp "$(__mvnlist_poms)" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; packaging=*) __mvncomp "${__mvnpackaging}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) local options="artifactId= classifier= description= file=press file=tab generatePom=true groupId= pomFile=press pomFile=tab repositoryId= repositoryLayout=legacy uniqueVersion=false url= version=" options="$options $(__mvnlist_prefix 'packaging=' ${__mvnpackaging} )" __mvncomp "$options" "-D" "${cur}" ;; esac } __mvninstall_install_file () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in file=*) COMPREPLY=( $( compgen -f -P "$(__mvnprefix_equals $cur)" -- "${cur#*=}" ) ) ;; pomFile=*) __mvncomp "$(__mvnlist_poms)" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; sources=*) __mvncomp "$(__mvnlist_jars)" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; javadoc=*) __mvncomp "$(__mvnlist_jars)" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; packaging=*) __mvncomp "${__mvnpackaging}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) local options="artifactId= classifier= file=press file=tab generatePom=true groupId= pomFile=press pomFile=tab createChecksum=true url= version= sources=press sources=tab javadoc=press javadoc=tab" options="$options $(__mvnlist_prefix 'packaging=' ${__mvnpackaging} )" __mvncomp "$options" "-D" "${cur}" ;; esac } __mvnexec_java () { local cur="${COMP_WORDS[COMP_CWORD]}" if [[ "${cur}" == "=" ]]; then cur="${COMP_WORDS[COMP_CWORD-1]}=" fi cur="${cur#-Dexec.}" case "${cur}" in classpathScope=*) __mvncomp "${__mvnscopes}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) local options="mainClass= args= arguments= includeProjectDependencies=false includePluginDependencies=true classpathScope=press classpathScope=tab cleanupDaemonThreads=false daemonThreadJoinTimeout= stopUnresponsiveDaemonThreads=" __mvncomp "$options" "-Dexec." "${cur}" ;; esac } __mvnarchetype_generate () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in basedir=*) COMPREPLY=( $( compgen -d -P "$(__mvnprefix_equals $cur)" -- "${cur#*=}" ) ) ;; *) local options="archetypeArtifactId= archetypeCatalog= archetypeGroupId= archetypeRepository= archetypeVersion= basedir=press basedir=tab goals= interactiveMode=" __mvncomp "$options" "-D" "${cur}" ;; esac __mvncomp "archetypeArtifactId= archetypeCatalog= archetypeGroupId= archetypeRepository= archetypeVersion= basedir= goals= interactiveMode=" \ "-D" "${cur}" } __mvndependency_x_dependencies () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in classifier=*) __mvncomp "${__mvnclassifiers}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) __mvncomp "$(__mvnlist_prefix 'classifier=' ${__mvnclassifiers})" "-D" "${cur}" ;; esac } __mvndependency_resolve () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in classifier=*) __mvncomp "${__mvnclassifiers}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) __mvncomp "$(__mvnlist_prefix 'classifier=' ${__mvnclassifiers}) excludeArtifactIds= excludeClassifiers= excludeGroupIds= excludeScope= excludeTransitive=true excludeTypes= includeArtifactIds= includeClassifiers= includeGroupIds= includeScope= includeTypes= markersDirectory= outputAbsoluteArtifactFilename= outputFile= outputScope=false overWriteIfNewer=false overWriteReleases=true overWriteSnapshots=true silent=true type=" "-D" "${cur}" ;; esac } __mvndependency_purge_local_repository () { local fuzziness="file version artifactId groupId" local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in resolutionFuzziness=*) __mvncomp "${fuzziness}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) __mvncomp "actTransitively=false exclude= reResolve=false verbose=true $(__mvnlist_prefix 'resolutionFuzziness=' ${fuzziness})" "-D" "${cur}" ;; esac } __mvndependency_analyze () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" __mvncomp "ignoreNonCompile=true outputXML=true scriptableFlag= scriptableOutput=true verbose=true" "-D" "${cur}" } __mvndependency_analyze_dep_mgt () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" __mvncomp "ignoreDirect=false" "-D" "${cur}" } __mvndependency_tree () { local tokens="whitespace standard extended" local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in tokens=*) __mvncomp "${tokens}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) __mvncomp "excludes= includes= outputFile= scope= verbose=true $(__mvnlist_prefix 'tokens=' ${tokens})" "-D" "${cur}" ;; esac } __mvnrelease_prepare () { local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" __mvncomp "username= dryRun=true" "-D" "${cur}" } __mvnscm_checkin () { local versionType="branch tag revision" local cur="${COMP_WORDS[COMP_CWORD]}" cur="${cur#-D}" case "${cur}" in scmVersionType=*) __mvncomp "${versionType}" "$(__mvnprefix_equals $cur)" "${cur#*=}" ;; *) __mvncomp "username= message= passphrase= password= scmVersion= $(__mvnlist_prefix 'scmVersionType=' ${versionType})" "-D" "${cur}" ;; esac } _mvn () { local i prev c=1 cmd option optionArg=0 cmdcomplete=0 local cur="${COMP_WORDS[COMP_CWORD]}" COMPREPLY=() #echo " cur $cur" # discover the options and the command while [ $c -le $COMP_CWORD ]; do prev=$i i="${COMP_WORDS[c]}" c=$((++c)) optionArg=0 # skip option argument if [[ $prev == @(${__mvnoptsWithArg}) ]]; then optionArg=1 continue; fi #echo "c $c i '$i'" if [[ $cmdcomplete == -3 ]]; then cmdcomplete=1 # complete command break; fi if [[ "$i" == "" ]]; then if [[ $cmd ]]; then cmdcomplete=1 # complete command break; fi continue fi if [[ "$i" == ":" ]]; then if [[ $cmd ]]; then cmdcomplete=$((cmdcomplete-1)) cmd="${cmd}:" fi continue fi case "$i" in --version|--help) return ;; -*) option="$i" ;; *) if [[ ! $cmd ]]; then # incomplete command cmdcomplete=$((cmdcomplete-1)) cmd="$i" local next=$c if [[ $next -lt $COMP_CWORD ]]; then #echo "next ${COMP_WORDS[next]}" if [[ "${COMP_WORDS[next]}" != ":" ]]; then break fi fi else cmdcomplete=$((cmdcomplete-1)) cmd="$cmd$i" fi ;; esac done #echo "cmd $cmd cmdcomplete $cmdcomplete" if [[ ! $cmd && $option && ($optionArg == 0) ]]; then case "$option" in --file) __mvncomp "$(__mvnlist_poms)" return ;; --define) __mvncomp "maven.test.skip=true" return ;; --resume-from) __mvncomp "$(__mvnlist_projects)" return ;; --projects) case "${cur}" in *,*) __mvncomp "$(__mvnlist_projects)" "$(__mvnprefix_comma $cur)" "${cur#*,}" ;; *) __mvncomp "$(__mvnlist_projects)" ;; esac return ;; --settings|--global-settings) COMPREPLY=( $( compgen -f -- $cur ) ) return ;; --*) COMPREPLY=() ;; esac fi if [ $cmdcomplete -lt 0 ]; then #echo "incomplete cmd $cmd" case "${cmd}" in *:) local plugin="${cmd%%:}:" #echo "plugin $plugin" __mvncomp "$(__mvnlist_goals $plugin)" "$(__mvnprefix_colon $cmd)" "" ;; *:*) local plugin="${cmd%%:*}:" #echo "plugin $plugin" __mvncomp "$(__mvnlist_goals $plugin)" "$(__mvnprefix_colon $cmd)" "${cmd#*:}" ;; *) __mvncomp "${__mvnphases} ${__mvnall_plugin_and_goals}" ;; esac return fi if [ -z "$cmd" ]; then #echo "empty cmd cur $cur" case "${cur}" in -D*=*) COMPREPLY=() ;; -*) __mvncomp "${__mvnopts} ${__mvnparams}" ;; --*) __mvncomp "${__mvnopts}" ;; *) __mvncomp "${__mvnphases} ${__mvnall_plugin_and_goals}" ;; esac return fi #echo "cmd $cmd" case "$cmd" in *:help) local plugin="${cmd%%:*}:" __mvnplugin_help $plugin ;; help:describe) __mvnhelp_describe ;; deploy:deploy) __mvndeploy_deploy ;; deploy:deploy-file) __mvndeploy_deploy_file ;; archetype:generate) __mvnarchetype_generate ;; dependency:copy-dependencies) __mvndependency_x_dependencies ;; dependency:unpack-dependencies) __mvndependency_x_dependencies ;; dependency:resolve) __mvndependency_resolve ;; dependency:resolve-plugins) __mvndependency_resolve ;; dependency:source) __mvndependency_resolve ;; dependency:go-offline) __mvndependency_resolve ;; dependency:purge-local-repository) __mvndependency_purge_local_repository ;; dependency:analyze) __mvndependency_analyze ;; dependency:analyze-dep-mgt) __mvndependency_analyze_dep_mgt ;; exec:java) __mvnexec_java ;; install:install-file) __mvninstall_install_file ;; release:prepare) __mvnrelease_prepare ;; scm:checkin) __mvnscm_checkin ;; *) ;; esac } complete -o default -o nospace -F _mvn mvn mvnDebug debian/copyright0000664000000000000000000000160412234461017011124 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Maven Compiler Plugin Upstream-Contact: Apache Maven team Source: http://maven.apache.org/ Files: * Copyright: 2001-2009, The Apache Software Foundation. License: Apache-2.0 Files: debian/bash_completion.d/maven2 Copyright: 2006-2007, Shawn O. Pearce 2009, Ludovic Claude License: GPL-2 Files: debian/* Copyright: 2007, Paul Cager 2009, Ludovic Claude License: GPL-2 License: Apache-2.0 On Debian GNU/Linux system you can find the complete text of the Apache 2.0 license in '/usr/share/common-licenses/Apache-2.0'. License: GPL-2 On Debian GNU/Linux system you can find the complete text of the GNU General Public License version 2 license in '/usr/share/common-licenses/GPL-2'. debian/maven2.postinst0000664000000000000000000000101212230200016012141 0ustar #!/bin/sh set -e basedir=/usr/share/maven2 priority=200 case "$1" in configure) update-alternatives \ --install /usr/bin/mvn mvn $basedir/bin/mvn $priority \ --slave \ /usr/bin/mvnDebug \ mvnDebug \ $basedir/bin/mvnDebug \ --slave \ /usr/share/man/man1/mvn.1.gz \ mvn.1.gz \ $basedir/man/mvn.1.gz \ --slave \ /usr/share/man/man1/mvnDebug.1.gz \ mvnDebug.1.gz \ $basedir/man/mvnDebug.1.gz ;; esac #DEBHELPER# exit 0 debian/watch0000664000000000000000000000021412230200016010200 0ustar version=3 opts=uversionmangle=s/-RC/~RC/ \ http://svn.apache.org/repos/asf/maven/maven-2/tags/ \ maven-(2.*)/ debian debian/orig-tar.sh debian/orig-tar.sh0000775000000000000000000000063412230200016011240 0ustar #!/bin/sh -e VERSION=$2 TAR=../maven2_$VERSION.orig.tar.gz DIR=maven2-$VERSION TAG=$(echo maven-$2 | sed s/~RC/-RC/ ) svn export http://svn.apache.org/repos/asf/maven/maven-2/tags/$TAG $DIR GZIP=--best tar -c -z -f $TAR -X debian/orig-tar.exclude $DIR rm -rf $DIR ../$TAG # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi debian/maven.rules0000664000000000000000000000040112247057324011353 0ustar org.codehaus.plexus plexus-container-default jar s/1\.0-alpha.*/1.0-alpha/ # keep the version for all Maven plugins as versionless plugins don't work * * maven-plugin * junit junit jar s/3\..*/3.x/ org.apache.maven.plugins maven-shade-plugin * s/.*/1.7.1/ debian/rules0000775000000000000000000000366112247074064010264 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(DEB_UPSTREAM_VERSION) JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := ant-trax DEB_ANT_BUILD_TARGET := maven-compile DEB_ANT_CLEAN_TARGET := clean-bootstrap DEB_ANT_BUILDFILE := build.xml DEB_ANT_ARGS := -Dpackage=$(PACKAGE) -Dversion=$(VERSION) -Dmaven.repo.local=$(realpath $(DEB_BUILDDIR))/debian/tmp/maven-repo API_DOCS := build/doc/api BASE_MODULES := apache-maven maven-artifact-manager maven-artifact \ maven-core maven-error-diagnostics maven-model maven-monitor \ maven-plugin-api maven-plugin-descriptor maven-plugin-parameter-documenter \ maven-plugin-registry maven-profile maven-project maven-repository-metadata \ maven-settings maven-toolchain get-orig-source: -uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename configure/$(PACKAGE):: mh_patchpoms -p$(PACKAGE) makebuilddir/$(PACKAGE):: install -d $(DEB_BUILDDIR)/debian/tmp/bootstrap/META-INF/plexus install debian/components.xml $(DEB_BUILDDIR)/debian/tmp/bootstrap/META-INF/plexus/ install -d $(DEB_BUILDDIR)/debian/tmp/maven-repo cp -rL /usr/share/maven-repo/* $(DEB_BUILDDIR)/debian/tmp/maven-repo/ binary-post-install/$(PACKAGE):: dh_install -p$(PACKAGE) apache-maven/target/maven-debian-uber.jar usr/share/maven2/lib/ # compress manpages find $(DEB_BUILDDIR)/debian/$(PACKAGE)/usr/share/maven2/man -type f | xargs gzip -9v -n chmod 0755 $(DEB_BUILDDIR)/debian/$(PACKAGE)/usr/share/maven2/bin/mvnDebug clean:: # The poms are already unpatched at the end of the build but the pom.xml.save files are still there, why? rm -Rf apache-maven/pom.xml.save pom.xml.save -rm -rf debian/tmp/mvn-repo -find . -name target -type d | xargs rm -rf # No documentation released yet. #binary-post-install/$(PACKAGE)-doc:: debian/compat0000664000000000000000000000000212230200225010352 0ustar 9 debian/control0000664000000000000000000000442512247073245010606 0ustar Source: maven2 Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Ludovic Claude , Torsten Werner , Emmanuel Bourg Build-Depends-Indep: ant-optional, junit, libmaven-clean-plugin-java, libmaven-compiler-plugin-java (>= 2.5.1), libmaven-install-plugin-java (>= 2.4), libmaven-jar-plugin-java, libmaven-resources-plugin-java, libmaven-shade-plugin-java (>= 1.7.1), libmaven2-core-java (>= 2.2.1-14~), maven-ant-helper, maven-repo-helper Build-Depends: ant, cdbs (>= 0.4.5.3), debhelper (>= 9), default-jdk Standards-Version: 3.9.5 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/maven2 Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/maven2 Homepage: http://maven.apache.org Package: maven2 Architecture: all Depends: default-jre (>= 1.5) | default-jre-headless (>= 1.5) | java2-runtime | java2-runtime-headless, libmaven2-core-java, ${misc:Depends} Recommends: libmaven-clean-plugin-java, libmaven-compiler-plugin-java (>= 2.5.1), libmaven-install-plugin-java (>= 2.4), libmaven-jar-plugin-java, libmaven-resources-plugin-java, libmaven-shade-plugin-java (>= 1.7.1) Conflicts: maven2-binary Replaces: maven2-binary Description: Java software project management and comprehension tool Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. . Maven's primary goal is to allow a developer to comprehend the complete state of a development effort in the shortest period of time. In order to attain this goal there are several areas of concern that Maven attempts to deal with: . * Making the build process easy * Providing a uniform build system * Providing quality project information * Providing guidelines for best practices development * Allowing transparent migration to new features debian/orig-tar.exclude0000664000000000000000000000002012230200016012241 0ustar *.jar maven-* debian/patches/0000775000000000000000000000000012243433121010612 5ustar debian/patches/series0000664000000000000000000000013512230200016012015 0ustar mvn-cmd.patch mvnDebug-cmd.patch build.patch pom.patch remove-backport-util-concurrent.patch debian/patches/mvn-cmd.patch0000664000000000000000000000445612230200016013174 0ustar --- a/apache-maven/src/bin/mvn +++ b/apache-maven/src/bin/mvn @@ -68,9 +68,80 @@ ;; esac +if [ -z "$M2_HOME" ] ; then + M2_HOME="/usr/share/maven2" +fi + +# Debian patch - search for preferred JRE + +# Given the "java" executable as an argument, find JAVA_HOME +find_java() { + # First check if it is a JDK in the /usr/lib/jvm directory, or a symlink there. + # The test is somewhat complicated due to the different ways the Java implementations + # are set up with the alternatives system + # e.g. + # /usr/bin/java -> /etc/alternatives/java -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/java + # or + # /usr/bin/java -> /etc/alternatives/java -> /usr/lib/jvm/java-gcj/bin/java -> /usr/bin/gij-4.2 + + JAVA_HOME=$1 + while true ; do + case $JAVA_HOME in + /usr/lib/jvm/*) + # Found it! Return the correct paremt directory. + + JAVA_HOME=`echo $JAVA_HOME | sed 's:\(/usr/lib/jvm/[^/]*\).*:\1:'` + return + ;; + *) ;; + esac + + if [ -h $JAVA_HOME ] ; then + JAVA_HOME=`readlink $JAVA_HOME` + else + break + fi + done + + # Not found in the Debian alternatives system, so presumably + # it is a user-installed JDK/JRE. Might as well be helpful + # and try to find JAVA_HOME. + + # First try for a JDK: + JAVA_HOME=`readlink -e $1` + while [ `dirname $JAVA_HOME` != / ]; do + if [ -e $JAVA_HOME/lib/tools.jar ]; then + return + fi + + JAVA_HOME=`dirname $JAVA_HOME` + done + + # If we get here we did not find a JDK. Search again for a JRE: + JAVA_HOME=`readlink -e $1` + while [ `dirname $JAVA_HOME` != / ]; do + if [ -e $JAVA_HOME/bin/java ]; then + return + fi + + JAVA_HOME=`dirname $JAVA_HOME` + done + + # Nothing found; leave blank + JAVA_HOME= +} + + if [ -z "$JAVA_HOME" ] ; then if [ -r /etc/gentoo-release ] ; then JAVA_HOME=`java-config --jre-home` + else + # Debian patch - search for preferred JRE + if [ -n "$JAVACMD" ] ; then + find_java "$JAVACMD" + else + find_java `which java` + fi fi fi @@ -156,7 +227,7 @@ exec "$JAVACMD" \ $MAVEN_OPTS \ - -classpath "${M2_HOME}"/boot/classworlds-*.jar \ + -classpath "${M2_HOME}"/boot/classworlds.jar \ "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \ "-Dmaven.home=${M2_HOME}" \ ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS debian/patches/pom.patch0000664000000000000000000000706112230200016012421 0ustar --- a/pom.xml +++ b/pom.xml @@ -20,13 +20,7 @@ 4.0.0 - - org.apache.maven - maven-parent - 11 - ../pom/maven/pom.xml - - + org.apache.maven maven 2.2.1 pom @@ -121,6 +115,7 @@ http://svn.apache.org/viewvc/maven/maven-2/tags/maven-2.2.1 + + <- needed for release: default value "(,${project.version})" for 2.0.10 is 2.0.10-SNAPSHOT - 2.2.0 org/apache/maven/artifact/manager/WagonManager* @@ -248,8 +243,10 @@ +--> + apache-maven --- a/apache-maven/pom.xml +++ b/apache-maven/pom.xml @@ -32,19 +32,8 @@ - maven-surefire-plugin - - - - basedir - ${basedir} - - - - - maven-shade-plugin - 1.2 + 1.2.1 package @@ -60,8 +49,17 @@ true - + + + + + xerces:xercesImpl + + META-INF/services/** + + + @@ -122,6 +120,7 @@ + debian/patches/remove-backport-util-concurrent.patch0000664000000000000000000000105512230200016020056 0ustar Description: Remove the dependency on backport-util-concurrent Author: Emmanuel Bourg Forwarded: not-needed --- a/pom.xml +++ b/pom.xml @@ -464,11 +464,6 @@ 1.5.6 - backport-util-concurrent - backport-util-concurrent - 3.1 - - easymock easymock 1.2_Java1.3 debian/patches/build.patch0000664000000000000000000002301412243433121012732 0ustar --- a/build.xml +++ b/build.xml @@ -33,21 +33,16 @@ --> - + - - - - - - + Using the local repository at: ${maven.repo.local} - + @@ -65,22 +60,13 @@ Using Maven home at: ${maven.home} - - - - - - - - - - - - - - - + + + + + + @@ -88,6 +74,7 @@ maven.home = ${maven.home} + maven.repo.local = ${maven.repo.local} maven.assembly = ${maven.assembly} @@ -95,44 +82,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -193,6 +178,7 @@ --> + @@ -314,9 +300,4 @@ - - - Using temporary maven install directory: ${maven.home} - - debian/patches/mvnDebug-cmd.patch0000664000000000000000000000504012230200016014131 0ustar --- old/apache-maven/src/bin/mvnDebug 2009-12-18 15:08:02.000000000 +0100 +++ new/apache-maven/src/bin/mvnDebug 2009-12-18 15:07:34.000000000 +0100 @@ -72,9 +72,80 @@ ;; esac +if [ -z "$M2_HOME" ] ; then + M2_HOME="/usr/share/maven2" +fi + +# Debian patch - search for preferred JRE + +# Given the "java" executable as an argument, find JAVA_HOME +find_java() { + # First check if it is a JDK in the /usr/lib/jvm directory, or a symlink there. + # The test is somewhat complicated due to the different ways the Java implementations + # are set up with the alternatives system + # e.g. + # /usr/bin/java -> /etc/alternatives/java -> /usr/lib/jvm/java-1.5.0-sun/jre/bin/java + # or + # /usr/bin/java -> /etc/alternatives/java -> /usr/lib/jvm/java-gcj/bin/java -> /usr/bin/gij-4.2 + + JAVA_HOME=$1 + while true ; do + case $JAVA_HOME in + /usr/lib/jvm/*) + # Found it! Return the correct paremt directory. + + JAVA_HOME=`echo $JAVA_HOME | sed 's:\(/usr/lib/jvm/[^/]*\).*:\1:'` + return + ;; + *) ;; + esac + + if [ -h $JAVA_HOME ] ; then + JAVA_HOME=`readlink $JAVA_HOME` + else + break + fi + done + + # Not found in the Debian alternatives system, so presumably + # it is a user-installed JDK/JRE. Might as well be helpful + # and try to find JAVA_HOME. + + # First try for a JDK: + JAVA_HOME=`readlink -e $1` + while [ `dirname $JAVA_HOME` != / ]; do + if [ -e $JAVA_HOME/lib/tools.jar ]; then + return + fi + + JAVA_HOME=`dirname $JAVA_HOME` + done + + # If we get here we did not find a JDK. Search again for a JRE: + JAVA_HOME=`readlink -e $1` + while [ `dirname $JAVA_HOME` != / ]; do + if [ -e $JAVA_HOME/bin/java ]; then + return + fi + + JAVA_HOME=`dirname $JAVA_HOME` + done + + # Nothing found; leave blank + JAVA_HOME= +} + + if [ -z "$JAVA_HOME" ] ; then if [ -r /etc/gentoo-release ] ; then JAVA_HOME=`java-config --jre-home` + else + # Debian patch - search for preferred JRE + if [ -n "$JAVACMD" ] ; then + find_java "$JAVACMD" + else + find_java `which java` + fi fi fi @@ -132,7 +203,7 @@ JAVACMD="$JAVA_HOME/bin/java" fi else - JAVACMD=java + JAVACMD="`which java`" fi fi @@ -161,9 +232,8 @@ exec "$JAVACMD" \ $MAVEN_OPTS \ $MAVEN_DEBUG_OPTS \ - -classpath "${M2_HOME}"/boot/classworlds-*.jar \ + -classpath "${M2_HOME}"/boot/classworlds.jar \ "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \ "-Dmaven.home=${M2_HOME}" \ ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS - debian/mvnDebug.10000664000000000000000000000552512230200016011012 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. .TH APACHE "1" "July 2009" "Apache Maven 2.2.0" "User Commands" .SH NAME mvnDebug \- Command to start the Maven system in Debug mode .SH DESCRIPTION usage: mvn [options] [] [] .SH OPTIONS .TP \fB\-am\fR,\-\-also\-make If project list is specified, also build projects required by the list .TP \fB\-amd\fR,\-\-also\-make\-dependents If project list is specified, also build projects that depend on projects on the list .TP \fB\-B\fR,\-\-batch\-mode Run in non\-interactive (batch) mode .TP \fB\-C\fR,\-\-strict\-checksums Fail the build if checksums don't match .TP \fB\-c\fR,\-\-lax\-checksums Warn if checksums don't match .TP \fB\-cpu\fR,\-\-check\-plugin\-updates Force upToDate check for any relevant registered plugins .TP \fB\-D\fR,\-\-define Define a system property .TP \fB\-e\fR,\-\-errors Produce execution error messages .TP \fB\-emp\fR,\-\-encrypt\-master\-password Encrypt master security password .TP \fB\-ep\fR,\-\-encrypt\-password Encrypt server password .TP \fB\-f\fR,\-\-file Force the use of an alternate POM file. .TP \fB\-fae\fR,\-\-fail\-at\-end Only fail the build afterwards; allow all non\-impacted builds to continue .TP \fB\-ff\fR,\-\-fail\-fast Stop at first failure in reactorized builds .TP \fB\-fn\fR,\-\-fail\-never NEVER fail the build, regardless of project result .TP \fB\-gs\fR,\-\-global\-settings Alternate path for the global settings file .TP \fB\-h\fR,\-\-help Display help information .TP \fB\-N\fR,\-\-non\-recursive Do not recurse into sub\-projects .TP \fB\-npr\fR,\-\-no\-plugin\-registry Don't use ~/.m2/plugin\-registry.xml for plugin versions .TP \fB\-npu\fR,\-\-no\-plugin\-updates Suppress upToDate check for any relevant registered plugins .TP \fB\-o\fR,\-\-offline Work offline .TP \fB\-P\fR,\-\-activate\-profiles Comma\-delimited list of profiles to activate .TP \fB\-pl\fR,\-\-projects Build specified reactor projects instead of all projects .TP \fB\-q\fR,\-\-quiet Quiet output \- only show errors .TP \fB\-r\fR,\-\-reactor Dynamically build reactor from subdirectories .TP \fB\-rf\fR,\-\-resume\-from Resume reactor from specified project .TP \fB\-s\fR,\-\-settings Alternate path for the user settings file .TP \fB\-U\fR,\-\-update\-snapshots Forces a check for updated releases and snapshots on remote repositories .TP \fB\-up\fR,\-\-update\-plugins Synonym for cpu .TP \fB\-V\fR,\-\-show\-version Display version information WITHOUT stopping build .TP \fB\-v\fR,\-\-version Display version information .TP \fB\-X\fR,\-\-debug Produce execution debug output .PP .SH "SEE ALSO" The full documentation for .B Apache is maintained as a Texinfo manual. If the .B info and .B Apache programs are properly installed at your site, the command .IP .B info Apache .PP should give you access to the complete manual. debian/maven2.links0000664000000000000000000000025112230200016011402 0ustar /etc/maven2 /usr/share/maven2/conf /usr/share/maven2/conf/m2.conf /usr/share/maven2/bin/m2.conf /usr/share/java/classworlds.jar usr/share/maven2/boot/classworlds.jar debian/maven2.install0000664000000000000000000000047612234461017011757 0ustar apache-maven/src/bin/mvn usr/share/maven2/bin/ apache-maven/src/bin/mvnDebug usr/share/maven2/bin/ apache-maven/src/bin/m2.conf etc/maven2 apache-maven/src/conf/settings.xml /etc/maven2 debian/bash_completion.d/maven2 etc/bash_completion.d debian/mvn.1 usr/share/maven2/man/ debian/mvnDebug.1 usr/share/maven2/man/ debian/components.xml0000664000000000000000000003600712230200016012067 0ustar org.apache.maven.plugin.PluginManager org.apache.maven.plugin.DefaultPluginManager org.apache.maven.project.path.PathTranslator org.apache.maven.plugin.MavenPluginCollector org.apache.maven.plugin.version.PluginVersionManager org.apache.maven.artifact.factory.ArtifactFactory org.apache.maven.artifact.resolver.ArtifactResolver org.apache.maven.artifact.metadata.ArtifactMetadataSource org.apache.maven.plugin.PluginMappingManager org.apache.maven.execution.RuntimeInformation org.apache.maven.project.MavenProjectBuilder org.apache.maven.extension.ExtensionManager org.apache.maven.extension.DefaultExtensionManager org.apache.maven.artifact.resolver.ArtifactResolver org.apache.maven.artifact.factory.ArtifactFactory org.apache.maven.artifact.metadata.ArtifactMetadataSource org.apache.maven.artifact.manager.WagonManager org.apache.maven.plugin.PluginMappingManager org.apache.maven.plugin.DefaultPluginMappingManager org.apache.maven.artifact.repository.metadata.RepositoryMetadataManager org.apache.maven.project.path.PathTranslator org.apache.maven.project.path.DefaultPathTranslator org.apache.maven.Maven org.apache.maven.DefaultMaven org.apache.maven.project.MavenProjectBuilder org.apache.maven.lifecycle.LifecycleExecutor org.apache.maven.usability.diagnostics.ErrorDiagnostics org.apache.maven.execution.RuntimeInformation org.apache.maven.execution.RuntimeInformation org.apache.maven.execution.DefaultRuntimeInformation org.apache.maven.usability.diagnostics.ErrorDiagnoser MojoExecutionExceptionDiagnoser org.apache.maven.usability.MojoExecutionExceptionDiagnoser org.apache.maven.usability.diagnostics.ErrorDiagnoser MojoFailureExceptionDiagnoser org.apache.maven.usability.MojoFailureExceptionDiagnoser org.apache.maven.usability.diagnostics.ErrorDiagnoser ProjectBuildDiagnoser org.apache.maven.usability.ProjectBuildDiagnoser org.apache.maven.usability.diagnostics.ErrorDiagnoser ProfileActivationDiagnoser org.apache.maven.usability.ProfileActivationDiagnoser org.apache.maven.usability.diagnostics.ErrorDiagnoser PluginConfigurationDiagnoser org.apache.maven.usability.PluginConfigurationDiagnoser org.apache.maven.usability.diagnostics.ErrorDiagnoser ArtifactNotFoundDiagnoser org.apache.maven.usability.ArtifactNotFoundDiagnoser org.apache.maven.artifact.manager.WagonManager org.apache.maven.usability.diagnostics.ErrorDiagnoser ArtifactResolverDiagnoser org.apache.maven.usability.ArtifactResolverDiagnoser org.apache.maven.artifact.manager.WagonManager org.apache.maven.usability.diagnostics.ErrorDiagnoser InvalidArtifactDiagnoser org.apache.maven.usability.InvalidArtifactDiagnoser org.apache.maven.ConfigurationInterpolator org.apache.maven.ReflectionConfigurationInterpolator org.apache.maven.project.path.PathTranslator org.apache.maven.lifecycle.LifecycleExecutor org.apache.maven.lifecycle.DefaultLifecycleExecutor org.apache.maven.plugin.PluginManager org.apache.maven.extension.ExtensionManager org.apache.maven.artifact.handler.manager.ArtifactHandlerManager org.apache.maven.project.MavenProjectBuilder org.apache.maven.project.interpolation.ModelInterpolator org.apache.maven.ConfigurationInterpolator default validate initialize generate-sources process-sources generate-resources process-resources compile process-classes generate-test-sources process-test-sources generate-test-resources process-test-resources test-compile process-test-classes test prepare-package package pre-integration-test integration-test post-integration-test verify install deploy clean pre-clean clean post-clean org.apache.maven.plugins:maven-clean-plugin:clean org.apache.maven.lifecycle.mapping.LifecycleMapping pom org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping default org.apache.maven.plugins:maven-install-plugin:install org.apache.maven.lifecycle.mapping.LifecycleMapping jar org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping default org.apache.maven.plugins:maven-resources-plugin:resources org.apache.maven.plugins:maven-compiler-plugin:compile org.apache.maven.plugins:maven-resources-plugin:testResources org.apache.maven.plugins:maven-compiler-plugin:testCompile org.apache.maven.plugins:maven-jar-plugin:jar org.apache.maven.plugins:maven-install-plugin:install org.apache.maven.plugin.version.PluginVersionManager default org.apache.maven.plugin.version.DefaultPluginVersionManager per-lookup org.apache.maven.artifact.metadata.ArtifactMetadataSource org.apache.maven.plugin.registry.MavenPluginRegistryBuilder org.apache.maven.artifact.factory.ArtifactFactory org.codehaus.plexus.components.interactivity.InputHandler org.apache.maven.project.MavenProjectBuilder org.apache.maven.execution.RuntimeInformation org.sonatype.plexus.components.sec.dispatcher.SecDispatcher maven org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher Maven Security dispatcher org.sonatype.plexus.components.cipher.PlexusCipher _cipher <_configuration-file>~/.m2/settings-security.xml debian/mvn.10000664000000000000000000000550212230200016010036 0ustar .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36. .TH APACHE "1" "July 2009" "Apache Maven 2.2.0" "User Commands" .SH NAME mvn \- Command to start the Maven system .SH DESCRIPTION usage: mvn [options] [] [] .SH OPTIONS .TP \fB\-am\fR,\-\-also\-make If project list is specified, also build projects required by the list .TP \fB\-amd\fR,\-\-also\-make\-dependents If project list is specified, also build projects that depend on projects on the list .TP \fB\-B\fR,\-\-batch\-mode Run in non\-interactive (batch) mode .TP \fB\-C\fR,\-\-strict\-checksums Fail the build if checksums don't match .TP \fB\-c\fR,\-\-lax\-checksums Warn if checksums don't match .TP \fB\-cpu\fR,\-\-check\-plugin\-updates Force upToDate check for any relevant registered plugins .TP \fB\-D\fR,\-\-define Define a system property .TP \fB\-e\fR,\-\-errors Produce execution error messages .TP \fB\-emp\fR,\-\-encrypt\-master\-password Encrypt master security password .TP \fB\-ep\fR,\-\-encrypt\-password Encrypt server password .TP \fB\-f\fR,\-\-file Force the use of an alternate POM file. .TP \fB\-fae\fR,\-\-fail\-at\-end Only fail the build afterwards; allow all non\-impacted builds to continue .TP \fB\-ff\fR,\-\-fail\-fast Stop at first failure in reactorized builds .TP \fB\-fn\fR,\-\-fail\-never NEVER fail the build, regardless of project result .TP \fB\-gs\fR,\-\-global\-settings Alternate path for the global settings file .TP \fB\-h\fR,\-\-help Display help information .TP \fB\-N\fR,\-\-non\-recursive Do not recurse into sub\-projects .TP \fB\-npr\fR,\-\-no\-plugin\-registry Don't use ~/.m2/plugin\-registry.xml for plugin versions .TP \fB\-npu\fR,\-\-no\-plugin\-updates Suppress upToDate check for any relevant registered plugins .TP \fB\-o\fR,\-\-offline Work offline .TP \fB\-P\fR,\-\-activate\-profiles Comma\-delimited list of profiles to activate .TP \fB\-pl\fR,\-\-projects Build specified reactor projects instead of all projects .TP \fB\-q\fR,\-\-quiet Quiet output \- only show errors .TP \fB\-r\fR,\-\-reactor Dynamically build reactor from subdirectories .TP \fB\-rf\fR,\-\-resume\-from Resume reactor from specified project .TP \fB\-s\fR,\-\-settings Alternate path for the user settings file .TP \fB\-U\fR,\-\-update\-snapshots Forces a check for updated releases and snapshots on remote repositories .TP \fB\-up\fR,\-\-update\-plugins Synonym for cpu .TP \fB\-V\fR,\-\-show\-version Display version information WITHOUT stopping build .TP \fB\-v\fR,\-\-version Display version information .TP \fB\-X\fR,\-\-debug Produce execution debug output .PP .SH "SEE ALSO" The full documentation for .B Apache is maintained as a Texinfo manual. If the .B info and .B Apache programs are properly installed at your site, the command .IP .B info Apache .PP should give you access to the complete manual. debian/maven2.poms0000664000000000000000000000005112230200016011236 0ustar pom.xml --no-parent apache-maven/pom.xml