Failed to Execute Build Analyzer Maven Plugin in Local SDK - aem

[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

Related

С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.

Library cannot be resolved

When I package Scala project using SBT, I face the following problem:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Loading project definition from D:\marathon-master\project
Version '20170916T025229' is not fully supported, please update the git tags.
[info] Set current project to marathon (in build file:/D:/marathon-master/)
[info] Constructing RAML model
java.lang.RuntimeException: Library cannot be resolved: D:\marathon-master\docs\docs\rest-api\public\api\appContainer.raml -- D:\marathon-master\docs\docs\rest-api\public\api\v2/types/app.raml [line=6, col=17]
at scala.sys.package$.error(package.scala:27)
...
[error] (marathon/compile:ramlGenerate) Library cannot be resolved: D:\marathon-master\docs\docs\rest-api\public\api\appContainer.raml -- D:\marathon-master\docs\docs\rest-api\public\api\v2/types/app.raml [line=6, col=17]
And the 5-7 lines code in app.raml like that:
uses:
appContainer: appContainer.raml
artifact: artifact.raml
the directory of app.raml and appContainer.raml is "D:\marathon-master\docs\docs\rest-api\public\api\v2/types/" both. So I change 6 line of app.raml like that:
appContainer: v2/types/appContainer.raml
But when I run "sbt package" again, a warning shows up:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m;
support was removed in 8.0
[info] Loading project definition from D:\marathon-master\project
Version '20170916T025721' is not fully supported, please update the git tags.
[info] Set current project to marathon (in build file:/D:/marathon-master/)
[warn] File D:\marathon-master\docs\docs\rest-api\public\api\v2\types\v2\types\appContainer.raml does not exist (referenced by
D:\marathon-master\docs\docs\rest-api\public\api\v2\types\app.raml)
[info] Constructing RAML model
java.lang.RuntimeException: Library cannot be resolved: D:\marathon-master\docs\docs\rest-api\public\api\artifact.raml -- D:\marathon-master\docs\docs\rest-api\public\api\v2/types/app.raml [line=7, col=13]
...
[error] (marathon/compile:ramlGenerate) Library cannot be resolved:
D:\marathon-master\docs\docs\rest-api\public\api\artifact.raml -- D:\marathon-master\docs\docs\rest-api\public\api\v2/types/app.raml [line=7, col=13]
why have this warning? Any idea?

WSO2 ESB - Configuration to Develop Services with Developer Studio and Deploy and Debug them on Remote Server

I want to set up a development environment to develop, build and deploy WSO2 ESB Services. I would like to develop services using WSO2 Developer Studio and debug/deploy them on a remote server.
Here is my configuration:
WSO2 Developer Studio 3.7.1 on Windows 7
WSO2 ESB 3.8.1 on Centos 7
Debugging:
I configured the WSO2 Carbone remote server using Developer Studio Server Tab (OK) and then I tried to create a new remote launch configuration, but developer studio returned with the following exception:
Deploying:
I configured Maven to execute remote deploy, and it runs succesfully, but when I open ESB Console I cannot find any service deployed, I can only find in the wso2carbon.log server log the successful connection with login and password. The following is the maven execution:
[INFO] --- maven-car-deploy-plugin:1.0.10:deploy-car (default-deploy-car) # CappSample ---
[INFO] Deploying to Server...
[INFO] TSPath=c:/bin/wso2/wso2carbon.jks
[INFO] TSPWD=wso2carbon
[INFO] TSType=JKS
[INFO] Server URL=https://wso2-orchestrator.sem:9443
[INFO] UserName=admin
[INFO] Password=admin
[INFO] Operation=deploy
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.AxisOperation).
log4j:WARN Please initialize the log4j system properly.
[INFO] Authentication to https://wso2-orchestrator.sem:9443 successful.
[INFO] Uploading target to https://wso2-orchestrator.sem:9443...
[INFO] Uploading target to https://wso2-orchestrator.sem:9443 completed successfully.
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) # CappSample ---
[INFO] Skipping artifact deployment
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.856 s
[INFO] Finished at: 2015-02-24T17:21:36+01:00
[INFO] Final Memory: 24M/347M
[INFO] ------------------------------------------------------------------------
Any help or suggestion is appreciated.
Thank you.
The solution to remotely debug is to run the server in debug mode and from eclipse create a debug configuration to attach to a Remote Java process.
Deploy from Maven is still not working and waiting for a solution.

Can not reflect changes using gwt-maven-plugin superdev

Follow steps in this post,
I use gwt-maven-plugin 2.6.0, when I run mvn gwt:run-codeserver it compiled successfully:
[INFO] binding: user.agent=safari
[INFO] Compiling module com.example.myModule
[INFO] Validating units:
[INFO] Ignored 3 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] ...
[INFO] Compiling 1 permutation
[INFO] Compiling permutation 0...
[INFO] Source Maps Enabled
[INFO] Compile of permutations succeeded
[INFO] Linking into C:\Users\admin\AppData\Local\Temp\gwt-codeserver-5664784549647002986.tmp\com.example.myModule\compile-4\war\myModule;
Writing extras to C:\Users\admin\AppData\Local\Temp\gwt-codeserver-5664784549647002986.tmp\com.example.myModule\compile-4\extras\myModule
[INFO] Link succeeded
[INFO] Compilation succeeded -- 3.401s
[INFO] Compile completed in 3496 ms
Then I started the dev server using mvn install gwt:run, made changes on my source file and click the Dev Mode On bookmark. After compiling the changes cannot reflect to UI: the UI always show old values.
Any ideas on this problem?
There's a bug in gwt-maven-plugin up to (including) 2.6.0; you have to run mvn process-classes gwt:run-codeserver instead of just mvn gwt:run-codeserver. This is fixed in 2.6.1.
Also, if you change anything in src/main/resources, you'll have to run mvn process-resources to make your changes available to Super Dev Mode (this is because you might use resource filtering, so Super Dev Mode doesn't directly look at src/main/resources).
Similarly, if you use plugins that generate resources or Java sources, you'll have to run them manually (e.g. mvn generate-sources or mvn generate-resources; or just use the same mvn process-resources as above, which will do everything at once). This will be necessary for example if you use gwt:generateAsync and change your GWT-RPC interface (note that you'll also have to redeploy your server-side code).
Note: I just updated my answer in the linked post for GWT 2.6.0, and added a note about GWT-RPC, and the gwt-maven-plugin bug.

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.