Skip to content

Commit

Permalink
Clean up pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Nov 30, 2023
1 parent 8675091 commit ef862fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 50 deletions.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,25 @@ Ensure your system has the following software installed:
Download the latest MOEA Framework binaries or source code from http://moeaframework.org/ and extract the archive
to a folder on your computer. We will refer to this as folder as `${MOEAFRAMEWORK_ROOT}` below.

Alternatively, if using Maven, start a new Maven project and add a reference to the `moeaframework` dependency in
`pom.xml`.

#### Compile Benchmark Problems

Several of the benchmark problems are written in other languages and must be compiled before use. Please follow
these steps:
Several of the benchmark problems are written in other languages and must be compiled before use. To compile and setup
these programs, run:

1. Clone this repository - `git clone https://github.com/MOEAFramework/RealWorldBenchmarks.git`
2. Run `make -C native`
3. Copy or link the `native/` folder into your MOEA Framework directory using either:
* Option 1 - Copy the entire directory with `cp -R native/ ${MOEAFRAMEWORK_ROOT}/native`
* Option 2 - Create a symbolic link with `ln -s $(realpath -s native/) ${MOEAFRAMEWORK_ROOT}/native`

#### Setup Benchmarks Library
#### Setup Benchmark Library

Finally, download the latest version of the real-world benchmarks JAR file from the
[releases page](https://github.com/MOEAFramework/MOEAFramework/releases) and place it in the `${MOEAFRAMEWORK_ROOT}/lib` folder.

If using the source or binary distribution of the MOEA Framework, you will need to obtain `real-world-benchmarks-{version}.jar`
and place it in the `${MOEAFRAMEWORK_ROOT}/lib` folder. You can download this file from the
[releases page](https://github.com/MOEAFramework/MOEAFramework/releases) or build the latest by running `mvn package -DskipTests`.
## Maven

Maven users can simply add a dependency for this library to `pom.xml`:
If using Maven, you can simply add the following dependency to your project's `pom.xml`:

```xml
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion native/Radar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ endif

all:
$(CC) $(C_FLAGS) -shared -o bin/moeaframework.$(EXT) -c $(SHARED_DIR)/moeaframework.c


39 changes: 0 additions & 39 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,52 +40,13 @@
<groupId>org.moeaframework</groupId>
<artifactId>moeaframework</artifactId>
<version>3.8</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>

<!-- defining some transitive dependencies as provided so they're not included in jar-all-dependencies -->
<dependency>
<groupId>nz.ac.waikato.cms.weka</groupId>
<artifactId>weka-stable</artifactId>
<version>3.8.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.knowm.xchart</groupId>
<artifactId>xchart</artifactId>
<version>3.2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.10.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.6.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit ef862fb

Please sign in to comment.