Expand my Community achievements bar.

SOLVED

Persisting CQ data in the Java Content Repository [Error]

Avatar

Level 2

hi, im trying to follow this tutorial about persisting data in JCR with a bundle.

http://helpx.adobe.com/adobe-cq/using/persisting-cq-data-java-content.html#

 

in the section Create an Adobe CQ archetype project im getting an error when i try to run the command:

mvn eclipse:eclipse

 

im getting this error:

[INFO] Scanning for projects... [WARNING] The POM for com.day.jcr.vault:content-package-maven-plugin:jar:0.0.13 is missing, no dependency information available [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR]   The project com.adobe.cq:customer-content:1.0-SNAPSHOT (C:\proyectos\C Q5\customer\content\pom.xml) has 2 errors [ERROR]     Unresolveable build extension: Plugin com.day.jcr.vault:content-pack age-maven-plugin:0.0.13 or one of its dependencies could not be resolved: Failur e to find com.day.jcr.vault:content-package-maven-plugin:jar:0.0.13 in http://re po.maven.apache.org/maven2 was cached in the local repository, resolution will n ot be reattempted until the update interval of central has elapsed or updates ar e forced -> [Help 2] [ERROR]     Unknown packaging: content-package @ line 20, column 16 [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin gException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti onException

 

any idea how to fix this? i saw a post with the same error but from another tutorial, but no responses in it

 

thank and hope you can help!!

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

It looks like you don't have the Adobe Maven repository configured. You'll need to do that before this goal will work (and the content-package-maven-plugin can be resolved). Also, you should use version 0.0.20 of the plugin as that's the current version.

Justin

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

Hi,

It looks like you don't have the Adobe Maven repository configured. You'll need to do that before this goal will work (and the content-package-maven-plugin can be resolved). Also, you should use version 0.0.20 of the plugin as that's the current version.

Justin

Avatar

Level 10

Did you change your directory path to the location of where the POM file is located. I just built a Maven project using these instructions and it works fine. For example, in this example, the dir is named Test333. 

C:\AdobeCQ\Test333>%M2_HOME%\bin\mvn eclipse:eclipse
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] custom-train - Reactor Project
[INFO] custom-train Bundle
[INFO] custom-train Package
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/eclipse/m2
e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom
Downloading: http://repo.dev.day.com/central/org/eclipse/m2e/lifecycle-mapping/1
.0.0/lifecycle-mapping-1.0.0.pom
Downloading: http://repo2.maven.org/maven2/org/eclipse/m2e/lifecycle-mapping/1.0
.0/lifecycle-mapping-1.0.0.pom
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/eclipse/m2e/lifecycle-mapping/1.0.0/lifecycle-mapping-1.0.0.pom
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failed to read artifact descriptor for org.eclipse.
m2e:lifecycle-mapping:jar:1.0.0
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-ecli
pse-plugin/maven-metadata.xml
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-eclips
e-plugin/maven-metadata.xml
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-eclipse
-plugin/maven-metadata.xml (709 B at 2.2 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building custom-train - Reactor Project 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failed to read artifact descriptor for org.eclipse.
m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333 >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333 <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333 ---
[INFO] Not running eclipse plugin goal for pom project
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building custom-train Bundle 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-install-plugin/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/maven-metadata.xml
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/apache/maven/plugins/maven-install-plugin/maven-metadata.xml
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-inst
all-plugin/maven-metadata.xml
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-install
-plugin/maven-metadata.xml (557 B at 3.6 KB/sec)
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-surefire-plugin/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-surefi
re-plugin/maven-metadata.xml
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-sure
fire-plugin/maven-metadata.xml
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/apache/maven/plugins/maven-surefire-plugin/maven-metadata.xml
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-surefir
e-plugin/maven-metadata.xml (2 KB at 4.4 KB/sec)
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-deploy-plugin/maven-metadata.xml
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/maven-metadata.xml
Downloading: http://dev.cqblueprints.com/nexus/content/repositories/releases/org
/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-depl
oy-plugin/maven-metadata.xml
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-deploy-
plugin/maven-metadata.xml (643 B at 3.9 KB/sec)
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-deploy-plugin/2.8/maven-deploy-plugin-2.8.pom
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-depl
oy-plugin/2.8/maven-deploy-plugin-2.8.pom
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.8/maven-deploy-plugin-2.8.pom
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-deploy-
plugin/2.8/maven-deploy-plugin-2.8.pom (8 KB at 43.1 KB/sec)
Downloading: http://repo.adobe.com/archiva/repository/day-central/org/apache/mav
en/plugins/maven-deploy-plugin/2.8/maven-deploy-plugin-2.8.jar
Downloading: http://repo.dev.day.com/central/org/apache/maven/plugins/maven-depl
oy-plugin/2.8/maven-deploy-plugin-2.8.jar
Downloading: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.8/maven-deploy-plugin-2.8.jar
Downloaded: http://repo2.maven.org/maven2/org/apache/maven/plugins/maven-deploy-
plugin/2.8/maven-deploy-plugin-2.8.jar (32 KB at 134.5 KB/sec)
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failed to read artifact descriptor for org.eclipse.
m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333-bundle >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333-bundle <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333-bundle ---
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[INFO] Not writing settings - defaults suffice
[INFO] Wrote Eclipse project for "Test333-bundle" to C:\AdobeCQ\Test333\bundle.
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building custom-train Package 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.eclipse.m2e:lifecycle-mapping:jar:1.0.0 is missing, no
 dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.eclipse.m2e:lifecycle-map
ping:1.0.0: Plugin org.eclipse.m2e:lifecycle-mapping:1.0.0 or one of its depende
ncies could not be resolved: Failed to read artifact descriptor for org.eclipse.
m2e:lifecycle-mapping:jar:1.0.0
[INFO]
[INFO] >>> maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333-content >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333-content <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.9:eclipse (default-cli) @ Test333-content ---
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[INFO] Not writing settings - defaults suffice
[INFO] Wrote Eclipse project for "Test333-content" to C:\AdobeCQ\Test333\content
.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] custom-train - Reactor Project .................... SUCCESS [1.664s]
[INFO] custom-train Bundle ............................... SUCCESS [4.407s]
[INFO] custom-train Package .............................. SUCCESS [0.214s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.952s
[INFO] Finished at: Mon Sep 30 13:35:35 EDT 2013
[INFO] Final Memory: 15M/187M
[INFO] ------------------------------------------------------------------------
C:\AdobeCQ
\Test333>

Avatar

Level 2

@smacdonald2008 i did have the correct directory path, thanks for the help :)

 

@justin_at_adobe that was the problem!! i configured the adobe maven repository and it works now!, thanks!!

Avatar

Level 10

Great Point -- I will make sure that we get Notes into these community articles that suggest this.