mvn -v
=> Check versionmvn archetype:generate -DgroupId=com.accenture.lkm -DartifactId=dependency-counter-maven-plugin -Dversion=0.0.1-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-mojo
mvn compile
=> Compile maven projectmvn test-compile
=> Compile test filesmvn test
mvn package
=> Generate jar filemvn clean install
mvn surefire-report:report
mvn com.accenture.lkm:dependency-counter-maven-plugin:0.0.1-SNAPSHOT:dependency-counter
mvn com.accenture.lkm:dependency-counter-maven-plugin:0.0.1-SNAPSHOT:dependency-counter -Dscope=provided
mvn clean install -U
m2_home env_variable
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugin</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M7</version>
</plugin>
</plugins>
</reporting>
cd maven_ex
mvn archetype:generate -DgroupId=com.accenture.lkm -DartifactId=dependency-counter-maven-plugin -Dversion=0.0.1-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-mojo
http://localhost:9000/
admin
is Login & Password => Change password <build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.4</version>
</plugin>
<!-- other plugins -->
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-plugin-plugin
</artifactId>
<versionRange>[3.4,)</versionRange>
<goals>
<goal>descriptor</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
sonar-project.properties
sonar.projectName=plugin_demo
sonar.projectKey=pluginKey
sonar.sources=src/main/java
sonar.host.url=http://localhost:9000/
sonar.token=sqp_d0e5bcc52c3f981bf3e8974dbefe93fb4627eacf