blob: 533852ac848a14d9480bb6c2a73cc3200126c806 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
Guillaume Nodet1becb5b2009-05-04 07:56:47 +000018Building Apache Felix Karaf
Guillaume Nodet05fac962009-04-27 10:01:58 +000019===================================
20
21Initial Setup
22-------------
23
241) Install J2SE 5.0 SDK, which can be downloaded from
25 http://java.sun.com/j2se/1.5.0/download.jsp. Use version of 1.5.0_06 JDK.
26
272) Make sure that your JAVA_HOME environment variable is set to the newly installed
28 JDK location, and that your PATH includes %JAVA_HOME%\bin (windows) or
29 $JAVA_HOME$/bin (unix).
30
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +0000313) Install Maven 2.2.1, which can be downloaded from
Guillaume Nodet05fac962009-04-27 10:01:58 +000032 http://maven.apache.org/download.html. Make sure that your PATH includes
33 the MVN_HOME/bin directory.
34
35
36Building
37--------
38
Guillaume Nodet1becb5b2009-05-04 07:56:47 +0000391) Change to the top level directory of Apache Felix Karaf source distribution.
Guillaume Nodet05fac962009-04-27 10:01:58 +0000402) Run
41 $> mvn
Guillaume Nodet1becb5b2009-05-04 07:56:47 +000042 This will compile Apache Felix Karaf and run all of the tests in the
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000043 Apache Felix Karaf source distribution. Alternatively, you can run
Guillaume Nodet05fac962009-04-27 10:01:58 +000044 $> mvn -Pfastinstall
Guillaume Nodet1becb5b2009-05-04 07:56:47 +000045 This will compile Apache Felix Karaf without running the tests and takes less
Guillaume Nodet05fac962009-04-27 10:01:58 +000046 time to build.
47 Depending on the load of remote Maven 2.0 repositories, you may have
48 to run "mvn" several times until the required dependencies are
49 all located in your local maven repository. It usually takes some time for
50 maven to download required dependencies in the first build.
513) The distributions will be available under "assembly/target" directory.
52