Revision 23491
tags/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<version>2.0-SNAPSHOT</version> |
|
8 |
<name>extension-base-pom</name> |
|
9 |
<parent> |
|
10 |
<groupId>org.gvsig</groupId> |
|
11 |
<artifactId>gvsig-basepoms</artifactId> |
|
12 |
<version>2.0-SNAPSHOT</version> |
|
13 |
</parent> |
|
14 |
<description> Base POM for all GvSIG extension projects. This pom knows |
|
15 |
how to build and made an extension for GvSIG. The property |
|
16 |
"gvsig-path" must be set up correctly.</description> |
|
17 |
<dependencies> |
|
18 |
<dependency> |
|
19 |
<groupId>junit</groupId> |
|
20 |
<artifactId>junit</artifactId> |
|
21 |
<version>3.8.1</version> |
|
22 |
<scope>test</scope> |
|
23 |
</dependency> |
|
24 |
<dependency> |
|
25 |
<groupId>log4j</groupId> |
|
26 |
<artifactId>log4j</artifactId> |
|
27 |
<version>1.2.8</version> |
|
28 |
</dependency> |
|
29 |
</dependencies> |
|
30 |
<properties> |
|
31 |
<config>config</config> |
|
32 |
<plugin-name> ${project.groupId}.${project.artifactId}</plugin-name> |
|
33 |
<temporaly-build> ${project.build.directory}/${plugin-name} |
|
34 |
</temporaly-build> |
|
35 |
<extension-lib-dir> ${extension-dir}/${plugin-name}/lib |
|
36 |
</extension-lib-dir> |
|
37 |
<build-dir>${basedir}/..</build-dir> |
|
38 |
<extension-ant-base-dir> ${build-dir}/extension-pom |
|
39 |
</extension-ant-base-dir> |
|
40 |
<extension-distribution-file>dist.xml</extension-distribution-file> |
|
41 |
<library-dir>lib</library-dir> |
|
42 |
</properties> |
|
43 |
<profiles> |
|
44 |
<profile> |
|
45 |
<id>install-extension</id> |
|
46 |
<activation> |
|
47 |
<property> |
|
48 |
<name>install-extension</name> |
|
49 |
</property> |
|
50 |
</activation> |
|
51 |
<build> |
|
52 |
<plugins> |
|
53 |
<plugin> |
|
54 |
<artifactId>maven-assembly-plugin |
|
55 |
</artifactId> |
|
56 |
<configuration> |
|
57 |
<descriptors> |
|
58 |
<descriptor> ${extension-distribution-file}</descriptor> |
|
59 |
</descriptors> |
|
60 |
<outputDirectory> ${extension-distribution-output-directory} |
|
61 |
</outputDirectory> |
|
62 |
<finalName> ${distribution-final-name}</finalName> |
|
63 |
<appendAssemblyId>true</appendAssemblyId> |
|
64 |
<ignoreDirFormatExtensions> true</ignoreDirFormatExtensions> |
|
65 |
</configuration> |
|
66 |
<executions> |
|
67 |
<execution> |
|
68 |
<id>make-assembly</id> |
|
69 |
<!-- |
|
70 |
this is used for inheritance merges |
|
71 |
--> |
|
72 |
<phase>package</phase> |
|
73 |
<!-- |
|
74 |
append to the packaging phase. |
|
75 |
--> |
|
76 |
<goals> |
|
77 |
<goal>attached</goal><!-- goals == mojos --> |
|
78 |
</goals> |
|
79 |
</execution> |
|
80 |
</executions> |
|
81 |
</plugin> |
|
82 |
<plugin> |
|
83 |
<artifactId>maven-antrun-plugin</artifactId> |
|
84 |
<executions> |
|
85 |
<execution> |
|
86 |
<id>copy-to-andami</id> |
|
87 |
<phase>install</phase> |
|
88 |
<configuration> |
|
89 |
<tasks> |
|
90 |
<property name="project.build.directory" value="${project.build.directory}" /> |
|
91 |
<property name="project.artifactId" value="${project.artifactId}" /> |
|
92 |
<property name="project.version" value="${project.version}" /> |
|
93 |
<property name="project.packaging" value="${project.packaging}" /> |
|
94 |
<property name="temporaly-build" value="${temporaly-build}" /> |
|
95 |
<property name="plugin-name" value="${plugin-name}" /> |
|
96 |
<property name="config" value="${config}" /> |
|
97 |
<property name="extension-dir" value="${extension-dir}" /> |
|
98 |
<property name="library-dir" value="${library-dir}" /> |
|
99 |
<property name="distribution-final-name" value="${distribution-final-name}" /> |
|
100 |
<ant antfile="${extension-ant-base-dir}/build.xml" |
|
101 |
inheritRefs="true" /> |
|
102 |
</tasks> |
|
103 |
</configuration> |
|
104 |
<goals> |
|
105 |
<goal>run</goal> |
|
106 |
</goals> |
|
107 |
</execution> |
|
108 |
</executions> |
|
109 |
</plugin> |
|
110 |
</plugins> |
|
111 |
</build> |
|
112 |
</profile> |
|
113 |
<profile> |
|
114 |
<id>generate-installers</id> |
|
115 |
<activation> |
|
116 |
<property> |
|
117 |
<name>generate-install</name> |
|
118 |
</property> |
|
119 |
</activation> |
|
120 |
<build> |
|
121 |
<plugins> |
|
122 |
<plugin> |
|
123 |
<artifactId>maven-assembly-plugin</artifactId> |
|
124 |
<configuration> |
|
125 |
<descriptors> |
|
126 |
<descriptor> |
|
127 |
${distribution-win32-descriptor} |
|
128 |
</descriptor> |
|
129 |
<descriptor> |
|
130 |
${distribution-linux32-descriptor} |
|
131 |
</descriptor> |
|
132 |
<!-- descriptor> |
|
133 |
${distribution-mac-descriptor |
|
134 |
</descriptor--> |
|
135 |
<!--descriptor> |
|
136 |
/distribution/source-distribution.xml |
|
137 |
</descriptor--> |
|
138 |
</descriptors> |
|
139 |
<outputDirectory> |
|
140 |
${distribution-output-directory} |
|
141 |
</outputDirectory> |
|
142 |
<finalName> |
|
143 |
${distribution-final-name} |
|
144 |
</finalName> |
|
145 |
<appendAssemblyId>true</appendAssemblyId> |
|
146 |
<ignoreDirFormatExtensions> |
|
147 |
true |
|
148 |
</ignoreDirFormatExtensions> |
|
149 |
</configuration> |
|
150 |
<executions> |
|
151 |
<execution> |
|
152 |
<id>make-assembly</id><!-- this is used for inheritance merges --> |
|
153 |
<phase>package</phase><!-- append to the packaging phase. --> |
|
154 |
<goals> |
|
155 |
<goal>attached</goal><!-- goals == mojos --> |
|
156 |
</goals> |
|
157 |
</execution> |
|
158 |
</executions> |
|
159 |
</plugin> |
|
160 |
</plugins> |
|
161 |
</build> |
|
162 |
</profile> |
|
163 |
</profiles> |
|
164 |
</project> |
tags/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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>2.0-SNAPSHOT</version> |
|
9 |
<name>library-base-pom</name> |
|
10 |
<parent> |
|
11 |
<groupId>org.gvsig</groupId> |
|
12 |
<artifactId>gvsig-basepoms</artifactId> |
|
13 |
<version>2.0-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/v2_0_0_Build_2000/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> |
|
86 |
<nonProxyHosts>local.net,some.host.com</nonProxyHosts> |
|
87 |
</proxy> |
|
88 |
--> |
|
89 |
</proxies> |
|
90 |
|
|
91 |
<!-- servers |
|
92 |
| This is a list of authentication profiles, keyed by the server-id used within the system. |
|
93 |
| Authentication profiles can be used whenever maven must make a connection to a remote server. |
|
94 |
|--> |
|
95 |
<servers> |
|
96 |
<!-- server |
|
97 |
| Specifies the authentication information to use when connecting to a particular server, identified by |
|
98 |
| a unique name within the system (referred to by the 'id' attribute below). |
|
99 |
| |
|
100 |
| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are |
|
101 |
| used together. |
|
102 |
| |
|
103 |
<server> |
|
104 |
<id>deploymentRepo</id> |
|
105 |
<username>repouser</username> |
|
106 |
<password>repopwd</password> |
|
107 |
</server> |
|
108 |
--> |
|
109 |
|
|
110 |
<!-- Another sample, using keys to authenticate. |
|
111 |
<server> |
|
112 |
<id>siteServer</id> |
|
113 |
<privateKey>/path/to/private/key</privateKey> |
|
114 |
<passphrase>optional; leave empty if not used.</passphrase> |
|
115 |
</server> |
|
116 |
--> |
|
117 |
</servers> |
|
118 |
|
|
119 |
<!-- mirrors |
|
120 |
| This is a list of mirrors to be used in downloading artifacts from remote repositories. |
|
121 |
| |
|
122 |
| It works like this: a POM may declare a repository to use in resolving certain artifacts. |
|
123 |
| However, this repository may have problems with heavy traffic at times, so people have mirrored |
|
124 |
| it to several places. |
|
125 |
| |
|
126 |
| That repository definition will have a unique id, so we can create a mirror reference for that |
|
127 |
| repository, to be used as an alternate download site. The mirror site will be the preferred |
|
128 |
| server for that repository. |
|
129 |
|--> |
|
130 |
<mirrors> |
|
131 |
<!-- mirror |
|
132 |
| Specifies a repository mirror site to use instead of a given repository. The repository that |
|
133 |
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used |
|
134 |
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors. |
|
135 |
| |
|
136 |
<mirror> |
|
137 |
<id>mirrorId</id> |
|
138 |
<mirrorOf>repositoryId</mirrorOf> |
|
139 |
<name>Human Readable Name for this Mirror.</name> |
|
140 |
<url>http://my.repository.com/repo/path</url> |
|
141 |
</mirror> |
|
142 |
--> |
|
143 |
</mirrors> |
|
144 |
|
|
145 |
<!-- profiles |
|
146 |
| This is a list of profiles which can be activated in a variety of ways, and which can modify |
|
147 |
| the build process. Profiles provided in the settings.xml are intended to provide local machine- |
|
148 |
| specific paths and repository locations which allow the build to work in the local environment. |
|
149 |
| |
|
150 |
| For example, if you have an integration testing plugin - like cactus - that needs to know where |
|
151 |
| your Tomcat instance is installed, you can provide a variable here such that the variable is |
|
152 |
| dereferenced during the build process to configure the cactus plugin. |
|
153 |
| |
|
154 |
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles |
|
155 |
| section of this document (settings.xml) - will be discussed later. Another way essentially |
|
156 |
| relies on the detection of a system property, either matching a particular value for the property, |
|
157 |
| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a |
|
158 |
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'. |
|
159 |
| Finally, the list of active profiles can be specified directly from the command line. |
|
160 |
| |
|
161 |
| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact |
|
162 |
| repositories, plugin repositories, and free-form properties to be used as configuration |
|
163 |
| variables for plugins in the POM. |
|
164 |
| |
|
165 |
|--> |
|
166 |
<profiles> |
|
167 |
<!-- profile |
|
168 |
| Specifies a set of introductions to the build process, to be activated using one or more of the |
|
169 |
| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/> |
|
170 |
| or the command line, profiles have to have an ID that is unique. |
|
171 |
| |
|
172 |
| An encouraged best practice for profile identification is to use a consistent naming convention |
|
173 |
| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc. |
|
174 |
| This will make it more intuitive to understand what the set of introduced profiles is attempting |
|
175 |
| to accomplish, particularly when you only have a list of profile id's for debug. |
|
176 |
| |
|
177 |
| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo. |
|
178 |
<profile> |
|
179 |
<id>jdk-1.4</id> |
|
180 |
|
|
181 |
<activation> |
|
182 |
<jdk>1.4</jdk> |
|
183 |
</activation> |
|
184 |
|
|
185 |
<repositories> |
|
186 |
<repository> |
|
187 |
<id>jdk14</id> |
|
188 |
<name>Repository for JDK 1.4 builds</name> |
|
189 |
<url>http://www.myhost.com/maven/jdk14</url> |
|
190 |
<layout>default</layout> |
|
191 |
<snapshotPolicy>always</snapshotPolicy> |
|
192 |
</repository> |
|
193 |
</repositories> |
|
194 |
</profile> |
|
195 |
--> |
|
196 |
|
|
197 |
<!-- |
|
198 |
| Here is another profile, activated by the system property 'target-env' with a value of 'dev', |
|
199 |
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration |
|
200 |
| might hypothetically look like: |
|
201 |
| |
|
202 |
| ... |
|
203 |
| <plugin> |
|
204 |
| <groupId>org.myco.myplugins</groupId> |
|
205 |
| <artifactId>myplugin</artifactId> |
|
206 |
| |
|
207 |
| <configuration> |
|
208 |
| <tomcatLocation>${tomcatPath}</tomcatLocation> |
|
209 |
| </configuration> |
|
210 |
| </plugin> |
|
211 |
| ... |
|
212 |
| |
|
213 |
| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to |
|
214 |
| anything, you could just leave off the <value/> inside the activation-property. |
|
215 |
| |
|
216 |
<profile> |
|
217 |
<id>env-dev</id> |
|
218 |
|
|
219 |
<activation> |
|
220 |
<property> |
|
221 |
<name>target-env</name> |
|
222 |
<value>dev</value> |
|
223 |
</property> |
|
224 |
</activation> |
|
225 |
|
|
226 |
<properties> |
|
227 |
<tomcatPath>/path/to/tomcat/instance</tomcatPath> |
|
228 |
</properties> |
|
229 |
</profile> |
|
230 |
--> |
|
231 |
</profiles> |
|
232 |
|
|
233 |
<!-- activeProfiles |
|
234 |
| List of profiles that are active for all builds. |
|
235 |
| |
|
236 |
<activeProfiles> |
|
237 |
<activeProfile>alwaysActiveProfile</activeProfile> |
|
238 |
<activeProfile>anotherAlwaysActiveProfile</activeProfile> |
|
239 |
</activeProfiles> |
|
240 |
--> |
|
241 |
</settings> |
tags/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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/v2_0_0_Build_2000/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, |
Also available in: Unified diff