<commit_before># maven2sbt

[![Build Status](https://github.com/Kevin-Lee/maven2sbt/workflows/Build%20All/badge.svg)](https://github.com/Kevin-Lee/maven2sbt/actions?workflow=Build+All)
[![Release Status](https://github.com/Kevin-Lee/maven2sbt/workflows/Release/badge.svg)](https://github.com/Kevin-Lee/maven2sbt/actions?workflow=Release)

[![Download](https://api.bintray.com/packages/kevinlee/maven/maven2sbt-core/images/download.svg)](https://bintray.com/kevinlee/maven/maven2sbt-core/_latestVersion)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.kevinlee/maven2sbt-core_2.13/badge.svg)](https://search.maven.org/artifact/io.kevinlee/maven2sbt-core_2.13)
[![Latest version](https://index.scala-lang.org/kevin-lee/maven2sbt/maven2sbt-core/latest.svg)](https://index.scala-lang.org/kevin-lee/maven2sbt/maven2sbt-core)

A tool to convert Maven `pom.xml` into sbt `build.sbt`


# Standalone CLI App

## Debian / Ubuntu Linux
If you use Debian or Unbuntu Linux you can download [maven2sbt-cli_0.1.0_all.deb](https://github.com/Kevin-Lee/maven2sbt/releases/download/v0.1.0/maven2sbt-cli_0.1.0_all.deb) and install it.
```shell
$ dpkg -i maven2sbt-cli_0.1.0_all.deb 
```
`maven2sbt-cli` should be available.
e.g.)
```shell
$ which maven2sbt-cli
/usr/bin/maven2sbt-cli
```


## Linux / macOS (with Java)

Download [maven2sbt-cli-0.1.0.zip](https://github.com/Kevin-Lee/maven2sbt/releases/download/v0.1.0/maven2sbt-cli-0.1.0.zip) or [maven2sbt-cli-0.1.0.tgz](https://github.com/Kevin-Lee/maven2sbt/releases/download/v0.1.0/maven2sbt-cli-0.1.0.tgz) and unzip it.

Add an alias for convenience to `~/.zshrc` or `~/.bashrc` or `~/.bash_profile` or the run commands file for your shell. 
```shell
alias maven2sbt-cli='/path/to/maven2sbt-cli-0.1.0/bin/maven2sbt-cli'
```


## Windows (with Java / Not Tested)

Download and unzip the maven2sbt-cli-0.1.0.zip or maven2sbt-cli-0.1.0.tgz just like Linux or macOS.

You can run `maven2sbt-cli-0.1.0/bin/maven2sbt-cli.bat` file but it hasn't been tested.


# How to Use

Now you can run it like

```shell
$ maven2sbt-cli --help 

Usage:
  Maven2Sbt --scalaVersion <version> <pom-path> [-v|--version VERSION] [-h|--help
            HELP]
<commit_msg>Updated: README.md - easier ways to install maven2sbt-cli<commit_after># maven2sbt

[![Build Status](https://github.com/Kevin-Lee/maven2sbt/workflows/Build%20All/badge.svg)](https://github.com/Kevin-Lee/maven2sbt/actions?workflow=Build+All)
[![Release Status](https://github.com/Kevin-Lee/maven2sbt/workflows/Release/badge.svg)](https://github.com/Kevin-Lee/maven2sbt/actions?workflow=Release)

[![Download](https://api.bintray.com/packages/kevinlee/maven/maven2sbt-core/images/download.svg)](https://bintray.com/kevinlee/maven/maven2sbt-core/_latestVersion)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.kevinlee/maven2sbt-core_2.13/badge.svg)](https://search.maven.org/artifact/io.kevinlee/maven2sbt-core_2.13)
[![Latest version](https://index.scala-lang.org/kevin-lee/maven2sbt/maven2sbt-core/latest.svg)](https://index.scala-lang.org/kevin-lee/maven2sbt/maven2sbt-core)

A tool to convert Maven `pom.xml` into sbt `build.sbt`


# Standalone CLI App

It requires Java 8 or higher. So JRE should be installed and available to run `maven2sbt-cli`.

## Debian / Ubuntu Linux
If you use Debian or Unbuntu Linux you can download [maven2sbt-cli_0.1.0_all.deb](https://github.com/Kevin-Lee/maven2sbt/releases/download/v0.1.0/maven2sbt-cli_0.1.0_all.deb) and install it.
```shell
$ dpkg -i maven2sbt-cli_0.1.0_all.deb 
```
`maven2sbt-cli` should be available.
e.g.)
```shell
$ which maven2sbt-cli
/usr/bin/maven2sbt-cli
```


## Linux / macOS
### Use `curl`
```shell
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Kevin-Lee/maven2sbt/master/.scripts/install.sh)" 
```
***

### Or use `wget`
```shell
sh -c "$(wget -O- https://raw.githubusercontent.com/Kevin-Lee/maven2sbt/master/.scripts/install.sh)" 
```
***

### Or do it manually (not recommended)
  
Download [maven2sbt-cli-0.1.0.zip](https://github.com/Kevin-Lee/maven2sbt/releases/download/v0.1.0/maven2sbt-cli-0.1.0.zip) or [maven2sbt-cli-0.1.0.tgz](https://github.com/Kevin-Lee/maven2sbt/releases/download/v0.1.0/maven2sbt-cli-0.1.0.tgz) and unzip it.
  
Add an alias for convenience to `~/.zshrc` or `~/.bashrc` or `~/.bash_profile` or the run commands file for your shell. 
```shell
alias maven2sbt-cli='/path/to/maven2sbt-cli-0.1.0/bin/maven2sbt-cli'
```


## Windows

Download and unzip the maven2sbt-cli-0.1.0.zip or maven2sbt-cli-0.1.0.tgz just like Linux or macOS.

You can run `maven2sbt-cli-0.1.0/bin/maven2sbt-cli.bat` file but it hasn't been tested.


# How to Use

Now you can run it like

```shell
$ maven2sbt-cli --help 

Usage:
  Maven2Sbt --scalaVersion <version> <pom-path> [-v|--version VERSION] [-h|--help
            HELP]

{'fraction_non_alphanumeric': 0.17508278145695363, 'fraction_numerical': 0.03621688741721854, 'mean_word_length': 4.207974137931035, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 28, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1234265', 'n_tokens_mistral': 2150, 'n_tokens_neox': 1945, 'n_words': 307}