Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to install osgi bundle into crxde

Avatar

Level 4

Hi,

I have created project in crxde not by using maven and eclipse. I have taken a already existing reference project from crxde. Now I started using web services, so I have created OSGI bundle in eclipse separately and installed into system/console and its working fine.

But eclipse project and my crxde project are not in sync. how can I create install folder and directly install bundle into my crxde project from eclipse? (since both are not in sync (mvn -PautoInstallPackage clean install) is creating bundle in its eclipse related project. 

How can I do packaging of my aem project, which should contains the bundle and after installation it should go and sit in client machine's system/cosole/bundles.

Pls excuse me, for the way of asking the question. But I need to sync existing aem project with the new project in eclipse, which can create install folder and install my webservice bundle in my (aem/myproject/install).

Pls help me out.

Regards

Krishh

1 Accepted Solution

Avatar

Correct answer by
Level 10

Its not recommended to create project in Crxde, 

You should create in Eclipse and then deploy it to AEM, more ever  for sync you can use vaultclipse plugin available in eclipse.

Please see these article for recommended approaches

http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

http://adobeaemclub.com/aem-eclipse-plugin-setup-tutorial/

View solution in original post

12 Replies

Avatar

Correct answer by
Level 10

Its not recommended to create project in Crxde, 

You should create in Eclipse and then deploy it to AEM, more ever  for sync you can use vaultclipse plugin available in eclipse.

Please see these article for recommended approaches

http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

http://adobeaemclub.com/aem-eclipse-plugin-setup-tutorial/

Avatar

Level 4

edubey wrote...

Its not recommended to create project in Crxde, 

You should create in Eclipse and then deploy it to AEM, more ever  for sync you can use vaultclipse plugin available in eclipse.

Please see these article for recommended approaches

http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

http://adobeaemclub.com/aem-eclipse-plugin-setup-tutorial/

 

Hi Praveen,

How are you? 

After sync with the eclipse, I am unable to create install folder. PFA screenshots. Do I need to create folder explicitly?

I have tried that also. After folder creation, I have gone to core folder and executed (mvn -PautoInstallPackage clean install) still not able to install any bundle inside install folder.

Pls help  me out.

Regards

Krishh

Avatar

Level 4

krishh_187 wrote...

edubey wrote...

Its not recommended to create project in Crxde, 

You should create in Eclipse and then deploy it to AEM, more ever  for sync you can use vaultclipse plugin available in eclipse.

Please see these article for recommended approaches

http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

http://adobeaemclub.com/aem-eclipse-plugin-setup-tutorial/

 

Hi Praveen,

How are you? 

After sync with the eclipse, I am unable to create install folder. PFA screenshots. Do I need to create folder explicitly?

I have tried that also. After folder creation, I have gone to core folder and executed (mvn -PautoInstallPackage clean install) still not able to install any bundle inside install folder.

Pls help  me out.

Regards

Krishh

 

 

Hey I got it Praveen, I have gone to the parent pom.xml and executed same command. able to create install folder.

Thanks make.

Avatar

Level 10

I m good,

Try manually manual creating install folder in crxde, and then take build from eclipse

Avatar

Level 4

edubey wrote...

I m good,

Try manually manual creating install folder in crxde, and then take build from eclipse

 

Hi Praveen,

How to do reverse sync from crxde to eclipse. I have made some changes in crxde,I want to replicate those changes in eclipse.

How to achieve that?

pls help me out.

Regards

Krishh

Avatar

Level 4

edubey wrote...

Install and configure this plugin in your eclipse: https://marketplace.eclipse.org/content/vaultclipse

 

Thank Praveen. Its working :). Hw s u r weekend? 

Avatar

Level 4

Hi Praveen,

Need small help. When I import code from crxde to eclipse, I m getting compilation errors like (global.jsp referes to libs in crxde etc) . How to resolve those compilation errors?

Do I need to give any jar files in buildpath?

pls help me out.

Regards

Krishh

Avatar

Level 10

can you share the error screenshot?

Avatar

Level 4

Sorry forgot to attach.

And the folder structure in eclipse and crxde is different. i.e one of the reasons for compilation errors.

PFA.

Avatar

Level 10

Yes, you will normally see this as eclipse does not recognize these classes..

that is why we take build in aem from eclipse and then run the program

One thing you can do is by using CRXDE IDE https://docs.adobe.com/docs/en/crx/2-2/developing/development_tools/developing_with_crxde.html

Avatar

Level 4

edubey wrote...

Its not recommended to create project in Crxde, 

You should create in Eclipse and then deploy it to AEM, more ever  for sync you can use vaultclipse plugin available in eclipse.

Please see these article for recommended approaches

http://adobeaemclub.com/how-to-set-up-aem-projects-using-eclipse-plugin/

http://adobeaemclub.com/aem-eclipse-plugin-setup-tutorial/

 

Hi Praveen,

I have downloaded CRXDE. I am unable to connect.

PFA error log.

Regards,

Krishh