Jahia in English > What depencies should...

0 (0 Good)
0 (0 Bad)

What depencies should I add into pom?

by  omglion »  2014/07/15 04:05

Hi, everybody,

I want to rechieve datas from mysql database, and use Jahia to manage these datas, could anyone tell me what dependencies should i add into the pom?

The following is my project pom.xml content:

<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <artifactId>jahia-modules</artifactId>
        <groupId>org.jahia.modules</groupId>
        <version>7.0.0.0</version>
    </parent>
    <groupId>externalprovidertest</groupId>
    <artifactId>externalprovidertest</artifactId>
    <name>external provider test</name>
    <version>1.0-SNAPSHOT</version>    
    <packaging>bundle</packaging>
    <description>This is the custom module (external provider test) for running on a Digital Factory server.</description>

    <scm>
        <connection>scm:dummy:uri</connection>
        <developerConnection>scm:dummy:uri</developerConnection>
    </scm>

    <dependencies>
        <dependency>
            <artifactId>jahia-parent</artifactId>
            <groupId>org.jahia</groupId>
            <version>7.0.0.1</version>

        </dependency>

        <dependency>
            <groupId>org.jahia.commons</groupId>
            <artifactId>jahia-commons</artifactId>
            <version>1.0.2</version>
        </dependency>

        <dependency>
            <groupId>org.jahia.modules</groupId>
            <artifactId>external-provider</artifactId>
            <version>2.0.1</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>jahia-public</id>
            <name>Jahia Public Repository</name>
            <url>https://devtools.jahia.com/nexus/content/groups/public</url>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Jahia-Depends>default</Jahia-Depends>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Thanks.

Kindly regards

Lion

  • What depencies should I add into pom?
    2014/07/15 04:05

    omglion <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Hi, everybody,</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">I want to rechieve datas from mysql database, and use Jahia to manage these datas, could anyone tell me what dependencies should i add into the pom?</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">The following is my project pom.xml content:</p> <p>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;<br /> &nbsp; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;<br /> &nbsp; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;<br /> &nbsp; &nbsp; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;<br /> &nbsp; &nbsp; &lt;parent&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;jahia-modules&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.jahia.modules&lt;/groupId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;7.0.0.0&lt;/version&gt;<br /> &nbsp; &nbsp; &lt;/parent&gt;<br /> &nbsp; &nbsp; &lt;groupId&gt;externalprovidertest&lt;/groupId&gt;<br /> &nbsp; &nbsp; &lt;artifactId&gt;externalprovidertest&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &lt;name&gt;external provider test&lt;/name&gt;<br /> &nbsp; &nbsp; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &nbsp; &nbsp;<br /> &nbsp; &nbsp; &lt;packaging&gt;bundle&lt;/packaging&gt;<br /> &nbsp; &nbsp; &lt;description&gt;This is the custom module (external provider test) for running on a Digital Factory server.&lt;/description&gt;</p> <p>&nbsp; &nbsp; &lt;scm&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;connection&gt;scm:dummy:uri&lt;/connection&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;developerConnection&gt;scm:dummy:uri&lt;/developerConnection&gt;<br /> &nbsp; &nbsp; &lt;/scm&gt;</p> <p>&nbsp; &nbsp; &lt;dependencies&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;dependency&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;jahia-parent&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.jahia&lt;/groupId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;7.0.0.1&lt;/version&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dependency&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.jahia.commons&lt;/groupId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;jahia-commons&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;1.0.2&lt;/version&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</p> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dependency&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.jahia.modules&lt;/groupId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;external-provider&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;2.0.1&lt;/version&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;scope&gt;provided&lt;/scope&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dependency&gt;<br /> &nbsp; &nbsp; &lt;/dependencies&gt;</p> <p>&nbsp; &nbsp; &lt;repositories&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;repository&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;id&gt;jahia-public&lt;/id&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;name&gt;Jahia Public Repository&lt;/name&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;url&gt;https://devtools.jahia.com/nexus/content/groups/public&lt;/url&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;releases&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;/enabled&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/releases&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;snapshots&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;enabled&gt;true&lt;/enabled&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/snapshots&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/repository&gt;<br /> &nbsp; &nbsp; &lt;/repositories&gt;</p> <p>&nbsp; &nbsp; &lt;build&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;plugins&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;plugin&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;org.apache.felix&lt;/groupId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;extensions&gt;true&lt;/extensions&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;configuration&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;instructions&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;Jahia-Depends&gt;default&lt;/Jahia-Depends&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/instructions&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/configuration&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/plugin&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/plugins&gt;<br /> &nbsp; &nbsp; &lt;/build&gt;<br /> &lt;/project&gt;</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Thanks.</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Kindly regards</p> <p style="margin: 0px 0px 10px; color: rgb(85, 85, 85); font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Lion</p>

  • Number of messages  27
    Registration date Jul 15, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: What depencies should I add into pom?

    by  qlamerand »  2014/11/26 13:20

    Hello,
    If you need to connect to a MySQL database, you will probably use MySQL Connector/J. You will have to add the following dependency :

            <dependency>
                <groupId>mysql</groupId>
                <artifactId>mysql-connector-java</artifactId>
                <version>${driver.mysql.version}</version>
                <scope>runtime</runtime>
            </dependency>

    Here is its documentation : http://dev.mysql.com/doc/connector-j/en/connector-j-usagenotes-connect-drivermanager.html

    Regards,
    Quentin

     

  • Re: What depencies should I add into pom?
    2014/11/26 13:20

    qlamerand <p>Hello,<br /> If you need to connect to a MySQL database, you will probably use MySQL Connector/J. You will have to add the following dependency :</p> <blockquote> <p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;dependency&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;groupId&gt;mysql&lt;/groupId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;version&gt;${driver.mysql.version}&lt;/version&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;scope&gt;runtime&lt;/runtime&gt;<br /> &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dependency&gt;</p> </blockquote> <p>Here is its documentation :&nbsp;<a href="http://dev.mysql.com/doc/connector-j/en/connector-j-usagenotes-connect-drivermanager.html">http://dev.mysql.com/doc/connector-j/en/connector-j-usagenotes-connect-drivermanager.html</a></p> <p>Regards,<br /> Quentin</p> <p>&nbsp;</p>

  • Number of messages  28
    Registration date Nov 26, 2014
    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