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

Create an Eclipse project from existing site in AEM

Avatar

Avatar
Validate 1
Level 1
pmueller88
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
pmueller88
Level 1

Likes

0 likes

Total Posts

7 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
pmueller88
Level 1

12-02-2020

I packaged a site from our Dev environment and added it to my local AEM instance. I would like to be able to edit that site using Eclipse but I don't know how to go from "already in AEM" to Eclipse project. I only know how to go from making a new project and add it to AEM.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Nirmal_Jose
MVP

Likes

119 likes

Total Posts

207 posts

Correct Reply

58 solutions
Top badges earned
Validate 1
Establish
Coach
Contributor
Shape 1
View profile

Avatar
Validate 1
MVP
Nirmal_Jose
MVP

Likes

119 likes

Total Posts

207 posts

Correct Reply

58 solutions
Top badges earned
Validate 1
Establish
Coach
Contributor
Shape 1
View profile
Nirmal_Jose
MVP

13-02-2020

The package is a compiled version of your code where the java code is compiled to a jar files and is included in the /apps/<sitename>/install folder along with ui.apps content. Rest of the configurations under /apps, etc can be imported into eclipse, but not the java code. 

If you want to develop again, then you need the source code of the application which you can build again into package. Adobe provides a standard https://github.com/adobe/aem-project-archetype which defines the structure of the project with its best practices. 

If you aim is to just debug, you can use any decompiler to extract the /apps/<sitename>/install/<name>.jar file to see the java classes.

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

135 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Validate 1
MVP
ArpitVarshney
MVP

Likes

135 likes

Total Posts

185 posts

Correct Reply

36 solutions
Top badges earned
Validate 1
Establish
Give Back 5
Give Back 3
Give Back 25
View profile
ArpitVarshney
MVP

12-02-2020

Hi @pmueller88 

There should be corresponding AEM code base stored in GIT or some other repository which is a AEM maven project that can be build and deploy to AEM using some commands.

 

You can't unzip & import the package in eclipse stored in AEM package manager to make code changes.Please check with your team where is your code base. Then checkout & import that codebase in eclipse, make your changes and deploy it to AEM local instance.

 

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

12-02-2020

You can import the code using the "Existing Maven Projects" in Eclipse if you have the POM files and everything defined.

 

Screen Shot 2020-02-12 at 1.59.54 PM.png