Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add maven central dependency info #45

Merged
merged 1 commit into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,36 @@ You can also override the global configuration elements by specifying properties

# How?

## Using maven dependency
First, clone this repository and run ```mvn clean install``` to install this maven project in your local .m2 repository.
## Use from Maven Central

Mule Custom Logger v2.0.0 and later are published to [Maven Central](https://search.maven.org/artifact/com.avioconsulting.mule/mule-custom-logger). To use the module, you can simply add following dependency to your application's pom.xml -

```xml
<dependency>
<groupId>com.avioconsulting.mule</groupId>
<artifactId>mule-custom-logger</artifactId>
<version>LATEST_RELEASE_VERSION</version>
<classifier>mule-plugin</classifier>
</dependency>
```

## Use from Local Maven Repository

You can install the module to local maven repository and use it for testing purpose.

* First, Clone this GitHub repository into your local machine.
* Get your Anypoint's organization ID and
* Place it in pom.xml group id tag. ```<groupId>YOUR_ORG_ID</groupId>```.

Now run ```mvn clean install``` to install this maven project in your local .m2 repository.

When you install this project into your machine's local .m2 repository, You can include this dependency(see below) in your mule projects. When you included this dependency in your project's pom.xml, AVIO's custom logger component automatically shows up in mule project's pallete and using this logger afterwards is just a drag away.

```xml
<dependency>
<groupId>YOUR_GROUP_ID</groupId>
<artifactId>mule-custom-logger</artifactId>
<version>1.0.0</version>
<version>LATEST_VERSION_FROM_POM</version>
<classifier>mule-plugin</classifier>
</dependency>
```
Expand Down