Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 1 | /* |
| 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 Nodet | 1becb5b | 2009-05-04 07:56:47 +0000 | [diff] [blame] | 18 | Building Apache Felix Karaf |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 19 | =================================== |
| 20 | |
| 21 | Initial Setup |
| 22 | ------------- |
| 23 | |
| 24 | 1) 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 | |
| 27 | 2) 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 | |
| 31 | 3) Install Maven 2.0.7, which can be downloaded from |
| 32 | http://maven.apache.org/download.html. Make sure that your PATH includes |
| 33 | the MVN_HOME/bin directory. |
| 34 | |
| 35 | |
| 36 | Building |
| 37 | -------- |
| 38 | |
Guillaume Nodet | 1becb5b | 2009-05-04 07:56:47 +0000 | [diff] [blame] | 39 | 1) Change to the top level directory of Apache Felix Karaf source distribution. |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 40 | 2) Run |
| 41 | $> mvn |
Guillaume Nodet | 1becb5b | 2009-05-04 07:56:47 +0000 | [diff] [blame] | 42 | This will compile Apache Felix Karaf and run all of the tests in the |
| 43 | Apache Felix Karafl source distribution. Alternatively, you can run |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 44 | $> mvn -Pfastinstall |
Guillaume Nodet | 1becb5b | 2009-05-04 07:56:47 +0000 | [diff] [blame] | 45 | This will compile Apache Felix Karaf without running the tests and takes less |
Guillaume Nodet | 05fac96 | 2009-04-27 10:01:58 +0000 | [diff] [blame] | 46 | 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. |
| 51 | 3) The distributions will be available under "assembly/target" directory. |
| 52 | |