Whenever I try to deploy java application from GitHub to openshift I get authorization issue. This is the log file I am getting while trying to push the image from git to openshift :
Cloning "https://github.com/niladri3/niladritest2.git" ...
Commit: aa3e9851141def47bb9e93d15e5e1ff80224f63e ((commited))
Author: niladri3 <1993niladri#gmail.com>
Date: Wed Jun 28 12:30:22 2017 +0530
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift#sha256:37672e770d6ad5697fffc6fec6eae09108664bb34e8b01768ee58f381d80454a" ...
Pulling image "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift#sha256:37672e770d6ad5697fffc6fec6eae09108664bb34e8b01768ee58f381d80454a" ...
Found pom.xml... attempting to build with 'mvn -e -Popenshift -DskipTests -Dcom.redhat.xpaas.repo.redhatga package -Djava.net.preferIPv4Stack=true '
Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
Using Apache Maven 3.0.5 (Red Hat 3.0.5-17)
Maven home: /usr/share/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-2.b11.el7_3.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.10.0-514.25.2.el7.x86_64", arch: "amd64", family: "unix"
Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Dashboard Maven Webapp 0.0.1-SNAPSHOT
Downloaded: https://repo1.maven.org/maven2/org/apache/maven/shared/maven-filtering/1.0-beta-2/maven-filtering-1.0-beta-2.jar (33 KB at 437.9 KB/sec
Downloaded: https://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar (422 KB at 1839.7 KB/sec)
[INFO] Packaging webapp
[INFO] Assembling webapp [Dashboard] in [/home/jboss/source/target/ROOT]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/jboss/source/src/main/webapp]
[INFO] Webapp assembled in [196 msecs]
[INFO] Building war: /home/jboss/source/target/ROOT.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.622s
[INFO] Finished at: Thu Jun 29 06:13:56 UTC 2017
[INFO] Final Memory: 16M/307M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "openshift" could not be activated because it does not exist.
Copying all target war artifacts from /home/jboss/source/target directory into /opt/webserver/webapps for later deployment...
'/home/jboss/source/target/ROOT.war' -> '/opt/webserver/webapps/ROOT.war'
Pushing image 172.30.254.23:5000/jd-dashboardcheck/tomcat:latest ...
error: build error: Failed to push image: unauthorized: authentication required
At the end it's saying authentication required even when earlier I used to push in the same way and the image always used to load.
Things I have used:
Eclipse: Maven--In the POM.xml i have changed the filename directory to ROOT
Pushed the project in the GitHub.
Getting error at the time of pushing it from github to Openshift online 3.
Please help if you know the reason why I am getting this error. Thanks in advance.
There are some current issues with builds failing on starter-us-east-1 when pushing images. This is noted at:
https://status.starter.openshift.com/
with details in:
https://bugzilla.redhat.com/show_bug.cgi?id=1462542
See if that matches your problem.
Related
[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
I am trying CMAK on ubuntu 20.4 and I am following instruction on https://github.com/yahoo/CMAK and https://codeforgeek.com/setting-up-kafka-management-for-kafka-cluster/. After running command ./sbt clean dist and trying to switch to directory /target/ in am not seeing universal directory. Is there any thing I am missing?
Please see below screenshot.
After running: ./sbt clean dist. I am getting below result.
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# ./sbt clean dist
[info] Loading settings for project cmak-master-build from plugins.sbt ...
[info] Loading project definition from /opt/CMAK-master/project
[info] Loading settings for project root from build.sbt ...
[info] Set current project to cmak (in build file:/opt/CMAK-master/)
[success] Total time: 1 s, completed Apr 4, 2021, 10:40:07 AM
Warning: node.js detection failed, sbt will use the Rhino based
Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be orders of magnitude slower than using node.js.
[info] Wrote /opt/CMAK-master/target/scala-2.12/cmak_2.12-3.0.0.5.pom
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Main Scala API documentation to /opt/CMAK-master/target/scala-2.12/api...
[info] Compiling 136 Scala sources and 2 Java sources to /opt/CMAK-
master/target/scala-2.12/classes ...
model contains 640 documentable templates
[info] Main Scala API documentation successful.
[info] LESS compiling on 1 source(s)
./sbt: line 241: 7926 Killed "$#"
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master#
| => root / Web-assets / less 122s
| => root / Compile / compileIncremental 352s
After that when navigating to target directory, there is no universal directory.
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# ls
LICENSE README.md app build.sbt conf img project public sbt
src target test
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master# cd target/
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-
master/target# ls
scala-2.12 streams web / less 122s
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master/target# ls
scala-2.12 streams web
root#ubuntu-s-1vcpu-1gb-blr1-01-testing-server:/opt/CMAK-master/target#
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.
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.
Maven won't overwrite the built version of an eclipse project in my local repository. I only changed a META-INF/MANIFEST.MF file, but Maven doesn't seem to recognize that and therefore doesn't overwrite the artifacts in the local repository. How can I force it to overwrite? This is the maven log:
[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) # message ---
[INFO]
[INFO] --- maven-install-plugin:2.3:install (default-install) # message ---
[INFO] **Skipped re-installing C:\dev\ws\Message\target\message-0.0.1.jar to C:\Users\Tim\.m2\repository\samba\message\message\0.0.1\message-0.0.1.jar, seems unchanged**
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.915s
[INFO] Finished at: Fri Sep 03 15:22:12 CEST 2010
[INFO] Final Memory: 7M/175M
[INFO] ------------------------------------------------------------------------
Okay, I think I just saw that Maven doesn't deploy the METAINF/MENIFEST.MF file with the other files in the targets. Seems I have to work on that somehow. Sorry, I'm new to Maven.
Be careful when using RELEASE Versions with maven. You should not "redeploy" them - as the contract is that they will never change anymore. If you deploy a RELEASE Version to a global Maven repository (e.g. Nexus) you will not be able to redeploy it again. You have to build a new Version if changes are necessary.
In phases of development use SNAPSHOT Versions (0.0.1-SNAPSHOT). These can be changed and redeployed.
If you are only working with your local repository the rules are not that strong but you should know about the RELEASE / SNAPSHOT version differences.
The problem was that I used the bundle plugin to generate osgi bundles. With these, the bundle plugin generates it's own MANIFEST.MF file and doesn't use the file that I put into my resources. In fact I also got some error when I tried to use my own MANIFEST.MF file in addition to the one generated by the bundle plugin.