- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-webdav-jackrabbit</artifactId>
- <version>2.10</version>
- </extension>
- </extensions>
- <sourceDirectory>src</sourceDirectory>
- <testSourceDirectory>ext/test</testSourceDirectory>
- <resources>
- <resource>
- <directory>src</directory>
- <includes>
- <include>**</include>
- </includes>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </resource>
- <resource>
- <directory>.</directory>
- <includes>
- <include>**</include>
- </includes>
- <excludes>
- <exclude>.*</exclude>
- <exclude>.*/**</exclude>
- <!-- It is set explicitely in the jar plugin configuration. We don't
- copy it in order to avoid side-effects with BND -->
- <exclude>META-INF/MANIFEST.MF</exclude>
- <exclude>src/**</exclude>
- <exclude>ext/**</exclude>
- <exclude>target/**</exclude>
- <exclude>bin/**</exclude>
- <exclude>pom.xml</exclude>
- <exclude>build.properties</exclude>
- <exclude>*.bnd</exclude>
- <exclude>*.target</exclude>
- <exclude>**/*.xcf</exclude>
- </excludes>
- </resource>
- </resources>
- <testResources>
- <testResource>
- <directory>ext/test</directory>
- <includes>
- <include>**</include>
- </includes>
- <excludes>
- <exclude>**/*.java</exclude>
- </excludes>
- </testResource>
- </testResources>
- <pluginManagement>
- <plugins>
- <!-- Maven -->
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.8.1</version>
- <configuration>
- <!-- <source>1.8</source> -->
- <source>11</source>
- <target>1.8</target>
- <compilerId>eclipse</compilerId>
- <!-- Required for compliance level, see http://jira.codehaus.org/browse/PLXCOMP-231 -->
- <!-- <optimize>true</optimize> -->
- <!-- Hack to work around issues with generated annotations : -->
- <generatedSourcesDirectory>target/classes</generatedSourcesDirectory>
- <generatedTestSourcesDirectory>target/test-classes</generatedTestSourcesDirectory>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>org.codehaus.plexus</groupId>
- <artifactId>plexus-compiler-eclipse</artifactId>
- <version>2.8.5</version>
- </dependency>
- <dependency>
- <groupId>org.eclipse.jdt</groupId>
- <artifactId>ecj</artifactId>
- <version>3.19.0</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.6.1</version>
- <!-- <configuration> -->
- <!-- <filesets> -->
- <!-- <fileset> -->
- <!-- <directory>META-INF</directory> -->
- <!-- <includes> -->
- <!-- <include>MANIFEST.MF</include> -->
- <!-- </includes> -->
- <!-- </fileset> -->
- <!-- </filesets> -->
- <!-- </configuration> -->
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.18</version>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <archive>
- <manifestFile>META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.1.0</version>
- <configuration>
- <excludes>
- <exclude>**/*.class</exclude>
- <!-- Prevents source jars to contain misleading data -->
- <exclude>plugin.xml</exclude>
- <exclude>META-INF/MANIFEST.MF</exclude>
- </excludes>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.8</version>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.7</version>
- </plugin>
- <plugin>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.9</version>
- </plugin>
- <plugin>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.7</version>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.0.0</version>
- <configuration>
- <failOnError>false</failOnError>
- <additionalJOption>-Xdoclint:none</additionalJOption>
- <excludePackageNames>*.internal.*,org.eclipse.*</excludePackageNames>
- <encoding>UTF-8</encoding>
- </configuration>
- </plugin>
- <plugin>
- <groupId>pl.project13.maven</groupId>
- <artifactId>git-commit-id-plugin</artifactId>
- <version>3.0.0</version>
- </plugin>
- <plugin>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.5.1</version>
- <configuration>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <version>4.2.1</version>
- <extensions>true</extensions>
- <configuration>
- <manifestLocation>META-INF</manifestLocation>
- <niceManifest>true</niceManifest>
- <noWarningProjectTypes>
- <noWarningProjectType>pom</noWarningProjectType>
- </noWarningProjectTypes>
- <instructions>
- <_include>bnd.bnd</_include>
- <Bundle-Version>${project.version}-r${maven.build.timestamp}</Bundle-Version>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Bundle-RequiredExecutionEnvironment>JavaSE-11,JavaSE-1.8</Bundle-RequiredExecutionEnvironment>
- <_removeheaders>Bnd-LastModified,Build-Jdk,Built-By,Tool,Created-By</_removeheaders>
- <Automatic-Module-Name>${project.artifactId}</Automatic-Module-Name>
- <SLC-Category>${project.groupId}</SLC-Category>
- <SLC-Build-Timestamp>${maven.build.timestamp}</SLC-Build-Timestamp>
- <!-- Git metadata -->
- <!-- <SLC-Git-Commit-Id>${git.commit.id}</SLC-Git-Commit-Id> -->
- <!-- <SLC-Git-Commit-Describe>${git.commit.id.describe}</SLC-Git-Commit-Describe> -->
- <!-- <SLC-Git-Commit-Count>${git.closest.tag.commit.count}</SLC-Git-Commit-Count> -->
- </instructions>
- </configuration>
- </plugin>
- <!-- Codehaus -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>rpm-maven-plugin</artifactId>
- <version>2.2.0</version>
- <extensions>true</extensions>
- <configuration>
- <version>${project.version}</version>
- <distribution>argeo${argeo.rpm.release}</distribution>
- <group>Applications/System</group>
- <prefix>/usr</prefix>
- <defaultDirMode>755</defaultDirMode>
- <defaultFileMode>644</defaultFileMode>
- <autoRequires>false</autoRequires>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.3.2</version>
- </plugin>
- <!-- Argeo -->
- <plugin>
- <groupId>org.argeo.maven.plugins</groupId>
- <artifactId>argeo-osgi-plugin</artifactId>
- <version>2.1.1</version>
- </plugin>
- </plugins>
- </pluginManagement>