[root@localhost ~]# yum provides */mvn
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.net.in
* epel: del-mirrors.extreme-ix.org
* extras: mirror.vbctv.in
* updates: mirror.vbctv.in
maven-3.0.5-17.el7.noarch : Java project management and project comprehension tool
Repo : base
Matched from:
Filename : /usr/share/maven/bin/mvn
Filename : /usr/bin/mvn
xmvn-1.3.0-6.el7_3.noarch : Local Extensions for Apache Maven
Repo : base
Matched from:
Filename : /usr/share/xmvn/bin/mvn
[root@localhost ~]# yum install maven
[root@localhost ~]# mvn -version
Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_161, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-0.b14.el7_4.x86_64/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: “linux”, version: “3.10.0-693.11.6.el7.x86_64”, arch: “amd64”, family: “unix”
[root@localhost ~]# git clone https://github.com/jitpack/maven-simple.git
Cloning into ‘maven-simple’…
remote: Counting objects: 89, done.
remote: Total 89 (delta 0), reused 0 (delta 0), pack-reused 89
Unpacking objects: 100% (89/89), done.
[root@localhost ~]# cd maven-simple/
[root@localhost maven-simple]# ll
total 12
-rw-r–r–. 1 root root 1075 Mar 8 17:27 LICENSE
-rw-r–r–. 1 root root 1984 Mar 8 17:27 pom.xml
-rw-r–r–. 1 root root 606 Mar 8 17:27 README.md
drwxr-xr-x. 4 root root 30 Mar 8 17:27 src
[root@localhost maven-simple]# mvn clean install
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.jitpack:maven-simple:jar:0.2-SNAPSHOT
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-source-plugin is missing. @ line 35, column 15
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 48, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ————————————————————————
[INFO] Building Simple Maven example 0.2-SNAPSHOT
[INFO] ————————————————————————
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.2/maven-compiler-plugin-3.2.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.2/maven-compiler-plugin-3.2.pom (12 KB at 4.6 KB/sec)
.
.
.
.
[INFO] — maven-install-plugin:2.3.1:install (default-install) @ maven-simple —
[INFO] Installing /root/maven-simple/target/maven-simple-0.2-SNAPSHOT.jar to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT.jar
[INFO] Installing /root/maven-simple/pom.xml to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT.pom
[INFO] Installing /root/maven-simple/target/maven-simple-0.2-SNAPSHOT-sources.jar to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT-sources.jar
[INFO] Installing /root/maven-simple/target/maven-simple-0.2-SNAPSHOT-javadoc.jar to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT-javadoc.jar
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 49.685s
[INFO] Finished at: Thu Mar 08 17:28:44 UTC 2018
[INFO] Final Memory: 20M/92M
[INFO] ————————————————————————
[root@localhost maven-simple]# ll
total 16
-rw-r–r–. 1 root root 1075 Mar 8 17:27 LICENSE
-rw-r–r–. 1 root root 1984 Mar 8 17:27 pom.xml
-rw-r–r–. 1 root root 606 Mar 8 17:27 README.md
drwxr-xr-x. 4 root root 30 Mar 8 17:27 src
drwxr-xr-x. 12 root root 4096 Mar 8 17:28 target
[root@localhost maven-simple]# tree .
.
|– LICENSE
|– pom.xml
|– README.md
|– src
| |– main
| | `– java
| | `– com
| | `– github
| | `– jitpack
| | `– App.java
| `– test
| `– java
| `– com
| `– github
| `– jitpack
| `– AppTest.java
`– target
|– apidocs
| |– allclasses-frame.html
| |– allclasses-noframe.html
| |– com
| | `– github
| | `– jitpack
| | |– App.html
| | |– class-use
| | | `– App.html
| | |– package-frame.html
| | |– package-summary.html
| | |– package-tree.html
| | `– package-use.html
| |– constant-values.html
| |– deprecated-list.html
| |– help-doc.html
| |– index-all.html
| |– index.html
| |– overview-tree.html
| |– package-list
| |– script.js
| `– stylesheet.css
|– classes
| `– com
| `– github
| `– jitpack
| `– App.class
|– generated-sources
| `– annotations
|– generated-test-sources
| `– test-annotations
|– javadoc-bundle-options
| |– javadoc-options-javadoc-resources.xml
| `– package-list
|– maven-archiver
| `– pom.properties
|– maven-simple-0.2-SNAPSHOT.jar
|– maven-simple-0.2-SNAPSHOT-javadoc.jar
|– maven-simple-0.2-SNAPSHOT-sources.jar
|– maven-status
| `– maven-compiler-plugin
| |– compile
| | `– default-compile
| | |– createdFiles.lst
| | `– inputFiles.lst
| `– testCompile
| `– default-testCompile
| |– createdFiles.lst
| `– inputFiles.lst
|– surefire
|– surefire-reports
| |– com.github.jitpack.AppTest.txt
| `– TEST-com.github.jitpack.AppTest.xml
`– test-classes
`– com
`– github
`– jitpack
`– AppTest.class
39 directories, 36 files
[root@localhost maven-simple]# mvn clean install
[INFO] Scanning for projects…
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.github.jitpack:maven-simple:jar:0.2-SNAPSHOT
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-source-plugin is missing. @ line 35, column 15
[WARNING] ‘build.plugins.plugin.version’ for org.apache.maven.plugins:maven-javadoc-plugin is missing. @ line 48, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ————————————————————————
[INFO] Building Simple Maven example 0.2-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — maven-clean-plugin:2.4.1:clean (default-clean) @ maven-simple —
[INFO] Deleting /root/maven-simple/target
[INFO]
[INFO] — maven-resources-plugin:2.5:resources (default-resources) @ maven-simple —
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /root/maven-simple/src/main/resources
[INFO]
[INFO] — maven-compiler-plugin:3.2:compile (default-compile) @ maven-simple —
[INFO] Changes detected – recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /root/maven-simple/target/classes
[INFO]
[INFO] — maven-resources-plugin:2.5:testResources (default-testResources) @ maven-simple —
[debug] execute contextualize
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /root/maven-simple/src/test/resources
[INFO]
[INFO] — maven-compiler-plugin:3.2:testCompile (default-testCompile) @ maven-simple —
[INFO] Changes detected – recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /root/maven-simple/target/test-classes
[INFO]
[INFO] — maven-surefire-plugin:2.10:test (default-test) @ maven-simple —
[INFO] Surefire report directory: /root/maven-simple/target/surefire-reports
——————————————————-
T E S T S
——————————————————-
Running com.github.jitpack.AppTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec
Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] — maven-jar-plugin:2.3.2:jar (default-jar) @ maven-simple —
[INFO] Building jar: /root/maven-simple/target/maven-simple-0.2-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) @ maven-simple >>>
[INFO]
[INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) @ maven-simple <<<
[INFO]
[INFO] — maven-source-plugin:3.0.1:jar (attach-sources) @ maven-simple —
[INFO] Building jar: /root/maven-simple/target/maven-simple-0.2-SNAPSHOT-sources.jar
[INFO]
[INFO] — maven-javadoc-plugin:3.0.0:jar (attach-javadocs) @ maven-simple —
[WARNING] Source files encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO]
Loading source files for package com.github.jitpack…
Constructing Javadoc information…
Standard Doclet version 1.8.0_161
Building tree for all the packages and classes…
Generating /root/maven-simple/target/apidocs/com/github/jitpack/App.html…
Generating /root/maven-simple/target/apidocs/com/github/jitpack/package-frame.html…
Generating /root/maven-simple/target/apidocs/com/github/jitpack/package-summary.html…
Generating /root/maven-simple/target/apidocs/com/github/jitpack/package-tree.html…
Generating /root/maven-simple/target/apidocs/constant-values.html…
Generating /root/maven-simple/target/apidocs/com/github/jitpack/class-use/App.html…
Generating /root/maven-simple/target/apidocs/com/github/jitpack/package-use.html…
Building index for all the packages and classes…
Generating /root/maven-simple/target/apidocs/overview-tree.html…
Generating /root/maven-simple/target/apidocs/index-all.html…
Generating /root/maven-simple/target/apidocs/deprecated-list.html…
Building index for all classes…
Generating /root/maven-simple/target/apidocs/allclasses-frame.html…
Generating /root/maven-simple/target/apidocs/allclasses-noframe.html…
Generating /root/maven-simple/target/apidocs/index.html…
Generating /root/maven-simple/target/apidocs/help-doc.html…
[INFO] Building jar: /root/maven-simple/target/maven-simple-0.2-SNAPSHOT-javadoc.jar
[INFO]
[INFO] — maven-install-plugin:2.3.1:install (default-install) @ maven-simple —
[INFO] Installing /root/maven-simple/target/maven-simple-0.2-SNAPSHOT.jar to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT.jar
[INFO] Installing /root/maven-simple/pom.xml to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT.pom
[INFO] Installing /root/maven-simple/target/maven-simple-0.2-SNAPSHOT-sources.jar to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT-sources.jar
[INFO] Installing /root/maven-simple/target/maven-simple-0.2-SNAPSHOT-javadoc.jar to /root/.m2/repository/com/github/jitpack/maven-simple/0.2-SNAPSHOT/maven-simple-0.2-SNAPSHOT-javadoc.jar
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 8.740s
[INFO] Finished at: Thu Mar 08 17:30:39 UTC 2018
[INFO] Final Memory: 17M/84M
[INFO] ————————————————————————
