How to integrate jahia with eclipse - jahia

I want to integrate jahia on eclipse.
i'm just starting to work with jahia and i do not know how to download her modules with maven
Need help, thank you!

If you are looking for custom development then
Here is the development intro
https://academy.jahia.com/documentation/digital-experience-manager/7.2/development/development-best-practices#INTRODUCTION
There are three parts template module and component
with maven jahia project can be created
https://academy.jahia.com/documentation/digital-experience-manager/7.2/development/osgi-module-development/building-a-new-osgi-module#Introduction

Create a Module - Eclipse
• From Eclipse
In Eclipse, click on File > New > Other ... > Maven > Maven Project > Next.
Declare http://maven.jahia.org/maven2 as remote catalog and select it
Choose the archetype : jahia-module-archetype
Enter an artifactId (technical name), the jahiaVersion (7.1.0.0 for exemple) and the moduleName
For more information, see source:
https://academy.jahia.com/files/live/sites/academy/files/documentation/training/TR7_Basic-Developer_EN_V1.5.pdf
(page 19 and following...)
Regards,

Related

No maven in intellij idea

I have one project open in IntelliJ. In that I am able to see maven tab in its left sidebar:
Also, I am able to see Maven in View > Tool Windows > Maven:
I tried to open another project in another IntelliJ window, but it does not have both of the above:
It may be not required to have that maven tool window for the project that you have opened in the second Idea instance.
If the opened project is a maven project (at least if you have a pom.xml associated with that project) you will have this option available in View -> Tool Windows -> maven
If it's a maven project, try importing the project as a maven project as well

eclipse do not show the setting.xml for maven - i have downloaded luna full package

I am trying to set up maven in new eclipse - i have downloaded eclipse luna full package from eclipse site. but the settings xml for maven needs to be defined .
For the very first time - there are two ways to do this
1- Using Eclipse - embedded settings of maven
2- Using External Maven -
You can follow steps at - Maven in Eclipse: step by step installation
Then you need to create a simple maven project and clean-install it . It wil download all the basic required jars and all the basic plugins required for clean-compile-install operations.
Then you can start creating maven projects using maven archetypes

AEM Eclipse plugin - New project creation issue

I have installed AEM Eclipse plugin from https://eclipse.adobe.com/aem/dev-tools (I downloaded it as archive and used in my Eclipse as local archive).
Then I faced issue with AEM wizard not showing up while creating new project. Found workaround to download the archetype catalog xml file from https://repo.adobe.com/nexus/content/groups/public/archetype-catalog.xml and add it to Eclipse (Maven) as local archetype catalog. It started showing the AEM project when creating new project. I can see 3 archetypes in the dialog that opens after selecting New - AEM - AEM Sample Multi-Module Project.
I can see com.adobe.granite.archetypes:sample-project-archetype with 5, 6 and 7 versions. When I select version 7 (or even 5 and 6) and click on next button, it does not show the maven configuration dialog but stays on the same archetype selection dialog. When I click one more time, I can see the title of the dialog changes to "This step defines which server to use with the new project." but there are no options to select the server. In the eclipse log, I can see the error: "Unhandled event loop exception" and stack trace
java.lang.RuntimeException: Could not process archetype: null
at com.adobe.granite.ide.eclipse.ui.wizards.np.AdvancedSettingsComponent.initialize(AdvancedSettingsComponent.java:267)
at com.adobe.granite.ide.eclipse.ui.wizards.np.SimplerParametersWizardPage.setVisible(SimplerParametersWizardPage.java:160) ....
I have tried several options of changing the proxy settings, using externally installed maven and also trying to download the archetype jar separately from the server as suggested on some sites. But not able to make it work.
Any help would be appreciated.
I am using: Eclipse Java EE IDE for Web Developers. Version: Kepler Release Build id: 20130614-0229
Maven: apache-maven-3.1.1
I had the same problem and now i solved it. It seems the repository url in archetype catalog is not accessible. in my case it was proxy settings for https, which i set in settings.xml
as a check try to install the project from command line to see more information:
mvn archetype:generate -DgroupId=de.test -DartifactId=testAEM -DarchetypeArtifactId=sample-project-archetype -DarchetypeGroupId=com.adobe.granite.archetypes -DarchetypeVersion=7 -DarchetypeCatalog=file://[path to aem archetype file]/archetype-catalog.xml -DinteractiveMode=true
Hope it helps

run maven project with eclipse

I'm new to maven and eclipse. I added m2e-plugin in eclipse and I imported an example of a maven project that I've found in the net.
My problem is when I try to run the project in eclipse using the Run as item menu, I don't find the maven package menu as I learned in the different tutorials.
Is it a problem of installation?
Ok, lets go through this step by step to make sure you have everything you need to get going.
First of all make sure that you have Maven installed (and lets assume you have Java already). You can download it from http://maven.apache.org/download.cgi and installation instructions for Fedora (which I assume is what you are using from your tag) are further down the page.
To test that Maven is correctly installed and working type mvn --help in to the terminal. Eclipse and m2e pretty much just hop on to the terminal for everything Maven related so make sure this is working before proceeding.
Next download an appropriate version of Eclipse. For the sake of this example I've downloaded the Kepler version of the Java EE IDE. In this version of Eclipse m2e comes bundled and to check this you can go to Help > About Eclipse > Installation Details and on the plug-ins tab you should see the m2e connectors.
Now you can import your Maven project in to Eclipse. To do this go to File > Import and then choose Existing Maven Projects under the Maven section. Choose the directory with the example project that you've downloaded and then Finish.
Now, ensure that you have some file inside your example Maven project opened and when you go to Run As... you should now be able to see the maven options. Go to Run As > Maven build... and all you need to do is place the word package in the Goals field and you're ready to roll.
Convert your project to a maven project if you haven't done yet by right clicking on your project in the Eclipse Project/Package explorer. Then follow:
Configure -> Convert to Maven Project
After that you can just right click again on the project Run as and you will see all Maven possibilities to execute your project build/install/clean etc.

I have an Eclipse project which is not using Maven, can I start using Maven in a project?

I installed m2eclipse plugin. I want to create pom.xml in my project which is not using maven.
İn this site I found information below about how can I do it but it doesn't work for me.
Create a Maven POM File
If you already have an Eclipse project which is not using Maven, you
can start using Maven in a project by creating a new Maven POM file.
m2eclipse provides a wizard to easily create a new POM file inside an
existing project. To launch this wizard, select File → New → Other...,
type in "maven" in the filter field, and select Maven POM File. This
POM creation wizard is shown in Figure 5, “Creating a New POM”:
Please help me to solve this problem
If you use eclipse indigo then simply right-click the project, select Configure > Convert to maven project. If you are not using eclipse indigo you can do something like right-click project > Maven > Enable dependency management (if I remember correctly)

Resources