Revision 27781

View differences:

tags/tmp_build/build/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>build</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
	</buildSpec>
14
	<natures>
15
		<nature>org.eclipse.jdt.core.javanature</nature>
16
	</natures>
17
</projectDescription>
tags/tmp_build/build/extension-pom/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
	<modelVersion>4.0.0</modelVersion>
4
	<groupId>org.gvsig</groupId>
5
	<artifactId>gvsig-extension-base-pom
6
	</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.9-SNAPSHOT</version>
9
	<name>extension-base-pom</name>
10
	<parent>
11
		<groupId>org.gvsig</groupId>
12
		<artifactId>gvsig-basepoms</artifactId>
13
		<version>1.9-SNAPSHOT</version>
14
	</parent>
15
	<description> Base POM for all GvSIG extension projects. This pom knows
16
		how to build and made an extension for GvSIG. The property
17
		"gvsig-path" must be set up correctly.</description>
18
	<dependencies>
19
		<dependency>
20
			<groupId>junit</groupId>
21
			<artifactId>junit</artifactId>
22
			<version>3.8.1</version>
23
			<scope>test</scope>
24
		</dependency>
25
		<dependency>
26
			<groupId>log4j</groupId>
27
			<artifactId>log4j</artifactId>
28
			<version>1.2.8</version>
29
		</dependency>
30
	</dependencies>
31
	<properties>
32
		<config>config</config>
33
		<plugin-name> ${project.groupId}.${project.artifactId}</plugin-name>
34
		<temporaly-build> ${project.build.directory}/${plugin-name}
35
		</temporaly-build>
36
		<extension-lib-dir> ${extension-dir}/${plugin-name}/lib
37
		</extension-lib-dir>
38
		<build-dir>${basedir}/..</build-dir>
39
		<extension-ant-base-dir> ${build-dir}/extension-pom
40
		</extension-ant-base-dir>
41
		<!--<extension-distribution-file>dist.xml</extension-distribution-file>-->
42
		<library-dir>lib</library-dir>
43
	</properties>
44
	<profiles>
45
		<profile>
46
			<id>install-extension</id>
47
			<activation>
48
				<property>
49
					<name>install-extension</name>
50
				</property>
51
			</activation>
52
			<build>
53
				<plugins>
54
					<plugin>
55
						<artifactId>maven-assembly-plugin
56
						</artifactId>
57
						<configuration>
58
							<descriptors>
59
								<descriptor> ${extension-distribution-file}</descriptor>
60
							</descriptors>
61
							<outputDirectory> ${extension-distribution-output-directory}
62
							</outputDirectory>
63
							<finalName> ${distribution-final-name}</finalName>
64
							<appendAssemblyId>true</appendAssemblyId>
65
							<ignoreDirFormatExtensions> true</ignoreDirFormatExtensions>
66
						</configuration>
67
						<executions>
68
							<execution>
69
								<id>make-assembly</id>
70
								<!--
71
									this is used for inheritance merges
72
								-->
73
								<phase>install</phase>
74
								<!--
75
									append to the packaging phase.
76
								-->
77
								<goals>
78
									<goal>attached</goal><!-- goals == mojos -->
79
								</goals>
80
							</execution>
81
						</executions>
82
					</plugin>
83
					<plugin>
84
						<artifactId>maven-antrun-plugin</artifactId>
85
						<executions>
86
							<execution>
87
								<id>copy-to-andami</id>
88
								<phase>install</phase>
89
								<configuration>
90
									<tasks>
91
										<property name="project.build.directory" value="${project.build.directory}" />
92
										<property name="project.artifactId" value="${project.artifactId}" />
93
										<property name="project.version" value="${project.version}" />
94
										<property name="project.packaging" value="${project.packaging}" />
95
										<property name="temporaly-build" value="${temporaly-build}" />
96
										<property name="plugin-name" value="${plugin-name}" />
97
										<property name="config" value="${config}" />
98
										<property name="extension-dir" value="${extension-dir}" />
99
										<property name="library-dir" value="${library-dir}" />
100
										<property name="distribution-final-name" value="${distribution-final-name}" />
101
										<ant antfile="${extension-ant-base-dir}/build.xml"
102
											inheritRefs="true" />
103
									</tasks>
104
								</configuration>
105
								<goals>
106
									<goal>run</goal>
107
								</goals>
108
							</execution>
109
						</executions>
110
					</plugin>
111
				</plugins>
112
			</build>
113
		</profile>
114
		<profile>
115
			<id>generate-installers</id>
116
			<activation>
117
				<property>
118
					<name>generate-install</name>
119
				</property>
120
			</activation>
121
			<build>
122
				<plugins>
123
					<plugin>
124
						<artifactId>maven-assembly-plugin</artifactId>
125
						<configuration>
126
							<descriptors>
127
								<descriptor>
128
									${distribution-win32-descriptor}
129
								</descriptor>
130
								<descriptor>
131
									${distribution-linux32-descriptor}
132
								</descriptor>
133
								<!-- descriptor>
