Maven. Exclude some file from uploading to local repository

164 views Asked by At

I am creating an AWS Lambda package using maven-assembly-plugin. It generates several ZIP files in the target directory.

The Maven Plugin maven-install-plugin uploads all the JAR and ZIP files located in target subdirectory every time I deploy the project. These files are quite heavy. I don't need them in the local repository.

Is the a way to exclude them from uploading to local repository.

1

There are 1 answers

0
J Fabian Meier On

You can set the <skip> parameter of the maven install plugin to true. You do this in the <configuration> section of the plugin definition.