Surefire plugin making maven test fail by showing Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test - eclipse

I'm working on a migration of my project from java 11 to 17.
I've some issues in surefire-plugin and due to this my maven test and maven build is failing.
If I skip the test by saying testfailureIgnore = true then everything seems fine but this will not be a good approach because I've to pass the maven test.
I've also tried to do a/c to this question " Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project. " but nothing of them worked as I can't skip tests.
also I've tried to used the latest surefire plugin as well but that doesn't work.
Java version - openJdk 17.0.2
maven - 3.8.7
Wildfly - 26
Error logs - https://www.dropbox.com/scl/fi/2bizq00xp405scqh6olzd/Untitled.paper?dl=0&rlkey=eip2f62cu4utbpj063rt3wsxa
pom.xml -
https://www.dropbox.com/scl/fi/0mdpkej04lin0ikjds4a9/Untitled-1.paper?dl=0&rlkey=hu2zgfr5kp4ro4sq6jo04gr61
Adding my error message as text :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/eclipse-jee-2022-09-R-win32-x86_64/eclipse/plugins/org.eclipse.m2e.maven.runtime_3.8.601.20220820-1147/jars/maven-slf4j-provider-3.8.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/D:/eclipse-jee-2022-09-R-win32-x86_64/eclipse/configuration/org.eclipse.osgi/917/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.MavenSimpleLoggerFactory]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/eclipse-jee-2022-09-R-win32-x86_64/eclipse/plugins/org.eclipse.m2e.maven.runtime_3.8.601.20220820-1147/jars/maven-slf4j-provider-3.8.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [file:/D:/eclipse-jee-2022-09-R-win32-x86_64/eclipse/configuration/org.eclipse.osgi/917/0/.cp/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.MavenSimpleLoggerFactory]
[[1;mINFO[m] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.apc:designportal:war:22.1.2
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. # line 976, column 20
[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][1m------------------------<[0;36mcom.apc:designportal[0;1m >------------------------[m
[INFO][1mBuilding SE Design Portal 22.1.2[m
[INFO][1m--------------------------------[ war ]---------------------------------[m
[WARNING] The POM for com.apc.designtools:dp-quotingsystem-integration:jar:0.4 is missing, no dependency information available
[INFO]
[INFO][1m---[0;32mmaven-resources-plugin:2.6:resources[m[1m(default-resources)[m #[36mdesignportal[0;1m ---[m
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 14 resources
[INFO] Copying 83 resources
[INFO]
[INFO][1m---[0;32mmaven-compiler-plugin:3.10.1:compile[m[1m(default-compile)[m #[36mdesignportal[0;1m ---[m
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO][1m---[0;32mmaven-resources-plugin:2.6:testResources[m[1m(default-testResources)[m #[36mdesignportal[0;1m ---[m
[3mWARNING[m] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 8 resources
[INFO]
[INFO][1m---[0;32mmaven-compiler-plugin:3.10.1:testCompile[m[1m(default-testCompile)[m #[36mdesignportal[0;1m ---[m
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO][1m---[0;32mmaven-surefire-plugin:2.22.0:test[m[1m(default-test)[m #[36mdesignportal[0;1m ---[m
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO][1m------------------------------------------------------------------------[m
[INFO][1;31mBUILD FAILURE[m
[INFO][1m------------------------------------------------------------------------[m
[INFO] Total time: 2.103 s
[INFO] Finished at: 2023-02-02T17:24:27+05:30
[INFO][1m------------------------------------------------------------------------[m
[[1;31mERROR[m] Failed to execute goal[32morg.apache.maven.plugins:maven-surefire-plugin:2.22.0:test[m[1m(default-test)[m on project[36mdesignportal[m:[1;31mThere are test failures.[m
[ERROR]
[ERROR]Please refer to C:\Users\SESA701739\Downloads\Repository for openJDK17\designportal\target\surefire-reports for the individual test results.[m
[ERROR]Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.[m
[ERROR]The forked VM terminated without properly saying goodbye. VM crash or System.exit called?[m
[ERROR]Command was cmd.exe /X /C "D:\eclipse-jee-2022-09-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20220903-1038\jre\bin\java -XX:MaxPermSize=256m org.apache.maven.surefire.booter.ForkedBooter C:\Users\SESA701739\AppData\Local\Temp\surefire12444073772713059620 2023-02-02T17-24-27_412-jvmRun1 surefire15015576107840988338tmp surefire_06776565286570862578tmp"[m
[ERROR][1;31mError occurred in starting fork, check output in log[m
[ERROR][1;31mProcess Exit Code: 1[m
[ERROR][1;31morg.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?[m
[ERROR][1;31mCommand was cmd.exe /X /C "D:\eclipse-jee-2022-09-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.4.v20220903-1038\jre\bin\java -XX:MaxPermSize=256m org.apache.maven.surefire.booter.ForkedBooter C:\Users\SESA701739\AppData\Local\Temp\surefire12444073772713059620 2023-02-02T17-24-27_412-jvmRun1 surefire15015576107840988338tmp surefire_06776565286570862578tmp"[m
[ERROR][Error occurred in starting fork, check output in log[m
[ERROR][Process Exit Code: 1[m
[ERROR][ at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:671)[m
[ERROR][ at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)[m
[ERROR][ at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278)[m
[ERROR][ at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244)[m
[ERROR][ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1194)[m
[ERROR][ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1022)[m
[ERROR][ at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:868)[m
[ERROR][ at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)[m
[ERROR][ at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2(MojoExecutor.java:370)[m
[ERROR][ at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute(MojoExecutor.java:351)[m
[ERROR][ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)[m
[ERROR][ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:171)[m
[ERROR][ at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:163)[m
[ERROR][ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)[m
[ERROR][ at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)[m
[ERROR][ at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)[m
[ERROR][ at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)[m
[ERROR][ at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:294)[m
[ERROR][ at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)[m
[ERROR][ at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)[m
[ERROR][ at org.apache.maven.cli.MavenCli.execute(MavenCli.java:960)[m
[ERROR][ at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293)[m
[ERROR][ at org.apache.maven.cli.MavenCli.main(MavenCli.java:196)[m
[ERROR][ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[m
[ERROR][ at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)[m
[ERROR][ at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[m
[ERROR][ at java.base/java.lang.reflect.Method.invoke(Method.java:568)[m
[ERROR][ at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)[m
[ERROR][ at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)[m
[ERROR][ at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)[m
[ERROR][ at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:7)[m
[ERROR][[
[ERROR] ->[1m[Help 1][m
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the[1m-e[m switch.
[ERROR] Re-run Maven using the[1m-X[m switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR][1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Related

No goals have been specified for this build. You must specify a valid lifecycle phase | INTELLIJ

I have cloned one of the project from git to IntelliJ , I am new to all this and facing alot of difficulty.
code I am trying ( just a demo code)
import org.apache.spark.sql.SparkSession
SparkSession.clearActiveSession()
SparkSession.clearDefaultSession()
val sparkSessionParams = SparkSession.builder()
.appName("Master_Case_Policy")
.enableHiveSupport()
.getOrCreate()
import sparkSessionParams.implicits._
class master_case
{
var recordcounts = ""
var notifymsg = ""
/*logger.info("Starting the count calculation for member policy")*/
val updateddate = sparkSessionParams.sql(s"select distinct update_dt from
clinical.mbr_cse_pol_ref SORT by date(update_dt) DESC LIMIT 3")
notifymsg = s"Updated Records : $updateddate"
}
ERROR:
"C:\Program Files\AdoptOpenJDK\jdk-8.0.292.10-hotspot\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\sbhatt56\IdeaProjects\CASE_DETAIL_FACT "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.2\plugins\maven\lib\maven3" -Didea.modules.paths.file=C:\Users\sbhatt56\AppData\Local\JetBrains\IdeaIC2021.2\Maven\idea-projects-state-fea32a82.properties -Dclassworlds.conf=C:\Users\sbhatt56\AppData\Local\Temp\idea-2-mvn.conf "-Dmaven.ext.class.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.2\lib\idea_rt.jar=64235:C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.2\plugins\maven\lib\maven3\boot\plexus-classworlds-2.6.0.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2021.2.2\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2021.2.2
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.optum.csgbdptenant.clinical.cdf:Clinical_CDF:jar:4.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.hbase:hbase-spark:jar -> version 1.1.8-mapr-1710 vs 1.1.8-mapr-1904 # line 156, column 21
[WARNING] 'dependencies.dependency.systemPath' for com.optum.csgbdptenant.Common:Common:jar should not point at files within the project directory, ${project.basedir}/jars/Common-6.4.jar will be unresolvable by dependent projects # line 172, column 25
[WARNING] 'dependencies.dependency.systemPath' for PBEEncryption_Optum:PBEEncryption_Optum:jar should not point at files within the project directory, ${project.basedir}/jars/PBEEncryption_Optum.jar will be unresolvable by dependent projects # line 180, column 25
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. # line 234, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. # line 209, column 21
[WARNING] 'build.plugins.plugin.version' for net.alchim31.maven:scala-maven-plugin is missing. # line 222, column 21
[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] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.132 s
[INFO] Finished at: 2022-03-26T11:46:23+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
Process finished with exit code 1
I can also attach my POM.xml if needed. I am not even able to locate my build.xml
Thanks in advance !!

Failed to Execute Build Analyzer Maven Plugin in Local SDK

[INFO] --- aemanalyser-maven-plugin:0.9.2:analyse (default-analyse) # aem-guides-myproject.analyse ---
[INFO] Starting analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author.prod:0.0.1-SNAPSHOT'...
[INFO] - Executing Api Regions analyser task that checks that listed packages are actually exported [api-regions]...
[INFO] - Executing Api Regions check order analyser task [api-regions-check-order]...
[INFO] - Executing Bundle Import/Export Check [api-regions-exportsimports]...
[INFO] - Executing Api Regions cross-feature duplicate export task [api-regions-crossfeature-dups]...
[INFO] - Executing Configuration API analyser task [configuration-api]...
[INFO] - Executing Bundle Natice Code Check [bundle-nativecode]...
[INFO] - Executing Bundle Initial Content Check [bundle-content]...
[INFO] - Executing Bundle Resources Check [bundle-resources]...
[INFO] - Executing Requirements Capabilities check [requirements-capabilities]...
[INFO] Analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author.prod:0.0.1-SNAPSHOT' finished : 0 warnings, 3 errors.
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~asyncjssightly.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.pattern : Property is not allowed
[ERROR] Analyser detected errors on feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author.prod:0.0.1-SNAPSHOT'. See log output for error messages.
[INFO] Starting analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish.prod:0.0.1-SNAPSHOT'...
[INFO] - Executing Api Regions analyser task that checks that listed packages are actually exported [api-regions]...
[INFO] - Executing Api Regions check order analyser task [api-regions-check-order]...
[INFO] - Executing Bundle Import/Export Check [api-regions-exportsimports]...
[INFO] - Executing Api Regions cross-feature duplicate export task [api-regions-crossfeature-dups]...
[INFO] - Executing Configuration API analyser task [configuration-api]...
[INFO] - Executing Bundle Natice Code Check [bundle-nativecode]...
[INFO] - Executing Bundle Initial Content Check [bundle-content]...
[INFO] - Executing Bundle Resources Check [bundle-resources]...
[INFO] - Executing Requirements Capabilities check [requirements-capabilities]...
[INFO] Analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish.prod:0.0.1-SNAPSHOT' finished : 0 warnings, 3 errors.
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~asyncjssightly.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.pattern : Property is not allowed
[ERROR] Analyser detected errors on feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish.prod:0.0.1-SNAPSHOT'. See log output for error messages.
[INFO] Starting analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish.stage:0.0.1-SNAPSHOT'...
[INFO] - Executing Api Regions analyser task that checks that listed packages are actually exported [api-regions]...
[INFO] - Executing Api Regions check order analyser task [api-regions-check-order]...
[INFO] - Executing Bundle Import/Export Check [api-regions-exportsimports]...
[INFO] - Executing Api Regions cross-feature duplicate export task [api-regions-crossfeature-dups]...
[INFO] - Executing Configuration API analyser task [configuration-api]...
[INFO] - Executing Bundle Natice Code Check [bundle-nativecode]...
[INFO] - Executing Bundle Initial Content Check [bundle-content]...
[INFO] - Executing Bundle Resources Check [bundle-resources]...
[INFO] - Executing Requirements Capabilities check [requirements-capabilities]...
[INFO] Analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish.stage:0.0.1-SNAPSHOT' finished : 0 warnings, 2 errors.
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~asyncjssightly.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.pattern : Property is not allowed
[ERROR] Analyser detected errors on feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish.stage:0.0.1-SNAPSHOT'. See log output for error messages.
[INFO] Starting analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish:0.0.1-SNAPSHOT'...
[INFO] - Executing Api Regions analyser task that checks that listed packages are actually exported [api-regions]...
[INFO] - Executing Api Regions check order analyser task [api-regions-check-order]...
[INFO] - Executing Bundle Import/Export Check [api-regions-exportsimports]...
[INFO] - Executing Api Regions cross-feature duplicate export task [api-regions-crossfeature-dups]...
[INFO] - Executing Configuration API analyser task [configuration-api]...
[INFO] - Executing Bundle Natice Code Check [bundle-nativecode]...
[INFO] - Executing Bundle Initial Content Check [bundle-content]...
[INFO] - Executing Bundle Resources Check [bundle-resources]...
[INFO] - Executing Requirements Capabilities check [requirements-capabilities]...
[INFO] Analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish:0.0.1-SNAPSHOT' finished : 0 warnings, 2 errors.
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~asyncjssightly.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.pattern : Property is not allowed
[ERROR] Analyser detected errors on feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-publish:0.0.1-SNAPSHOT'. See log output for error messages.
[INFO] Starting analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author:0.0.1-SNAPSHOT'...
[INFO] - Executing Api Regions analyser task that checks that listed packages are actually exported [api-regions]...
[INFO] - Executing Api Regions check order analyser task [api-regions-check-order]...
[INFO] - Executing Bundle Import/Export Check [api-regions-exportsimports]...
[INFO] - Executing Api Regions cross-feature duplicate export task [api-regions-crossfeature-dups]...
[INFO] - Executing Configuration API analyser task [configuration-api]...
[INFO] - Executing Bundle Natice Code Check [bundle-nativecode]...
[INFO] - Executing Bundle Initial Content Check [bundle-content]...
[INFO] - Executing Bundle Resources Check [bundle-resources]...
[INFO] - Executing Requirements Capabilities check [requirements-capabilities]...
[INFO] Analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author:0.0.1-SNAPSHOT' finished : 0 warnings, 2 errors.
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~asyncjssightly.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.pattern : Property is not allowed
[ERROR] Analyser detected errors on feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author:0.0.1-SNAPSHOT'. See log output for error messages.
[INFO] Starting analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author.stage:0.0.1-SNAPSHOT'...
[INFO] - Executing Api Regions analyser task that checks that listed packages are actually exported [api-regions]...
[INFO] - Executing Api Regions check order analyser task [api-regions-check-order]...
[INFO] - Executing Bundle Import/Export Check [api-regions-exportsimports]...
[INFO] - Executing Api Regions cross-feature duplicate export task [api-regions-crossfeature-dups]...
[INFO] - Executing Configuration API analyser task [configuration-api]...
[INFO] - Executing Bundle Natice Code Check [bundle-nativecode]...
[INFO] - Executing Bundle Initial Content Check [bundle-content]...
[INFO] - Executing Bundle Resources Check [bundle-resources]...
[INFO] - Executing Requirements Capabilities check [requirements-capabilities]...
[INFO] Analyzing feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author.stage:0.0.1-SNAPSHOT' finished : 0 warnings, 2 errors.
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~asyncjssightly.org.apache.sling.commons.log.level : Value error does not match provided options
[ERROR] Configuration org.apache.sling.commons.log.LogManager.factory.config~myproject.org.apache.sling.commons.log.pattern : Property is not allowed
[ERROR] Analyser detected errors on feature 'com.adobe.aem.guides.myproject:aem-guides-myproject.analyse:slingosgifeature:aggregated-author.stage:0.0.1-SNAPSHOT'. See log output for error messages.
ERROR is :
Failed to execute goal com.adobe.aem:aemanalyser-maven-plugin:0.9.2:analyse (default-analyse) on project aem-guides-myproject.analyse: One or more feature analyser(s) detected feature error(s), please read the plugin log for more details -> [Help 1]
I am using following command to create AEM project
mvn archetype:generate -B -DarchetypeGroupId=com.adobe.aem -DarchetypeArtifactId=aem-project-archetype -DarchetypeVersion=26 -DappTitle="My Citi Sites Project" -DappId="myproject" -DgroupId="com.adobe.aem.guides.myproject" -DartifactId="aem-guides-myproject" -Dversion="0.0.1-SNAPSHOT" -DaemVersion="cloud"
Project is created sucessfully but the problem is while building project using mvn clean install -PautoInstallSinglePackage getting above error.
Here is the answer.
If you used the AEM Project Archetype to setup your project, make sure to adjust the property in the root Maven pom.xml like below.
I have changed property in root pom.xml, I have updated version of AEM Analyser to latest version.
Old version: [pom.xml]
<properties>
<aemanalyser.version>0.9.2</aemanalyser.version>
</properties>
<build>
<plugins> </plugins>
<pluginManagement>
<!-- AEM Analyser Plugin -->
<plugin>
<groupId>com.adobe.aem</groupId>
<artifactId>aemanalyser-maven-plugin</artifactId>
<version>${aemanalyser.version}</version>
<extensions>true</extensions>
</plugin>
</pluginManagement>
</build>
Latest Version: [pom.xml]
<properties>
<aemanalyser.version>1.3.0</aemanalyser.version> <!-- Make sure to use the latest release -->
</properties>
<build>
<plugins> </plugins>
<pluginManagement>
<!-- AEM Analyser Plugin -->
<plugin>
<groupId>com.adobe.aem</groupId>
<artifactId>aemanalyser-maven-plugin</artifactId>
<version>${aemanalyser.version}</version>
<extensions>true</extensions>
</plugin>
</pluginManagement>
</build>
Check latest version of AEM Analyser Maven Plugin https://mvnrepository.com/artifact/com.adobe.aem/aemanalyser-maven-plugin

Сan't run examples. Couldn't find artemis.home error

I get an error when I want to run any example through mvn verify
[ERROR] ********************************************************************************************
[ERROR] Could not locate suitable Artemis.home on either D:\Documents\IdeaProjects\activemq-artemis\examples\features\standard\security\..\..\..\.. or D:\Documents\IdeaProjects\activemq-artemis\examples\features\standard\security\..
\..\..\..\artemis-distribution\target\apache-artemis-2.18.0-SNAPSHOT-bin\apache-artemis-2.18.0-SNAPSHOT
[ERROR] Use the binary distribution or build the distribution before running the examples
[ERROR] ********************************************************************************************
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.087 s
[INFO] Finished at: 2021-02-26T22:03:39+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.activemq:artemis-maven-plugin:2.18.0-SNAPSHOT:create (create) on project security: Couldn't find artemis.home -> [Help 1]
I tried to specify the path to the directory with artemis at startup, but it does not help mvn verify -Dartemis.home="D:\Documents\apache-artemis-2.17.0"
How to fix this error?
It appears you're running the example directly from the project source since it reports 2.18.0-SNAPSHOT. If that's the case then you should do what the ERROR message indicates:
Use the binary distribution or build the distribution before running the examples
You can get a snapshot binary distribution here or you can build the distribution from the source using mvn install -Prelease -DskipTests.
If you must point the example at a different home directory you can do so using the activemq.basedir system property, e.g.:
mvn verify -Dactivemq.basedir="D:\Documents\apache-artemis-2.17.0"
Or you can change the activemq.basedir property defined in the example's pom.xml.

Error to compile when applying Single Script Linker

Because I am creating a chrome extension with GWT project, I want to use Single Script Linker to avoid inline scripting restriction (sigh...).
And I found this resource on line: http://tech-drum.blogspot.ch/2012/08/gwt-chrome-extension-using-version-2.html
This single script linker looks like a charm, but when I really added it into my gwt.xml file and compile, it got errors... (sigh again)
The following is the error msg:
[INFO] --- gwt-maven-plugin:2.5.1:compile (default) # fake-app ---
[INFO] auto discovered modules [com.fake...]
[INFO] Compiling module com.fake.name.app
[INFO] Compiling 6 permutations
[INFO] Compiling permutation 0...
[INFO] Process output
[INFO] Compiling
[INFO] Compiling permutation 3...
[INFO] Process output
[INFO] Compiling
[INFO] Compiling permutation 1...
[INFO] Process output
[INFO] Compiling
[INFO] Compiling permutation 2...
[INFO] Compiling permutation 4...
[INFO] Compiling permutation 5...
[INFO] Compile of permutations succeeded
[INFO] Linking into /path/to/fake/app
[INFO] Invoking Linker Single Script
[INFO] [ERROR] The module must have exactly one distinct permutation when using the Single Script Linker; found 6
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
What's the problem with this? It looks that permutation number (assumed as js file?) to be larger than expected, but shouldn't the linker put size restriction when creating permutations? In short, how to fix this? Thanks a lot!
Selecting just the user agent for Chrome should fix your problem.
You don't need more user-agent permutations since your extension only works with one browser.
The linker you are using is the correct one for producing just a javascript file with the code of your extension.
<set-property name="user.agent" value="safari" />
The linker runs after the code is compiled, it can't make judgements about the output until that point. This particular linker expects to produce exactly one JS file (plus images, etc perhaps, but not more code) hence 'single script'. Generating more than one permutation prevents it from doing its job.
Consider selecting a different linker, or combining all of the properties you are using (likely just user.agent) into one permutation with this in your module file (from http://code.google.com/p/google-web-toolkit/wiki/SoftPermutations):
<collapse-all-properties />

Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: UnresolvedAddressException

I have integrated Maven with Eclipse and trying to create a maven project. Every time i am trying to create project, its POM.xml shows error.
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile
(execution: default-testCompile, phase: test-compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.2 or one of its
dependencies could not be resolved: Failed to read artifact
descriptor for
org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2:
ArtifactResolutionException: Failure to transfer
org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from
htt:///repo.maven.apache.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update
interval of central has elapsed or updates are forced. Original error:
Could not transfer artifact
org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from/to
central (htt:///repo.maven.apache.org/maven2): null to htt://
repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.2/maven-compiler-plugin-2.3.2.pom
If I try to run maven-install or any of the maven run option. i get this error
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J:
See htt://www.slf4j.org/codes.html#StaticLoggerBinder for further
details. [INFO] Scanning for projects... [INFO]
[INFO]
------------------------------------------------------------------------ [INFO] Building CQ5 MyApp UI 0.0.1-SNAPSHOT [INFO]
------------------------------------------------------------------------ Downloading:
http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom
[INFO]
------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO]
------------------------------------------------------------------------ [INFO] Total time: 12.289s [INFO] Finished at: Thu Mar 14 14:39:09 IST
2013 [INFO] Final Memory: 1M/15M [INFO]
------------------------------------------------------------------------ [ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or
one of its dependencies could not be resolved: Failed to read artifact
descriptor for
org.apache.maven.plugins:maven-resources-plugin:jar:2.5: Could not
transfer artifact
org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to
central (htt://repo.maven.apache.org/maven2): null to
htt://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.5/maven-resources-plugin-2.5.pom:
UnresolvedAddressException -> [Help 1] [ERROR] [ERROR] To see the
full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible
solutions, please read the following articles: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
What should I do?
If you are working on windows like me, just go to C:\Users\Owner.m2\repository and delete all the files in it. Make sure to keep your eclipse close.
Open eclipse and right click on your project, then click on Maven and then in Update Project. A dialog window appears, make sure to have selected ‘clean projects’ and ‘update project configuration from pom.xml’ options.
That should erase all the errors in the project. :)
You do not really have to delete everything from .m2\repository directory. Just the directories for 'problematic libraries', in your example YOUR_MAVEN_REPO.m2\repository\org\apache\maven\plugins\maven-compiler-plugin and delete 2.3.2 folder.
Then right click on the project in Eclipse and Maven->Update Project. You will probably get a different error and you have to repeat the procedure. Do it 3-4 times and it should be fine...
Thank you all for you help and guidance. I got the error myself. I am in a proxy network and was required to set user id and password in settings.xml file of apache maven.
Sounds like you may need to add the sl4j dependency in your pom file. See here: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
Here is the depenedency from the dependency finder in CQ5.5:
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.commons.log</artifactId>
<version>2.1.3-R1232904</version>
<scope>provided</scope>
</dependency>
Hope that helps and good luck.