-
Notifications
You must be signed in to change notification settings - Fork 1
Create a plug in
Emmanuel Chebbi edited this page Jul 7, 2018
·
2 revisions
All the plug-ins should be located under the bundles/
folder. This is a convention making easier for a newcomer to understand project's architecture.
Hence, adding a fr.kazejiyu.foo.core
plug-in to the project would result in the following tree structure:
.
├───bundles
│ │ pom.xml
│ └───fr.kazejiyu.foo.core
│ │ .classpath
│ │ .project
│ │ build.properties
│ ├───.settings
│ │ org.eclipse.jdt.core.prefs
│ ├───bin
│ ├───META-INF
│ │ MANIFEST.MF
│ └───src
In order to be taken into account by Maven, the plug-in must be added as a sub-module of the bundles module. To this end, the bundles/pom.xml file must be enhanced with a <module>
tag as follows:
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.kazejiyu.foo</groupId>
<artifactId>fr.kazejiyu.foo.bundles</artifactId>
<packaging>pom</packaging>
...
<modules>
<module>fr.kazejiyu.foo.core</module>
</modules>
</project>