tag:blogger.com,1999:blog-9089624277109909140.post8681928454898363006..comments2024-01-31T01:13:54.415-08:00Comments on Suryakand's Blog: Create an AEM (CQ) project using MavenSuryakandhttp://www.blogger.com/profile/14841913398732623847noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-9089624277109909140.post-15535466470083598642016-02-23T07:46:20.308-08:002016-02-23T07:46:20.308-08:00Great post Suryakand!
One question I had: We'...Great post Suryakand!<br /><br />One question I had: We've changed the version of the parent, bundle, and content POM files from "1.0-SNAPSHOT" to "${project.version}" and now the vault filters (located under \content\src\main\content\META-INF\vault) are not applied to the overall package.<br /><br />Is there anything else that needs to be changed in order for the filters to appear again?<br /><br />Thanks in advance!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-31605089473616208492015-12-03T04:05:39.964-08:002015-12-03T04:05:39.964-08:00Hi,
Thank you for the great explanation above.
I...Hi,<br /><br />Thank you for the great explanation above.<br /><br />I am facing some issue in installing ews.ui.apps package to publish instance using mvn command. <br />I am using AEM 6.0<br /><br />This was all working fine until a few days ago, when my instances were using a Mongodb, I have migrated to TarMK now on publish, and pckage install did work on it until yesterday.<br /><br />The command used : [12/3/2015 11:41 AM] Mehta, Nidhi: <br />mvn -f ${WORKSPACE}/pom.xml -PautoInstallPackage install -DskipTests -Daem.host=${aempublishhost} -Daem.port=${aempublishport} -Dsling.user=${slingpublishuser} -Dsling.password=${slingpublishpassword} -Dvault.user=${vaultpublishuser} -Dvault.password=${vaultpublishpassword} <br /><br />The variables are replaced by the corresponding env values<br /><br />Error : <br />02.12.2015 01:00:21.977 *ERROR* [qtp1256224258-151] org.apache.jackrabbit.vault.fs.io.Importer Error while committing : javax.jcr.RepositoryException: This session has been closed.<br />02.12.2015 01:00:21.977 *WARN* [qtp1256224258-151] org.apache.jackrabbit.vault.fs.io.Importer Error while committing changes. Retrying import from checkpoint at /etc/designs/ews/images/icons/check.<br />png/jcr:content/renditions/original. Retries 0/10<br />02.12.2015 01:00:21.978 *ERROR* [qtp1256224258-151] org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage Error during install.<br />javax.jcr.RepositoryException: This session has been closed.<br /><br /><br />Now, I have not been able to find out whats causing the session to be closed. When I run the curl command to install package, it works fine. what different does mvn does that TarMK is closing the sessions?<br /><br />Also, I have tried pointing it back to my old mongodb and it works great<br /><br />Error logs also just show this error on publish , and this is an issue seen with only ews.ui.apps package.<br /><br />I have recently migrated to Java8.<br /><br />Please advice !!<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/16236029848951784340noreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-57320847206365082242015-12-02T23:19:20.274-08:002015-12-02T23:19:20.274-08:00Hi,
Thank you for the great explanation above.
I...Hi,<br /><br />Thank you for the great explanation above.<br /><br />I am facing some issue in installing ews.ui.apps package to publish instance using mvn command. <br />I am using AEM 6.0<br /><br />This was all working fine until a few days ago, when my instances were using a Mongodb, I have migrated to TarMK now on publish, and pckage install did work on it until yesterday.<br /><br />The command used : [12/3/2015 11:41 AM] Mehta, Nidhi: <br />mvn -f ${WORKSPACE}/pom.xml -PautoInstallPackage install -DskipTests -Daem.host=${aempublishhost} -Daem.port=${aempublishport} -Dsling.user=${slingpublishuser} -Dsling.password=${slingpublishpassword} -Dvault.user=${vaultpublishuser} -Dvault.password=${vaultpublishpassword} <br /><br />The variables are replaced by the corresponding env values<br /><br />Error : <br />02.12.2015 01:00:21.977 *ERROR* [qtp1256224258-151] org.apache.jackrabbit.vault.fs.io.Importer Error while committing : javax.jcr.RepositoryException: This session has been closed.<br />02.12.2015 01:00:21.977 *WARN* [qtp1256224258-151] org.apache.jackrabbit.vault.fs.io.Importer Error while committing changes. Retrying import from checkpoint at /etc/designs/ews/images/icons/check.<br />png/jcr:content/renditions/original. Retries 0/10<br />02.12.2015 01:00:21.978 *ERROR* [qtp1256224258-151] org.apache.jackrabbit.vault.packaging.impl.ZipVaultPackage Error during install.<br />javax.jcr.RepositoryException: This session has been closed.<br /><br /><br />Now, I have not been able to find out whats causing the session to be closed. When I run the curl command to install package, it works fine. what different does mvn does that TarMK is closing the sessions?<br /><br />Also, I have tried pointing it back to my old mongodb and it works great<br /><br />Error logs also just show this error on publish , and this is an issue seen with only ews.ui.apps package.<br /><br />I have recently migrated to Java8.<br /><br />Please advice !!<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/16236029848951784340noreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-90091106324903728122015-06-21T21:24:14.958-07:002015-06-21T21:24:14.958-07:00HI, and thanks for mr suryakand,
i works for me b...HI, and thanks for mr suryakand,<br /><br />i works for me but in different way,<br /><br />I just create a project in maven using this<br /><br />mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.aem.community -DartifactId=echoproject -Dversion=1.0-SNAPSHOT -Dpackage=com.aem.community -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company"<br /><br />when is created you get into the folder where the xml is located and upload it to CRX/DE using this commands in command prompt <br /><br />mvn -PautoInstallPackage install<br /><br />i have to say that with the other commands i had ERRORS but using these commands everything works good.<br /><br />thanks a lot from costa rica - CENTRAL AMERICAadminhttps://www.blogger.com/profile/10195170500741019814noreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-32669823017258180872015-02-11T14:19:45.130-08:002015-02-11T14:19:45.130-08:00Surya
I am using AEM 6.0 version and trying to set...Surya<br />I am using AEM 6.0 version and trying to set up a development environment.Installed Eclipse,Maven,Vaultclipse but while seting the multimodule-content-package-archetype using the mvn command as mentioned in your article - it fails with an Error <br />"The goal you specified requires a project to execute but there is no POM<br /> in this directory (C:\workspace). Please verify you invoked Maven from the correct directory."<br /><br />Please Advise - andyCAndy's Android Lessonshttps://www.blogger.com/profile/09740757032557039843noreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-71959641684579138192015-02-10T02:51:11.424-08:002015-02-10T02:51:11.424-08:00There is one good approach is to have a global jsp...There is one good approach is to have a global jsp specific for your application. So u would have /apps/project/global.jsp with the same content from the global one. That will go in the package and Eclipse will find it. You can have ten your apps defaults in this file too. E. G. Other taglibs load etc.svenanhttps://www.blogger.com/profile/04261610220990250911noreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-40238670706960428212015-01-23T04:59:42.258-08:002015-01-23T04:59:42.258-08:00Hi Suryakand,
Very nice post. Thank you for shari...Hi Suryakand,<br /><br />Very nice post. Thank you for sharing your experience developing for AEM in Eclipse, but as Adobe's documentation, it stops when it is time to develop components on Eclipse, hence I am on my own.<br /><br />When creating a JSP, the very first thing to do is add this code: <%@include file="/libs/foundation/global.jsp"%> to import all libs, but it tries to find this folder into the content module and it not exists and everything has errors like this.<br /><br />There is any SDK, jar or another thing that i can do to fix this reference issue? <br /><br />I have tried to checkout the libs folder, adding it to the vault filter, but the project becomes to slow to handle inside eclipse.<br /><br />Please, tell me more about your experience developing inside Eclipse.Anonymoushttps://www.blogger.com/profile/08208373819223076034noreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-7010271053423153902014-12-04T07:40:09.510-08:002014-12-04T07:40:09.510-08:00Hi,
Thanks for your post.
I read this at the end:
...Hi,<br />Thanks for your post.<br />I read this at the end:<br />"Here are two ways:<br /><br /> Eclipse Vault (vlt) plug-in OR, <br /> Maven Vault plug-in<br /><br />I’ll try to provide some information on how to use both these methods in my other blog posts as soon as possible."<br />Just curious if you've done a post on either of the 2 methods, I'd be very interested.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9089624277109909140.post-25786876526639287122014-11-24T17:23:55.601-08:002014-11-24T17:23:55.601-08:00Hello - The multimodule-content-package-archetype ...Hello - The multimodule-content-package-archetype does not seem to be valid. Execution of the suggested mvn command results in the error message - "desired archetype does not exist." Does this still work for you? I see it listed in the catalog so am not sure what the problem is. <br />I tried the sample-project-archetype and had success with it.Anonymousnoreply@blogger.com