Skip to content

Commit

Permalink
docs: add maven central dependency info
Browse files Browse the repository at this point in the history
  • Loading branch information
manikmagar authored Oct 19, 2022
1 parent cd5bb7e commit cbc0009
Showing 1 changed file with 22 additions and 3 deletions.
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

0 comments on commit cbc0009

Please sign in to comment.