agarkovand / DMDev2ndLevel

https://dmdev.tilda.ws/second-level
0 stars 0 forks source link

Set latest versions for Maven Lifecycle Plugins #6

Open agarkovand opened 5 months ago

agarkovand commented 5 months ago

Задать последние версии основных плагинов в родительском поме, дочерние помы унаследуют эти настройки. Поместить настройки внутрь тэга pluginManagement, а не в plugins.

agarkovand commented 5 months ago

java -Dmaven.multiModuleProjectDirectory=/Users/frodo/Java/projects/DMDev2ndLevel -Djansi.passthrough=true -Dmaven.home=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3 -Dclassworlds.conf=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=59302:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.7.0.jar org.codehaus.classworlds.Launcher -Didea.version=2023.3.2 package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] agarkov-2nd-level [pom] [INFO] common [jar] [INFO] service [jar] [INFO] [INFO] -----------------< dmdev.mentoring:agarkov-2nd-level >------------------ [INFO] Building agarkov-2nd-level 1.0.0-SNAPSHOT [1/3] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] -----------------------< dmdev.mentoring:common >----------------------- [INFO] Building common 1.0.0-SNAPSHOT [2/3] [INFO] from common/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ common --- [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.11.0:compile (default-compile) @ common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ common --- [INFO] skip non existing resourceDirectory /Users/frodo/Java/projects/DMDev2ndLevel/common/src/test/resources [INFO] [INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ common --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- surefire:3.1.2:test (default-test) @ common --- [INFO] [INFO] --- jar:3.3.0:jar (default-jar) @ common --- [INFO] Building jar: /Users/frodo/Java/projects/DMDev2ndLevel/common/target/common-1.0.0-SNAPSHOT.jar [INFO] [INFO] ----------------------< dmdev.mentoring:service >----------------------- [INFO] Building service 1.0.0-SNAPSHOT [3/3] [INFO] from service/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ service --- [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.11.0:compile (default-compile) @ service --- [INFO] Changes detected - recompiling the module! :source [INFO] Compiling 1 source file with javac [debug target 17] to target/classes [WARNING] system modules path not set in conjunction with -source 17 [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ service --- [INFO] skip non existing resourceDirectory /Users/frodo/Java/projects/DMDev2ndLevel/service/src/test/resources [INFO] [INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ service --- [INFO] Changes detected - recompiling the module! :dependency [INFO] [INFO] --- surefire:3.1.2:test (default-test) @ service --- [INFO] [INFO] --- jar:3.3.0:jar (default-jar) @ service --- [INFO] Building jar: /Users/frodo/Java/projects/DMDev2ndLevel/service/target/service-1.0.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for agarkov-2nd-level 1.0.0-SNAPSHOT: [INFO] [INFO] agarkov-2nd-level .................................. SUCCESS [ 0.001 s] [INFO] common ............................................. SUCCESS [ 0.452 s] [INFO] service ............................................ SUCCESS [ 0.219 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.727 s [INFO] Finished at: 2024-01-26T09:30:58+01:00 [INFO] ------------------------------------------------------------------------

Process finished with exit code 0

agarkovand commented 5 months ago

java -Dmaven.multiModuleProjectDirectory=/Users/frodo/Java/projects/DMDev2ndLevel -Djansi.passthrough=true -Dmaven.home=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3 -Dclassworlds.conf=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Applications/IntelliJ IDEA CE.app/Contents/lib/idea_rt.jar=51802:/Applications/IntelliJ IDEA CE.app/Contents/bin -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ IDEA CE.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.7.0.jar org.codehaus.classworlds.Launcher -Didea.version=2023.3.2 install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] agarkov-2nd-level [pom] [INFO] common [jar] [INFO] service [jar] [INFO] [INFO] -----------------< dmdev.mentoring:agarkov-2nd-level >------------------ [INFO] Building agarkov-2nd-level 1.0.0-SNAPSHOT [1/3] [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- install:3.1.1:install (default-install) @ agarkov-2nd-level --- [INFO] Installing /Users/frodo/Java/projects/DMDev2ndLevel/pom.xml to /Users/frodo/.m2/repository/dmdev/mentoring/agarkov-2nd-level/1.0.0-SNAPSHOT/agarkov-2nd-level-1.0.0-SNAPSHOT.pom [INFO] [INFO] -----------------------< dmdev.mentoring:common >----------------------- [INFO] Building common 1.0.0-SNAPSHOT [2/3] [INFO] from common/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ common --- [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.12.1:compile (default-compile) @ common --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ common --- [INFO] skip non existing resourceDirectory /Users/frodo/Java/projects/DMDev2ndLevel/common/src/test/resources [INFO] [INFO] --- compiler:3.12.1:testCompile (default-testCompile) @ common --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ common --- [INFO] [INFO] --- jar:3.3.0:jar (default-jar) @ common --- [INFO] [INFO] --- install:3.1.1:install (default-install) @ common --- [INFO] Installing /Users/frodo/Java/projects/DMDev2ndLevel/common/pom.xml to /Users/frodo/.m2/repository/dmdev/mentoring/common/1.0.0-SNAPSHOT/common-1.0.0-SNAPSHOT.pom [INFO] Installing /Users/frodo/Java/projects/DMDev2ndLevel/common/target/common-1.0.0-SNAPSHOT.jar to /Users/frodo/.m2/repository/dmdev/mentoring/common/1.0.0-SNAPSHOT/common-1.0.0-SNAPSHOT.jar [INFO] [INFO] ----------------------< dmdev.mentoring:service >----------------------- [INFO] Building service 1.0.0-SNAPSHOT [3/3] [INFO] from service/pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- resources:3.3.1:resources (default-resources) @ service --- [INFO] Copying 0 resource from src/main/resources to target/classes [INFO] [INFO] --- compiler:3.12.1:compile (default-compile) @ service --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- resources:3.3.1:testResources (default-testResources) @ service --- [INFO] skip non existing resourceDirectory /Users/frodo/Java/projects/DMDev2ndLevel/service/src/test/resources [INFO] [INFO] --- compiler:3.12.1:testCompile (default-testCompile) @ service --- [INFO] Nothing to compile - all classes are up to date. [INFO] [INFO] --- surefire:3.2.5:test (default-test) @ service --- [INFO] [INFO] --- jar:3.3.0:jar (default-jar) @ service --- [INFO] Building jar: /Users/frodo/Java/projects/DMDev2ndLevel/service/target/service-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- install:3.1.1:install (default-install) @ service --- [INFO] Installing /Users/frodo/Java/projects/DMDev2ndLevel/service/pom.xml to /Users/frodo/.m2/repository/dmdev/mentoring/service/1.0.0-SNAPSHOT/service-1.0.0-SNAPSHOT.pom [INFO] Installing /Users/frodo/Java/projects/DMDev2ndLevel/service/target/service-1.0.0-SNAPSHOT.jar to /Users/frodo/.m2/repository/dmdev/mentoring/service/1.0.0-SNAPSHOT/service-1.0.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for agarkov-2nd-level 1.0.0-SNAPSHOT: [INFO] [INFO] agarkov-2nd-level .................................. SUCCESS [ 0.129 s] [INFO] common ............................................. SUCCESS [ 0.508 s] [INFO] service ............................................ SUCCESS [ 0.053 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.762 s [INFO] Finished at: 2024-01-26T23:35:39+01:00 [INFO] ------------------------------------------------------------------------

Process finished with exit code 0

agarkovand commented 5 months ago

Changes after plugins configured in parent pom.xml

resources:3.3.1 resources:3.3.1

compiler:3.11.0 compiler:3.12.1

surefire:3.1.2 surefire:3.2.5

jar:3.3.0 jar:3.3.0