Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Eclipse Maven AEM Integration using ArcheType-10

AEM_Forum
Level 10
Level 10

Hi,

If my project is named example, the POM you are referring to is example/pom.xml ?

There are many POMs.

Thanks,

Rama.

1 Accepted Solution
Feike_Visser1
Correct answer by
Employee
Employee
17 Replies
Feike_Visser1
Employee
Employee

That is possible, please note that the archeType is not working on AEM62, you need to make a small change in pom.xml to make this happen.

AEM_Forum
Level 10
Level 10

Hi,

Kindly let me know step by step procedure, highlighting the POM change.

I want to establish this integration today itself!

Appreciate your support.

Thanks,

Rama.

Feike_Visser1
Employee
Employee

add this dependency

       <dependency>

            <groupId>javax.inject</groupId>

            <artifactId>javax.inject</artifactId>

            <version>1</version>

            <scope>provided</scope>

        </dependency>

 

and make sure to use the 6.2 uber-jar

AEM_Forum
Level 10
Level 10

Thanks for reverting.

This is a good pointer.

I am hearing so many topics like Help --> Install Software,  Help --> Eclipse Market Place,  Create Multi Module project, create project using maven and importing, etc and getting lost.

That is why if you could offer step by step instructions that work with AEM 6.2, including testing Helloworld, that helps.

Thanks,

Rama.

AEM_Forum
Level 10
Level 10

Again, my preference is to use an UI like Eclipse, to perform as much of it as possible and as little as possible of Maven, which is command line.

Thanks,

Rama.

Feike_Visser1
Correct answer by
Employee
Employee
phoolc94036637
Level 1
Level 1

Hi Rama,

You can use vaultclipse plugin for eclipse for automatically synchronized content between eclipse and AEM.
You can download plugin using the following URL  
https://sourceforge.net/projects/vaultclipse
But I would like to recommend you for using Brackets IDE.

Thanks,
Phool Chandra

AEM_Forum
Level 10
Level 10

How to make sure to use the 6.2 uber-jar?

Thanks,

Rama.

Feike_Visser1
Employee
Employee

Have this dependency:

        <!-- AEM6.x dependency -->

        <dependency>

            <groupId>com.adobe.aem</groupId>

            <artifactId>uber-jar</artifactId>

            <version>6.2.0-SP1</version>

            <!-- for AEM6.1 use this version : <version>6.1.0</version> -->

            <!-- for AEM6.1 SP1 use this version : <version>6.1.0-SP1-B0001</version> -->

            <!-- for AEM6.1 SP2 use this version : <version>6.1.0-SP2</version> -->

            <!-- for AEM6.1 SP2 + CFP2 use this version : <version>6.1.SP2-CFP2</version> -->

            <!-- for AEM6.2 use this version : <version>6.2.0</version> -->

            <!-- for AEM6.2 SP1 use this version : <version>6.2.0-SP1</version> -->

            <!-- note that since 6.2 "apis" are publicly available in repo.adobe.com -->

            <classifier>apis</classifier>

            <scope>provided</scope>

        </dependency>

AEM_Forum
Level 10
Level 10

Hi all,

Please find attached the steps I followed and the error I am getting.

I did include the dependency in POM.

Kindly suggest where I went wrong.

I am using Eclipse Neon, Maven 3.3.9 and AEM 6.2.

I would highly appreciate a quick reply from you.

Thanks,

Rama.

Feike_Visser1
Employee
Employee

Add the dependencies to the core/pom.xml

Prince_Shivhare
Community Advisor
Community Advisor

Hey,

Is your artifact id is in capital letter?

and for your dependencies:

for adding Uber-jar .. please follow this article. https://helpx.adobe.com/experience-manager/using/first-arch10.html and if you are adding Javax-inject then as fieke suggest please add it to project core POM file.

~ Prince

AEM_Forum
Level 10
Level 10

Hi all,

Did anyone get a chance to look at my attachment as yet?

I need a resolution immediately.

Could you please suggest any one way that has worked with you on AEM 6.2 and you could guide me? (I am looking for UI based resolution more than command line, but with the situation I am in, any solution is fine for now).

May be we could have an Adobe Connect Session and close.

I highly appreciate your support.

Thanks,

Rama.

Feike_Visser1
Employee
Employee

I did look, and replied. Add the dependencies to the core/pom.xml.

AEM_Forum
Level 10
Level 10

Hi Felke,

I tried these POM changes.

They did not work.

Thanks,

Rama.

Feike_Visser1
Employee
Employee

Can you first run "mvn clean install" from the command line and report back any errors?