When I run \"mvn deploy:deploy\", maven deploys 4 jar files to my internal remote repository.
They are:
[module-name]-1.jar
[module-name]-1.pom
[modu
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<attach>false</attach>
</configuration>
<executions>
<execution>
<phase>package</phase>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
The attach parameter specifies whether the java sources will be attached to the artifact list of the project.
<attach>false</attach>