Simple example plugin

A pom.xml , of simple plugin, looks like :

<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">

<parent>
  <artifactId>lutece-plugins-pom</artifactId>
  <groupId>fr.paris.lutece.tools</groupId>
  <version>0.7</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>fr.paris.lutece.plugins</groupId>
<artifactId>plugin-myluteceplugin</artifactId>
<packaging>lutece-plugin</packaging>
<version>2.0.0-SNAPSHOT</version>
<name>Lutece myluteceplugin plugin</name>

<repositories>
  <repository>
    <id>lutece</id>
    <name>luteceRepository</name>
    <url>http://dev.lutece.paris.fr/maven_repository</url>
    <layout>default</layout>
  </repository>
</repositories>

<dependencies>
        <dependency>
    <groupId>fr.paris.lutece</groupId>
    <artifactId>lutece-core</artifactId>
    <version>2.0.0b3</version>
    <type>lutece-core</type>
  </dependency>
</dependencies>

</project>
  • notes :

  • The plugin pom.xml refere to a pom-parent, inherit of her configuration.

  • The repositories definition, can do also in settings.xml file, wich can be found on documents_and_settings/votreCompte/.m2/ directory.

  • The only dependencies needs to test this plugin is the dependency on lutece-core .