134
									${distribution-mac-descriptor
135
									</descriptor-->
136
								<!--descriptor>
137
									/distribution/source-distribution.xml
138
									</descriptor-->
139
							</descriptors>
140
							<outputDirectory>
141
								${distribution-output-directory}
142
							</outputDirectory>
143
							<finalName>
144
								${distribution-final-name}
145
							</finalName>
146
							<appendAssemblyId>true</appendAssemblyId>
147
							<ignoreDirFormatExtensions>
148
								true
149
							</ignoreDirFormatExtensions>
150
						</configuration>
151
						<executions>
152
							<execution>
153
								<id>make-assembly</id><!-- this is used for inheritance merges -->
154
								<phase>package</phase><!-- append to the packaging phase. -->
155
								<goals>
156
									<goal>attached</goal><!-- goals == mojos -->
157
								</goals>
158
							</execution>
159
						</executions>
160
					</plugin>
161
				</plugins>
162
			</build>
163
		</profile>
164
	</profiles>
165
</project>
tags/tmp_build/build/extension-pom/build.xml
1
<project name="Complete build system" default="make-extension-new" basedir=".">
2
	<description>
3
	</description>
4
	<condition property="isJar">
5
		<equals arg1="${project.packaging}" arg2="jar" />
6
	</condition>
7

  
8
	<target name="make-extension" if="isJar">
9
		<echo message="======================== Copying to extensions dir..." />
10
		<mkdir dir="${temporaly-build}" />
11
		<mkdir dir="${temporaly-build}/${library-dir}" />
12
		<echo message="librari directory ${temporaly-build}/${library-dir}" />
13

  
14
		<echo message="Copying file ${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging} to ${temporaly-build}/lib/" />
15
		<copy file="${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}" tofile="${temporaly-build}/${library-dir}/${plugin-name}.${project.packaging}">
16
		</copy>
17

  
18
		<copy todir="${temporaly-build}/images">
19
			<fileset dir="${basedir}/images/" includes="**/**" excludes="**/*.db" />
20
		</copy>
21
		<echo message="Copying config files to ${extension-dir}" />
22
		<copy todir="${temporaly-build}">
23
			<fileset dir="${basedir}/${config}" includes="**/**" />
24
		</copy>
25
		<move todir="${extension-dir}/${plugin-name}/">
26
			<fileset dir="${temporaly-build}" includes="**/**" />
27
		</move>
28
	</target>
29

  
30
	<target name="make-extension-new" if="isJar">
31
		<echo message="======================== New target " />
32
		<echo message="======================== Making Extension " />
33
		<echo message="======================== Copying to extensions dir..." />
34
		<copy todir="${extension-dir}/../../">
35
			<fileset dir="target/${distribution-final-name}-distribution/${distribution-final-name}" includes="**/**" />
36
		</copy>
37
	</target>
38
</project>
tags/tmp_build/build/libraries-pom/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>gvsig-library-base-pom</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.9-SNAPSHOT</version>
9
	<name>library-base-pom</name>
10
	<parent>
11
		<groupId>org.gvsig</groupId>
12
		<artifactId>gvsig-basepoms</artifactId>
13
		<version>1.9-SNAPSHOT</version>
14
	</parent>
15
	<description>
16
		Base POM for all GvSIG libraries projects. This pom knows how to
17
		build and made an libraries for GvSIG. The property
18
		"gvsig-path" must be set up correctly. 
19
	</description>
20
	<dependencies>
21
		<dependency>
22
			<groupId>junit</groupId>
23
			<artifactId>junit</artifactId>
24
			<version>3.8.1</version>
25
			<scope>test</scope>
26
		</dependency>
27
		<dependency>
28
			<groupId>log4j</groupId>
29
	        <artifactId>log4j</artifactId>
30
        	<version>1.2.8</version>
31
      	</dependency>
32
	</dependencies>
33
</project>
tags/tmp_build/build/maven/bin/m2.conf
1
main is org.apache.maven.cli.MavenCli from plexus.core
2

  
3
set maven.home default ${user.home}/m2
4

  
5
[plexus.core]
6
load ${maven.home}/lib/*.jar
tags/tmp_build/build/maven/bin/m2.bat
1
@REM ----------------------------------------------------------------------------
2
@REM Licensed to the Apache Software Foundation (ASF) under one
3
@REM or more contributor license agreements.  See the NOTICE file
4
@REM distributed with this work for additional information
5
@REM regarding copyright ownership.  The ASF licenses this file
6
@REM to you under the Apache License, Version 2.0 (the
7
@REM "License"); you may not use this file except in compliance
8
@REM with the License.  You may obtain a copy of the License at
9
@REM
10
@REM    http://www.apache.org/licenses/LICENSE-2.0
11
@REM
12
@REM Unless required by applicable law or agreed to in writing,
13
@REM software distributed under the License is distributed on an
14
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
@REM KIND, either express or implied.  See the License for the
16
@REM specific language governing permissions and limitations
17
@REM under the License.
18
@REM ----------------------------------------------------------------------------
19

  
20
@ECHO OFF
21
echo.
22
echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
23
echo.
24

  
25
"%~dp0\mvn" %*
26

  
tags/tmp_build/build/maven/bin/mvn.bat
1
@REM ----------------------------------------------------------------------------
2
@REM Licensed to the Apache Software Foundation (ASF) under one
3
@REM or more contributor license agreements.  See the NOTICE file
4
@REM distributed with this work for additional information
5
@REM regarding copyright ownership.  The ASF licenses this file
6
@REM to you under the Apache License, Version 2.0 (the
7
@REM "License"); you may not use this file except in compliance
8
@REM with the License.  You may obtain a copy of the License at
9
@REM
10
@REM    http://www.apache.org/licenses/LICENSE-2.0
11
@REM
12
@REM Unless required by applicable law or agreed to in writing,
13
@REM software distributed under the License is distributed on an
14
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
@REM KIND, either express or implied.  See the License for the
16
@REM specific language governing permissions and limitations
17
@REM under the License.
18
@REM ----------------------------------------------------------------------------
19

  
20
@REM ----------------------------------------------------------------------------
21
@REM Maven2 Start Up Batch script
22
@REM
23
@REM Required ENV vars:
24
@REM JAVA_HOME - location of a JDK home dir
25
@REM
26
@REM Optional ENV vars
27
@REM M2_HOME - location of maven2's installed home dir
28
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
@REM     e.g. to debug Maven itself, use
32
@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
@REM ----------------------------------------------------------------------------
34

  
35
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
36
@echo off
37
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
38
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
39

  
40
@REM set %HOME% to equivalent of $HOME
41
if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%)
42

  
43
@REM Execute a user defined script before this one
44
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
45

  
46
set ERROR_CODE=0
47

  
48
@REM set local scope for the variables with windows NT shell
49
if "%OS%"=="Windows_NT" @setlocal
50
if "%OS%"=="WINNT" @setlocal
51

  
52
@REM ==== START VALIDATION ====
53
if not "%JAVA_HOME%" == "" goto OkJHome
54

  
55
echo.
56
echo ERROR: JAVA_HOME not found in your environment.
57
echo Please set the JAVA_HOME variable in your environment to match the
58
echo location of your Java installation
59
echo.
60
goto error
61

  
62
:OkJHome
63
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
64

  
65
echo.
66
echo ERROR: JAVA_HOME is set to an invalid directory.
67
echo JAVA_HOME = %JAVA_HOME%
68
echo Please set the JAVA_HOME variable in your environment to match the
69
echo location of your Java installation
70
echo.
71
goto error
72

  
73
:chkMHome
74
if not "%M2_HOME%"=="" goto valMHome
75

  
76
if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0..
77
if "%OS%"=="WINNT" SET M2_HOME=%~dp0..
78
if not "%M2_HOME%"=="" goto valMHome
79

  
80
echo.
81
echo ERROR: M2_HOME not found in your environment.
82
echo Please set the M2_HOME variable in your environment to match the
83
echo location of the Maven installation
84
echo.
85
goto error
86

  
87
:valMHome
88

  
89
:stripMHome
90
if not _%M2_HOME:~-1%==_\ goto checkMBat
91
set M2_HOME=%M2_HOME:~0,-1%
92
goto stripMHome
93

  
94
:checkMBat
95
if exist "%M2_HOME%\bin\mvn.bat" goto init
96

  
97
echo.
98
echo ERROR: M2_HOME is set to an invalid directory.
99
echo M2_HOME = %M2_HOME%
100
echo Please set the M2_HOME variable in your environment to match the
101
echo location of the Maven installation
102
echo.
103
goto error
104
@REM ==== END VALIDATION ====
105

  
106
:init
107
@REM Decide how to startup depending on the version of windows
108

  
109
@REM -- Windows NT with Novell Login
110
if "%OS%"=="WINNT" goto WinNTNovell
111

  
112
@REM -- Win98ME
113
if NOT "%OS%"=="Windows_NT" goto Win9xArg
114

  
115
:WinNTNovell
116

  
117
@REM -- 4NT shell
118
if "%@eval[2+2]" == "4" goto 4NTArgs
119

  
120
@REM -- Regular WinNT shell
121
set MAVEN_CMD_LINE_ARGS=%*
122
goto endInit
123

  
124
@REM The 4NT Shell from jp software
125
:4NTArgs
126
set MAVEN_CMD_LINE_ARGS=%$
127
goto endInit
128

  
129
:Win9xArg
130
@REM Slurp the command line arguments.  This loop allows for an unlimited number
131
@REM of agruments (up to the command line limit, anyway).
132
set MAVEN_CMD_LINE_ARGS=
133
:Win9xApp
134
if %1a==a goto endInit
135
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
136
shift
137
goto Win9xApp
138

  
139
@REM Reaching here means variables are defined and arguments have been captured
140
:endInit
141
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
142

  
143
@REM -- 4NT shell
144
if "%@eval[2+2]" == "4" goto 4NTCWJars
145

  
146
@REM -- Regular WinNT shell
147
for %%i in ("%M2_HOME%"\boot\classworlds-*) do set CLASSWORLDS_JAR="%%i"
148
goto runm2
149

  
150
@REM The 4NT Shell from jp software
151
:4NTCWJars
152
for %%i in ("%M2_HOME%\boot\classworlds-*") do set CLASSWORLDS_JAR="%%i"
153
goto runm2
154

  
155
@REM Start MAVEN2
156
:runm2
157
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
158
if ERRORLEVEL 1 goto error
159
goto end
160

  
161
:error
162
if "%OS%"=="Windows_NT" @endlocal
163
if "%OS%"=="WINNT" @endlocal
164
set ERROR_CODE=1
165

  
166
:end
167
@REM set local scope for the variables with windows NT shell
168
if "%OS%"=="Windows_NT" goto endNT
169
if "%OS%"=="WINNT" goto endNT
170

  
171
@REM For old DOS remove the set variables from ENV - we assume they were not set
172
@REM before we started - at least we don't leave any baggage around
173
set MAVEN_JAVA_EXE=
174
set MAVEN_CMD_LINE_ARGS=
175
goto postExec
176

  
177
:endNT
178
@endlocal & set ERROR_CODE=%ERROR_CODE%
179

  
180
:postExec
181
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
182
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
183
if "%MAVEN_BATCH_PAUSE%" == "on" pause
184

  
185
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
186

  
187
exit /B %ERROR_CODE%
188

  
tags/tmp_build/build/maven/bin/mvnDebug
1
#!/bin/sh
2
# ----------------------------------------------------------------------------
3
# Licensed to the Apache Software Foundation (ASF) under one
4
# or more contributor license agreements.  See the NOTICE file
5
# distributed with this work for additional information
6
# regarding copyright ownership.  The ASF licenses this file
7
# to you under the Apache License, Version 2.0 (the
8
# "License"); you may not use this file except in compliance
9
# with the License.  You may obtain a copy of the License at
10
#
11
#    http://www.apache.org/licenses/LICENSE-2.0
12
#
13
# Unless required by applicable law or agreed to in writing,
14
# software distributed under the License is distributed on an
15
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
# KIND, either express or implied.  See the License for the
17
# specific language governing permissions and limitations
18
# under the License.
19
# ----------------------------------------------------------------------------
20

  
21
# ----------------------------------------------------------------------------
22
# Maven2 Start Up Batch script
23
#
24
# Required ENV vars:
25
# ------------------
26
#   JAVA_HOME - location of a JDK home dir
27
#
28
# Optional ENV vars
29
# -----------------
30
#   M2_HOME - location of maven2's installed home dir
31
#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
#     e.g. to debug Maven itself, use
33
#       set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
# ----------------------------------------------------------------------------
35

  
36
INT_MAVEN_OPTS="$MAVEN_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"
37

  
38
echo Preparing to Execute Maven in Debug Mode
39

  
40
QUOTED_ARGS=""
41
while [ "$1" != "" ] ; do
42

  
43
  QUOTED_ARGS="$QUOTED_ARGS \"$1\""
44
  shift
45

  
46
done
47

  
48
if [ -f /etc/mavenrc ] ; then
49
  . /etc/mavenrc
50
fi
51

  
52
if [ -f "$HOME/.mavenrc" ] ; then
53
  . "$HOME/.mavenrc"
54
fi
55

  
56
# OS specific support.  $var _must_ be set to either true or false.
57
cygwin=false;
58
darwin=false;
59
mingw=false
60
case "`uname`" in
61
  CYGWIN*) cygwin=true ;;
62
  MINGW*) mingw=true;;
63
  Darwin*) darwin=true 
64
           if [ -z "$JAVA_VERSION" ] ; then
65
             JAVA_VERSION="CurrentJDK"
66
           else
67
             echo "Using Java version: $JAVA_VERSION"
68
           fi
69
           if [ -z "$JAVA_HOME" ] ; then
70
             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
71
           fi
72
           ;;
73
esac
74

  
75
if [ -z "$JAVA_HOME" ] ; then
76
  if [ -r /etc/gentoo-release ] ; then
77
    JAVA_HOME=`java-config --jre-home`
78
  fi
79
fi
80

  
81
if [ -z "$M2_HOME" ] ; then
82
  ## resolve links - $0 may be a link to maven's home
83
  PRG="$0"
84

  
85
  # need this for relative symlinks
86
  while [ -h "$PRG" ] ; do
87
    ls=`ls -ld "$PRG"`
88
    link=`expr "$ls" : '.*-> \(.*\)$'`
89
    if expr "$link" : '/.*' > /dev/null; then
90
      PRG="$link"
91
    else
92
      PRG="`dirname "$PRG"`/$link"
93
    fi
94
  done
95

  
96
  saveddir=`pwd`
97

  
98
  M2_HOME=`dirname "$PRG"`/..
99

  
100
  # make it fully qualified
101
  M2_HOME=`cd "$M2_HOME" && pwd`
102

  
103
  cd "$saveddir"
104
  # echo Using m2 at $M2_HOME
105
fi
106

  
107
# For Cygwin, ensure paths are in UNIX format before anything is touched
108
if $cygwin ; then
109
  [ -n "$M2_HOME" ] &&
110
    M2_HOME=`cygpath --unix "$M2_HOME"`
111
  [ -n "$JAVA_HOME" ] &&
112
    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
113
  [ -n "$CLASSPATH" ] &&
114
    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
115
fi
116

  
117
# For Migwn, ensure paths are in UNIX format before anything is touched
118
if $mingw ; then
119
  [ -n "$M2_HOME" ] &&
120
    M2_HOME="`(cd "$M2_HOME"; pwd)`"
121
  [ -n "$JAVA_HOME" ] &&
122
    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
123
  # TODO classpath?
124
fi
125

  
126
if [ -z "$JAVACMD" ] ; then
127
  if [ -n "$JAVA_HOME"  ] ; then
128
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
129
      # IBM's JDK on AIX uses strange locations for the executables
130
      JAVACMD="$JAVA_HOME/jre/sh/java"
131
    else
132
      JAVACMD="$JAVA_HOME/bin/java"
133
    fi
134
  else
135
    JAVACMD=java
136
  fi
137
fi
138

  
139
if [ ! -x "$JAVACMD" ] ; then
140
  echo "Error: JAVA_HOME is not defined correctly."
141
  echo "  We cannot execute $JAVACMD"
142
  exit 1
143
fi
144

  
145
if [ -z "$JAVA_HOME" ] ; then
146
  echo "Warning: JAVA_HOME environment variable is not set."
147
fi
148

  
149
CLASSWORLDS_LAUNCHER=org.codehaus.classworlds.Launcher
150

  
151
# For Cygwin, switch paths to Windows format before running java
152
if $cygwin; then
153
  [ -n "$M2_HOME" ] &&
154
    M2_HOME=`cygpath --path --windows "$M2_HOME"`
155
  [ -n "$JAVA_HOME" ] &&
156
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
157
  [ -n "$HOME" ] &&
158
    HOME=`cygpath --path --windows "$HOME"`
159
fi
160

  
161
exec "$JAVACMD" \
162
  $INT_MAVEN_OPTS \
163
  -classpath "${M2_HOME}"/boot/classworlds-*.jar \
164
  "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
165
  "-Dmaven.home=${M2_HOME}"  \
166
  ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS
167

  
168

  
0 169

  
tags/tmp_build/build/maven/bin/mvnDebug.bat
1
@REM ----------------------------------------------------------------------------
2
@REM Licensed to the Apache Software Foundation (ASF) under one
3
@REM or more contributor license agreements.  See the NOTICE file
4
@REM distributed with this work for additional information
5
@REM regarding copyright ownership.  The ASF licenses this file
6
@REM to you under the Apache License, Version 2.0 (the
7
@REM "License"); you may not use this file except in compliance
8
@REM with the License.  You may obtain a copy of the License at
9
@REM
10
@REM    http://www.apache.org/licenses/LICENSE-2.0
11
@REM
12
@REM Unless required by applicable law or agreed to in writing,
13
@REM software distributed under the License is distributed on an
14
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
@REM KIND, either express or implied.  See the License for the
16
@REM specific language governing permissions and limitations
17
@REM under the License.
18
@REM ----------------------------------------------------------------------------
19

  
20
@REM ----------------------------------------------------------------------------
21
@REM Maven2 Start Up Batch script
22
@REM
23
@REM Required ENV vars:
24
@REM JAVA_HOME - location of a JDK home dir
25
@REM
26
@REM Optional ENV vars
27
@REM M2_HOME - location of maven2's installed home dir
28
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
29
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
30
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
31
@REM     e.g. to debug Maven itself, use
32
@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
33
@REM ----------------------------------------------------------------------------
34

  
35
set INT_MAVEN_OPTS=%MAVEN_OPTS% -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
36
@echo Preparing to Execute Maven in Debug Mode
37

  
38
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
39
@echo off
40
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
41
@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
42

  
43
@REM set %HOME% to equivalent of $HOME
44
if "%HOME%" == "" (set HOME=%HOMEDRIVE%%HOMEPATH%)
45

  
46
@REM Execute a user defined script before this one
47
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
48

  
49
set ERROR_CODE=0
50

  
51
@REM set local scope for the variables with windows NT shell
52
if "%OS%"=="Windows_NT" @setlocal
53
if "%OS%"=="WINNT" @setlocal
54

  
55
@REM ==== START VALIDATION ====
56
if not "%JAVA_HOME%" == "" goto OkJHome
57

  
58
echo.
59
echo ERROR: JAVA_HOME not found in your environment.
60
echo Please set the JAVA_HOME variable in your environment to match the
61
echo location of your Java installation
62
echo.
63
goto error
64

  
65
:OkJHome
66
if exist "%JAVA_HOME%\bin\java.exe" goto chkMHome
67

  
68
echo.
69
echo ERROR: JAVA_HOME is set to an invalid directory.
70
echo JAVA_HOME = %JAVA_HOME%
71
echo Please set the JAVA_HOME variable in your environment to match the
72
echo location of your Java installation
73
echo.
74
goto error
75

  
76
:chkMHome
77
if not "%M2_HOME%"=="" goto valMHome
78

  
79
if "%OS%"=="Windows_NT" SET M2_HOME=%~dp0..
80
if "%OS%"=="WINNT" SET M2_HOME=%~dp0..
81
if not "%M2_HOME%"=="" goto valMHome
82

  
83
echo.
84
echo ERROR: M2_HOME not found in your environment.
85
echo Please set the M2_HOME variable in your environment to match the
86
echo location of the Maven installation
87
echo.
88
goto error
89

  
90
:valMHome
91

  
92
:stripMHome
93
if not _%M2_HOME:~-1%==_\ goto checkMBat
94
set M2_HOME=%M2_HOME:~0,-1%
95
goto stripMHome
96

  
97
:checkMBat
98
if exist "%M2_HOME%\bin\mvn.bat" goto init
99

  
100
echo.
101
echo ERROR: M2_HOME is set to an invalid directory.
102
echo M2_HOME = %M2_HOME%
103
echo Please set the M2_HOME variable in your environment to match the
104
echo location of the Maven installation
105
echo.
106
goto error
107
@REM ==== END VALIDATION ====
108

  
109
:init
110
@REM Decide how to startup depending on the version of windows
111

  
112
@REM -- Windows NT with Novell Login
113
if "%OS%"=="WINNT" goto WinNTNovell
114

  
115
@REM -- Win98ME
116
if NOT "%OS%"=="Windows_NT" goto Win9xArg
117

  
118
:WinNTNovell
119

  
120
@REM -- 4NT shell
121
if "%@eval[2+2]" == "4" goto 4NTArgs
122

  
123
@REM -- Regular WinNT shell
124
set MAVEN_CMD_LINE_ARGS=%*
125
goto endInit
126

  
127
@REM The 4NT Shell from jp software
128
:4NTArgs
129
set MAVEN_CMD_LINE_ARGS=%$
130
goto endInit
131

  
132
:Win9xArg
133
@REM Slurp the command line arguments.  This loop allows for an unlimited number
134
@REM of agruments (up to the command line limit, anyway).
135
set MAVEN_CMD_LINE_ARGS=
136
:Win9xApp
137
if %1a==a goto endInit
138
set MAVEN_CMD_LINE_ARGS=%MAVEN_CMD_LINE_ARGS% %1
139
shift
140
goto Win9xApp
141

  
142
@REM Reaching here means variables are defined and arguments have been captured
143
:endInit
144
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
145

  
146
@REM -- 4NT shell
147
if "%@eval[2+2]" == "4" goto 4NTCWJars
148

  
149
@REM -- Regular WinNT shell
150
for %%i in ("%M2_HOME%"\boot\classworlds-*) do set CLASSWORLDS_JAR="%%i"
151
goto runm2
152

  
153
@REM The 4NT Shell from jp software
154
:4NTCWJars
155
for %%i in ("%M2_HOME%\boot\classworlds-*") do set CLASSWORLDS_JAR="%%i"
156
goto runm2
157

  
158
@REM Start MAVEN2
159
:runm2
160

  
161
%MAVEN_JAVA_EXE% %INT_MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
162
if ERRORLEVEL 1 goto error
163
goto end
164

  
165
:error
166
if "%OS%"=="Windows_NT" @endlocal
167
if "%OS%"=="WINNT" @endlocal
168
set ERROR_CODE=1
169

  
170
:end
171
@REM set local scope for the variables with windows NT shell
172
if "%OS%"=="Windows_NT" goto endNT
173
if "%OS%"=="WINNT" goto endNT
174

  
175
@REM For old DOS remove the set variables from ENV - we assume they were not set
176
@REM before we started - at least we don't leave any baggage around
177
set MAVEN_JAVA_EXE=
178
set MAVEN_CMD_LINE_ARGS=
179
goto postExec
180

  
181
:endNT
182
@endlocal & set ERROR_CODE=%ERROR_CODE%
183

  
184
:postExec
185
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
186
@REM pause the batch file if MAVEN_BATCH_PAUSE is set to 'on'
187
if "%MAVEN_BATCH_PAUSE%" == "on" pause
188

  
189
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
190

  
191
exit /B %ERROR_CODE%
192

  
tags/tmp_build/build/maven/bin/m2
1
#!/bin/sh
2
# ----------------------------------------------------------------------------
3
# Licensed to the Apache Software Foundation (ASF) under one
4
# or more contributor license agreements.  See the NOTICE file
5
# distributed with this work for additional information
6
# regarding copyright ownership.  The ASF licenses this file
7
# to you under the Apache License, Version 2.0 (the
8
# "License"); you may not use this file except in compliance
9
# with the License.  You may obtain a copy of the License at
10
#
11
#    http://www.apache.org/licenses/LICENSE-2.0
12
#
13
# Unless required by applicable law or agreed to in writing,
14
# software distributed under the License is distributed on an
15
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
# KIND, either express or implied.  See the License for the
17
# specific language governing permissions and limitations
18
# under the License.
19
# ----------------------------------------------------------------------------
20

  
21
echo ""
22
echo THE m2 COMMMAND IS DEPRECATED - PLEASE RUN mvn INSTEAD
23
echo ""
24

  
25
. `dirname "$0"`/mvn
26
exec "`dirname "$0"`/mvn" $QUOTED_ARGS
0 27

  
tags/tmp_build/build/maven/bin/mvn
1
#!/bin/sh
2
# ----------------------------------------------------------------------------
3
# Licensed to the Apache Software Foundation (ASF) under one
4
# or more contributor license agreements.  See the NOTICE file
5
# distributed with this work for additional information
6
# regarding copyright ownership.  The ASF licenses this file
7
# to you under the Apache License, Version 2.0 (the
8
# "License"); you may not use this file except in compliance
9
# with the License.  You may obtain a copy of the License at
10
#
11
#    http://www.apache.org/licenses/LICENSE-2.0
12
#
13
# Unless required by applicable law or agreed to in writing,
14
# software distributed under the License is distributed on an
15
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
# KIND, either express or implied.  See the License for the
17
# specific language governing permissions and limitations
18
# under the License.
19
# ----------------------------------------------------------------------------
20

  
21
# ----------------------------------------------------------------------------
22
# Maven2 Start Up Batch script
23
#
24
# Required ENV vars:
25
# ------------------
26
#   JAVA_HOME - location of a JDK home dir
27
#
28
# Optional ENV vars
29
# -----------------
30
#   M2_HOME - location of maven2's installed home dir
31
#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
32
#     e.g. to debug Maven itself, use
33
#       set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
34
# ----------------------------------------------------------------------------
35

  
36
QUOTED_ARGS=""
37
while [ "$1" != "" ] ; do
38

  
39
  QUOTED_ARGS="$QUOTED_ARGS \"$1\""
40
  shift
41

  
42
done
43

  
44
if [ -f /etc/mavenrc ] ; then
45
  . /etc/mavenrc
46
fi
47

  
48
if [ -f "$HOME/.mavenrc" ] ; then
49
  . "$HOME/.mavenrc"
50
fi
51

  
52
# OS specific support.  $var _must_ be set to either true or false.
53
cygwin=false;
54
darwin=false;
55
mingw=false
56
case "`uname`" in
57
  CYGWIN*) cygwin=true ;;
58
  MINGW*) mingw=true;;
59
  Darwin*) darwin=true 
60
           if [ -z "$JAVA_VERSION" ] ; then
61
             JAVA_VERSION="CurrentJDK"
62
           else
63
             echo "Using Java version: $JAVA_VERSION"
64
           fi
65
           if [ -z "$JAVA_HOME" ] ; then
66
             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home
67
           fi
68
           ;;
69
esac
70

  
71
if [ -z "$JAVA_HOME" ] ; then
72
  if [ -r /etc/gentoo-release ] ; then
73
    JAVA_HOME=`java-config --jre-home`
74
  fi
75
fi
76

  
77
if [ -z "$M2_HOME" ] ; then
78
  ## resolve links - $0 may be a link to maven's home
79
  PRG="$0"
80

  
81
  # need this for relative symlinks
82
  while [ -h "$PRG" ] ; do
83
    ls=`ls -ld "$PRG"`
84
    link=`expr "$ls" : '.*-> \(.*\)$'`
85
    if expr "$link" : '/.*' > /dev/null; then
86
      PRG="$link"
87
    else
88
      PRG="`dirname "$PRG"`/$link"
89
    fi
90
  done
91

  
92
  saveddir=`pwd`
93

  
94
  M2_HOME=`dirname "$PRG"`/..
95

  
96
  # make it fully qualified
97
  M2_HOME=`cd "$M2_HOME" && pwd`
98

  
99
  cd "$saveddir"
100
  # echo Using m2 at $M2_HOME
101
fi
102

  
103
# For Cygwin, ensure paths are in UNIX format before anything is touched
104
if $cygwin ; then
105
  [ -n "$M2_HOME" ] &&
106
    M2_HOME=`cygpath --unix "$M2_HOME"`
107
  [ -n "$JAVA_HOME" ] &&
108
    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
109
  [ -n "$CLASSPATH" ] &&
110
    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
111
fi
112

  
113
# For Migwn, ensure paths are in UNIX format before anything is touched
114
if $mingw ; then
115
  [ -n "$M2_HOME" ] &&
116
    M2_HOME="`(cd "$M2_HOME"; pwd)`"
117
  [ -n "$JAVA_HOME" ] &&
118
    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
119
  # TODO classpath?
120
fi
121

  
122
if [ -z "$JAVACMD" ] ; then
123
  if [ -n "$JAVA_HOME"  ] ; then
124
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
125
      # IBM's JDK on AIX uses strange locations for the executables
126
      JAVACMD="$JAVA_HOME/jre/sh/java"
127
    else
128
      JAVACMD="$JAVA_HOME/bin/java"
129
    fi
130
  else
131
    JAVACMD="`which java`"
132
  fi
133
fi
134

  
135
if [ ! -x "$JAVACMD" ] ; then
136
  echo "Error: JAVA_HOME is not defined correctly."
137
  echo "  We cannot execute $JAVACMD"
138
  exit 1
139
fi
140

  
141
if [ -z "$JAVA_HOME" ] ; then
142
  echo "Warning: JAVA_HOME environment variable is not set."
143
fi
144

  
145
CLASSWORLDS_LAUNCHER=org.codehaus.classworlds.Launcher
146

  
147
# For Cygwin, switch paths to Windows format before running java
148
if $cygwin; then
149
  [ -n "$M2_HOME" ] &&
150
    M2_HOME=`cygpath --path --windows "$M2_HOME"`
151
  [ -n "$JAVA_HOME" ] &&
152
    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
153
  [ -n "$HOME" ] &&
154
    HOME=`cygpath --path --windows "$HOME"`
155
fi
156

  
157
exec "$JAVACMD" \
158
  $MAVEN_OPTS \
159
  -classpath "${M2_HOME}"/boot/classworlds-*.jar \
160
  "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
161
  "-Dmaven.home=${M2_HOME}"  \
162
  ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS
163

  
0 164

  
tags/tmp_build/build/maven/README.txt
1

  
2
                          Apache Maven
3

  
4
  What is it?
5
  -----------
6

  
7
  Maven is a software project management and comprehension tool. Based on
8
  the concept of a Project Object Model (POM), Maven can manage a project's
9
  build, reporting and documentation from a central piece of information.
10

  
11
  Documentation
12
  -------------
13

  
14
  The documentation available as of the date of this release is included in
15
  HTML format in the docs/ directory.
16
  The most up-to-date documentation can be found at http://maven.apache.org/.
17

  
18
  Release Notes
19
  -------------
20

  
21
  The full list of changes can be found at http://maven.apache.org/release-notes.html.
22

  
23
  System Requirements
24
  -------------------
25

  
26
  JDK:
27
    1.4 or above (this is to execute Maven - it still allows you to build against 1.3
28
    and prior JDK's).
29
  Memory:
30
    No minimum requirement.
31
  Disk:
32
    No minimum requirement. Approximately 100MB will be used for your local repository,
33
    however this will vary depending on usage and can be removed and redownloaded at
34
    any time.
35
  Operating System:
36
    No minimum requirement. On Windows, Windows NT and above or Cygwin is required for
37
    the startup scripts. Tested on Windows XP, Fedora Core and Mac OS X.
38

  
39
  Installing Maven
40
  ----------------
41

  
42
  1) Unpack the archive where you would like to store the binaries, eg:
43

  
44
    Unix-based Operating Systems (Linux, Solaris and Mac OS X)
45
      tar zxvf apache-maven-2.0.x.tar.gz
46
    Windows 2000/XP
47
      unzip apache-maven-2.0.x.zip
48

  
49
  2) A directory called "apache-maven-2.0.x" will be created.
50

  
51
  3) Add the bin directory to your PATH, eg:
52

  
53
    Unix-based Operating Systems (Linux, Solaris and Mac OS X)
54
      export PATH=/usr/local/apache-maven-2.0.x/bin:$PATH
55
    Windows 2000/XP
56
      set PATH="c:\program files\apache-maven-2.0.x\bin";%PATH%
57

  
58
  4) Make sure JAVA_HOME is set to the location of your JDK
59

  
60
  5) Run "mvn --version" to verify that it is correctly installed.
61

  
62
  For complete documentation, see http://maven.apache.org/download.html#Installation
63

  
64
  Licensing
65
  ---------
66

  
67
  Please see the file called LICENSE.TXT
68

  
69
  Maven URLS
70
  ----------
71

  
72
  Home Page:          http://maven.apache.org/
73
  Downloads:          http://maven.apache.org/downloads.html
74
  Mailing Lists:      http://maven.apache.org/mail-lists.html
75
  Source Code:        http://svn.apache.org/repos/asf/maven/
76
  Issue Tracking:     http://jira.codehaus.org/browse/MNG
77
  Wiki:               http://docs.codehaus.org/display/MAVENUSER/
78
  Available Plugins:  http://maven.apache.org/plugins/index.html
tags/tmp_build/build/maven/NOTICE.txt
1
   =========================================================================
2
   ==  NOTICE file corresponding to the section 4 d of                    ==
3
   ==  the Apache License, Version 2.0,                                   ==
4
   ==  in this case for the Apache Maven distribution.                    ==
5
   =========================================================================
6

  
7
This product includes software developed by
8
The Apache Software Foundation (http://www.apache.org/).
9

  
10
This product includes software (Plexus and Classworlds) developed by
11
The Codehaus Foundation (http://www.codehaus.org/).
tags/tmp_build/build/maven/LICENSE.txt
1

  
2
                                 Apache License
3
                           Version 2.0, January 2004
4
                        http://www.apache.org/licenses/
5

  
6
   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7

  
8
   1. Definitions.
9

  
10
      "License" shall mean the terms and conditions for use, reproduction,
11
      and distribution as defined by Sections 1 through 9 of this document.
12

  
13
      "Licensor" shall mean the copyright owner or entity authorized by
14
      the copyright owner that is granting the License.
15

  
16
      "Legal Entity" shall mean the union of the acting entity and all
17
      other entities that control, are controlled by, or are under common
18
      control with that entity. For the purposes of this definition,
19
      "control" means (i) the power, direct or indirect, to cause the
20
      direction or management of such entity, whether by contract or
21
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
      outstanding shares, or (iii) beneficial ownership of such entity.
23

  
24
      "You" (or "Your") shall mean an individual or Legal Entity
25
      exercising permissions granted by this License.
26

  
27
      "Source" form shall mean the preferred form for making modifications,
28
      including but not limited to software source code, documentation
29
      source, and configuration files.
30

  
31
      "Object" form shall mean any form resulting from mechanical
32
      transformation or translation of a Source form, including but
33
      not limited to compiled object code, generated documentation,
34
      and conversions to other media types.
35

  
36
      "Work" shall mean the work of authorship, whether in Source or
37
      Object form, made available under the License, as indicated by a
38
      copyright notice that is included in or attached to the work
39
      (an example is provided in the Appendix below).
40

  
41
      "Derivative Works" shall mean any work, whether in Source or Object
42
      form, that is based on (or derived from) the Work and for which the
43
      editorial revisions, annotations, elaborations, or other modifications
44
      represent, as a whole, an original work of authorship. For the purposes
45
      of this License, Derivative Works shall not include works that remain
46
      separable from, or merely link (or bind by name) to the interfaces of,
47
      the Work and Derivative Works thereof.
48

  
49
      "Contribution" shall mean any work of authorship, including
50
      the original version of the Work and any modifications or additions
51
      to that Work or Derivative Works thereof, that is intentionally
52
      submitted to Licensor for inclusion in the Work by the copyright owner
53
      or by an individual or Legal Entity authorized to submit on behalf of
54
      the copyright owner. For the purposes of this definition, "submitted"
55
      means any form of electronic, verbal, or written communication sent
56
      to the Licensor or its representatives, including but not limited to
57
      communication on electronic mailing lists, source code control systems,
58
      and issue tracking systems that are managed by, or on behalf of, the
59
      Licensor for the purpose of discussing and improving the Work, but
60
      excluding communication that is conspicuously marked or otherwise
61
      designated in writing by the copyright owner as "Not a Contribution."
62

  
63
      "Contributor" shall mean Licensor and any individual or Legal Entity
64
      on behalf of whom a Contribution has been received by Licensor and
65
      subsequently incorporated within the Work.
66

  
67
   2. Grant of Copyright License. Subject to the terms and conditions of
68
      this License, each Contributor hereby grants to You a perpetual,
69
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
      copyright license to reproduce, prepare Derivative Works of,
71
      publicly display, publicly perform, sublicense, and distribute the
72
      Work and such Derivative Works in Source or Object form.
73

  
74
   3. Grant of Patent License. Subject to the terms and conditions of
75
      this License, each Contributor hereby grants to You a perpetual,
76
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
      (except as stated in this section) patent license to make, have made,
78
      use, offer to sell, sell, import, and otherwise transfer the Work,
79
      where such license applies only to those patent claims licensable
80
      by such Contributor that are necessarily infringed by their
81
      Contribution(s) alone or by combination of their Contribution(s)
82
      with the Work to which such Contribution(s) was submitted. If You
83
      institute patent litigation against any entity (including a
84
      cross-claim or counterclaim in a lawsuit) alleging that the Work
85
      or a Contribution incorporated within the Work constitutes direct
86
      or contributory patent infringement, then any patent licenses
87
      granted to You under this License for that Work shall terminate
88
      as of the date such litigation is filed.
89

  
90
   4. Redistribution. You may reproduce and distribute copies of the
91
      Work or Derivative Works thereof in any medium, with or without
92
      modifications, and in Source or Object form, provided that You
93
      meet the following conditions:
94

  
95
      (a) You must give any other recipients of the Work or
96
          Derivative Works a copy of this License; and
97

  
98
      (b) You must cause any modified files to carry prominent notices
99
          stating that You changed the files; and
100

  
101
      (c) You must retain, in the Source form of any Derivative Works
102
          that You distribute, all copyright, patent, trademark, and
103
          attribution notices from the Source form of the Work,
104
          excluding those notices that do not pertain to any part of
105
          the Derivative Works; and
106

  
107
      (d) If the Work includes a "NOTICE" text file as part of its
108
          distribution, then any Derivative Works that You distribute must
109
          include a readable copy of the attribution notices contained
110
          within such NOTICE file, excluding those notices that do not
111
          pertain to any part of the Derivative Works, in at least one
112
          of the following places: within a NOTICE text file distributed
113
          as part of the Derivative Works; within the Source form or
114
          documentation, if provided along with the Derivative Works; or,
115
          within a display generated by the Derivative Works, if and
116
          wherever such third-party notices normally appear. The contents
117
          of the NOTICE file are for informational purposes only and
118
          do not modify the License. You may add Your own attribution
119
          notices within Derivative Works that You distribute, alongside
120
          or as an addendum to the NOTICE text from the Work, provided
121
          that such additional attribution notices cannot be construed
122
          as modifying the License.
123

  
124
      You may add Your own copyright statement to Your modifications and
125
      may provide additional or different license terms and conditions
126
      for use, reproduction, or distribution of Your modifications, or
127
      for any such Derivative Works as a whole, provided Your use,
128
      reproduction, and distribution of the Work otherwise complies with
129
      the conditions stated in this License.
130

  
131
   5. Submission of Contributions. Unless You explicitly state otherwise,
132
      any Contribution intentionally submitted for inclusion in the Work
133
      by You to the Licensor shall be under the terms and conditions of
134
      this License, without any additional terms or conditions.
135
      Notwithstanding the above, nothing herein shall supersede or modify
136
      the terms of any separate license agreement you may have executed
137
      with Licensor regarding such Contributions.
138

  
139
   6. Trademarks. This License does not grant permission to use the trade
140
      names, trademarks, service marks, or product names of the Licensor,
141
      except as required for reasonable and customary use in describing the
142
      origin of the Work and reproducing the content of the NOTICE file.
143

  
144
   7. Disclaimer of Warranty. Unless required by applicable law or
145
      agreed to in writing, Licensor provides the Work (and each
146
      Contributor provides its Contributions) on an "AS IS" BASIS,
147
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
      implied, including, without limitation, any warranties or conditions
149
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
      PARTICULAR PURPOSE. You are solely responsible for determining the
151
      appropriateness of using or redistributing the Work and assume any
152
      risks associated with Your exercise of permissions under this License.
153

  
154
   8. Limitation of Liability. In no event and under no legal theory,
155
      whether in tort (including negligence), contract, or otherwise,
156
      unless required by applicable law (such as deliberate and grossly
157
      negligent acts) or agreed to in writing, shall any Contributor be
158
      liable to You for damages, including any direct, indirect, special,
159
      incidental, or consequential damages of any character arising as a
160
      result of this License or out of the use or inability to use the
161
      Work (including but not limited to damages for loss of goodwill,
162
      work stoppage, computer failure or malfunction, or any and all
163
      other commercial damages or losses), even if such Contributor
164
      has been advised of the possibility of such damages.
165

  
166
   9. Accepting Warranty or Additional Liability. While redistributing
167
      the Work or Derivative Works thereof, You may choose to offer,
168
      and charge a fee for, acceptance of support, warranty, indemnity,
169
      or other liability obligations and/or rights consistent with this
170
      License. However, in accepting such obligations, You may act only
171
      on Your own behalf and on Your sole responsibility, not on behalf
172
      of any other Contributor, and only if You agree to indemnify,
173
      defend, and hold each Contributor harmless for any liability
174
      incurred by, or claims asserted against, such Contributor by reason
175
      of your accepting any such warranty or additional liability.
176

  
177
   END OF TERMS AND CONDITIONS
178

  
179
   APPENDIX: How to apply the Apache License to your work.
180

  
181
      To apply the Apache License to your work, attach the following
182
      boilerplate notice, with the fields enclosed by brackets "[]"
183
      replaced with your own identifying information. (Don't include
184
      the brackets!)  The text should be enclosed in the appropriate
185
      comment syntax for the file format. We also recommend that a
186
      file or class name and description of purpose be included on the
187
      same "printed page" as the copyright notice for easier
188
      identification within third-party archives.
189

  
190
   Copyright [yyyy] [name of copyright owner]
191

  
192
   Licensed under the Apache License, Version 2.0 (the "License");
193
   you may not use this file except in compliance with the License.
194
   You may obtain a copy of the License at
195

  
196
       http://www.apache.org/licenses/LICENSE-2.0
197

  
198
   Unless required by applicable law or agreed to in writing, software
199
   distributed under the License is distributed on an "AS IS" BASIS,
200
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
   See the License for the specific language governing permissions and
202
   limitations under the License.
tags/tmp_build/build/maven/conf/settings.xml
1
<!--
2
Licensed to the Apache Software Foundation (ASF) under one
3
or more contributor license agreements.  See the NOTICE file
4
distributed with this work for additional information
5
regarding copyright ownership.  The ASF licenses this file
6
to you under the Apache License, Version 2.0 (the
7
"License"); you may not use this file except in compliance
8
with the License.  You may obtain a copy of the License at
9

  
10
    http://www.apache.org/licenses/LICENSE-2.0
11

  
12
Unless required by applicable law or agreed to in writing,
13
software distributed under the License is distributed on an
14
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
KIND, either express or implied.  See the License for the
16
specific language governing permissions and limitations
17
under the License.
18
-->
19

  
20
<!--
21
 | This is the configuration file for Maven. It can be specified at two levels:
22
 |
23
 |  1. User Level. This settings.xml file provides configuration for a single user, 
24
 |                 and is normally provided in $HOME/.m2/settings.xml.
25
 |
26
 |                 NOTE: This location can be overridden with the system property:
27
 |
28
 |                 -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
29
 |
30
 |  2. Global Level. This settings.xml file provides configuration for all maven
31
 |                 users on a machine (assuming they're all using the same maven
32
 |                 installation). It's normally provided in 
33
 |                 ${maven.home}/conf/settings.xml.
34
 |
35
 |                 NOTE: This location can be overridden with the system property:
36
 |
37
 |                 -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
38
 |
39
 | The sections in this sample file are intended to give you a running start at
40
 | getting the most out of your Maven installation. Where appropriate, the default
41
 | values (values used when the setting is not specified) are provided.
42
 |
43
 |-->
44
<settings>
45
  <!-- localRepository
46
   | The path to the local repository maven will use to store artifacts.
47
   |
48
   | Default: ~/.m2/repository
49
  <localRepository>/path/to/local/repo</localRepository>
50
  -->
51

  
52
  <!-- interactiveMode
53
   | This will determine whether maven prompts you when it needs input. If set to false,
54
   | maven will use a sensible default value, perhaps based on some other setting, for
55
   | the parameter in question.
56
   |
57
   | Default: true
58
  <interactiveMode>true</interactiveMode>
59
  -->
60

  
61
  <!-- offline
62
   | Determines whether maven should attempt to connect to the network when executing a build.
63
   | This will have an effect on artifact downloads, artifact deployment, and others.
64
   |
65
   | Default: false
66
  <offline>false</offline>
67
  -->
68

  
69
  <!-- proxies
70
   | This is a list of proxies which can be used on this machine to connect to the network.
71
   | Unless otherwise specified (by system property or command-line switch), the first proxy
72
   | specification in this list marked as active will be used.
73
   |-->
74
  <proxies>
75
    <!-- proxy
76
     | Specification for one proxy, to be used in connecting to the network.
77
     |
78
    <proxy>
79
      <id>optional</id>
80
      <active>true</active>
81
      <protocol>http</protocol>
82
      <username>proxyuser</username>
83
      <password>proxypass</password>
84
      <host>proxy.host.net</host>
85
      <port>80</port>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff