Jahia in English > Jahia 6.5 : create...

0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/01 14:25

hi,

i want to create a new module with Eclipse IDE but i have some error :

Project build error: Non-readable POM D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\2.0\jahia-modules-2.0.pom: D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\2.0\jahia-modules-2.0.pom (Le fichier spécifié est introuvable)

in the folder "D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\2.0\" there are this files :

- m2e-lastUpdated.properties

- jahia-modules-2.0.pom.lastUpdated

- jahia-modules-2.0.pom.ahc361656f8bace4a19

- _maven.repositories

Say me , if you want the content of this files!

thank us

 

 

  (maanifiik)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Re: Jahia 6.5 : create new module with Eclipse IDE

by  faissah »  2011/08/01 16:15

Hi,

Did you follow the steps of the documentation?

http://www.jahia.com/cms/home/community/documentation/templating-and-integration-guide/part-6-setting-up-an-integration.html

At which step do you get this error ?

Regards,

Fabrice

Fabrice  (faissah)

Number of messages  262
Registration date
0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/02 14:47

Yes i did it!

But the problem is after the maven finish, next the last part of the tutorial!

When the projet is create! he don't find the file...

thank you

  (maanifiik)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Re: Jahia 6.5 : create new module with Eclipse IDE

by  faissah »  2011/08/02 18:07

Which version of Eclipse IDE / maven / JDK are you using?
 

Fabrice  (faissah)

Number of messages  262
Registration date
0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/03 07:45

eclipse : Version: Helios Service Release 1

maven : maven 2

JDK : jdk 1.6.0_26

 

for information:

maven setting:

<settings>
    <localRepository>D:/Documents and Settings/xxx/.m2/repository</localRepository>
    <!--<localRepository>c:/Users/john/.m2/repository</localRepository>-->
    <profiles>
        <profile>
            <id>configure</id>
            <properties>
                <jahia.configure.active>true</jahia.configure.active>
                <jahia.configure.databaseType>mysql</jahia.configure.databaseType>
                <jahia.configure.databaseUrl>jdbc:mysql://localhost/jahia</jahia.configure.databaseUrl>
                <jahia.configure.databaseUsername>root</jahia.configure.databaseUsername>
                <jahia.configure.databasePassword></jahia.configure.databasePassword>
                <jahia.configure.localIp>0.0.0.0</jahia.configure.localIp>
                <jahia.configure.developmentMode>true</jahia.configure.developmentMode>
                <jahia.configure.outputContainerCacheActivated>false</jahia.configure.outputContainerCacheActivated>
                <jahia.deploy.processingServer>true</jahia.deploy.processingServer>
                <jahia.configure.mailServer>YourSmptServer</jahia.configure.mailServer>
                <jahia.configure.mailAdministrator>admin@domain.com</jahia.configure.mailAdministrator>
                <jahia.configure.mailFrom>server@domain.com</jahia.configure.mailFrom>
            </properties>
        </profile>
        <profile>
            <id>jahia6.5</id>
            <properties>
                <jahia.deploy.targetServerType>tomcat</jahia.deploy.targetServerType>
                <jahia.deploy.targetServerVersion>6</jahia.deploy.targetServerVersion>
                <jahia.deploy.targetServerDirectory>C:/Jahia_xCM_v6.5.0.0/tomcat/</jahia.deploy.targetServerDirectory>
                <!--<jahia.deploy.targetServerDirectory>C:/Jahia_xCM_CE_v6.5-BETA/tomcat</jahia.deploy.targetServerDirectory>-->
                <jahia.deploy.war.dirName>ROOT</jahia.deploy.war.dirName>
                <jahia.deploy.war.contextPath>/</jahia.deploy.war.contextPath>
                <jahia.deploy.war.servletPath>/cms</jahia.deploy.war.servletPath>
                <jahia.debug.address>socket:hostname=localhost,port=5005</jahia.debug.address>
                <jahia.test.url>http://localhost:8080/cms</jahia.test.url>
            </properties>
        </profile>
    </profiles>
    <activeProfiles>
        <activeProfile>jahia6.5</activeProfile>
        <activeProfile>configure</activeProfile>
    </activeProfiles>
    <pluginGroups>
        <pluginGroup>org.jahia.server</pluginGroup>
    </pluginGroups>
</settings>

archetype-catalog.xml:

<archetype-catalog>
  <archetypes>
    <archetype>
       <groupId>org.jahia.archetypes</groupId>
       <artifactId>jahia-templates-archetype</artifactId>
       <version>1.4</version>
       <repository>http://maven.jahia.org/maven2</repository>
       <description>Jahia archetype for creating a new standalone template project (for Jahia version &gt;= 6.0 and &lt; 6.5)</description>
    </archetype>
    <archetype>
       <groupId>org.jahia.archetypes</groupId>
       <artifactId>jahia-web-templates-archetype</artifactId>
       <version>1.4</version>
       <repository>http://maven.jahia.org/maven2</repository>
       <description>Jahia archetype for creating a new template project inheriting from the Jahia Web templates (for Jahia version &gt;= 6.0 and &lt; 6.5)</description>
    </archetype>
    <archetype>
       <groupId>org.jahia.archetypes</groupId>
       <artifactId>jahia-module-archetype</artifactId>
       <version>1.11</version>
       <repository>http://maven.jahia.org/maven2</repository>
       <description>Jahia archetype for creating a new module (for Jahia version &gt;= 6.5)</description>
    </archetype>     
    <archetype>
       <groupId>org.jahia.archetypes</groupId>
       <artifactId>jahia-app-archetype</artifactId>
       <version>1.3</version>
       <repository>http://maven.jahia.org/maven2</repository>
       <description>Jahia archetype for creating a new app (for Jahia version &gt;= 6.5)</description>
    </archetype>     
    <archetype>
       <groupId>org.jahia.archetypes</groupId>
       <artifactId>jahia-templatesSet-archetype</artifactId>
       <version>1.6</version>
       <repository>http://maven.jahia.org/maven2</repository>
       <description>Jahia archetype for creating a new templates set (for Jahia version &gt;= 6.5)</description>
    </archetype>     
    <archetype>
       <groupId>org.jahia.archetypes</groupId>
       <artifactId>jahia-profileModule-archetype</artifactId>
       <version>1.3</version>
       <repository>http://maven.jahia.org/maven2</repository>
       <description>Jahia archetype for creating a new profile module (for Jahia version &gt;= 6.5)</description>
    </archetype>
  </archetypes>
</archetype-catalog>

 

 

  (maanifiik)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/04 08:28

please help me,

when the project is create, i have the correct structure of module!

but ii have thie error in the main pom.

 

  (maanifiik)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/04 15:23

Sorry,

the error is :

Project build error: Non-readable POM D:\Documents and Settings\xxx\.m2\repository\org\jahia\modules\jahia-modules\2.0\jahia-modules-2.0.pom: D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\2.0\jahia-modules-2.0.pom (Le fichier spécifié est introuvable)

  (maanifiik)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Re: Jahia 6.5 : create new module with Eclipse IDE

by  faissah »  2011/08/04 15:45

Hi,

The issue comes from: D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\2.0\jahia-modules-2.0.pom.

It should be: D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\6.5-BETA2\jahia-modules-6.5-BETA2.pom

"6.5-BETA2" is setted in the last step. This is the jahiaPackageVersion parameter.

Seeing your archetype-catalog.xml, are you selecting the right archetype when creating the project. It should be : jahia-templateSet-archetype.

 

Regards,

Fabrice
 

Fabrice  (faissah)

Number of messages  262
Registration date
0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/05 09:17

hi,

No, i select the "jahia-module-archetype" because i want to create a module (no a template)!

Now, i will create the project with "6.5-BETA2" and "jahia-templateSet-archetype" , i wait for maven and i give you a response!

But, if i want to create a module jahia like "menu" or the example of creation module like "youtube embedded", i must to create a "jahia-templateSet-archetype"?????

thank you

 

  (maanifiik)

Number of messages  18
Registration date
0 (0 Good)
0 (0 Bad)

Jahia 6.5 : create new module with Eclipse IDE

by  maanifiik »  2011/08/05 09:25

outch

i take the same error:

Project build error: Non-readable POM D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\6.5-BETA2\jahia-modules-6.5-BETA2.pom: D:\Documents and Settings\myFolder\.m2\repository\org\jahia\modules\jahia-modules\6.5-BETA2\jahia-modules-6.5-BETA2.pom (Le fichier spécifié est introuvable)

  (maanifiik)

Number of messages  18
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page