archetype-resources.pom.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.project.templates.service
Show all versions of com.liferay.project.templates.service
Creates a Liferay OSGi service module project implementing a chosen interface.
The newest version!
<?xml version="1.0"?> <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>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <profiles> <profile> <id>standalone</id> <!-- Uncomment the following element if the project is not in workspace --> <!--<activation> <activeByDefault>true</activeByDefault> </activation>--> <properties> #if (${liferayVersion.startsWith("7.0")}) <liferay.bom.version>7.0.6-2</liferay.bom.version> #elseif (${liferayVersion.startsWith("7.1")}) <liferay.bom.version>7.1.3-1</liferay.bom.version> #elseif (${liferayVersion.startsWith("7.2")}) <liferay.bom.version>7.2.1-1</liferay.bom.version> #else <liferay.bom.version>${liferayVersion}</liferay.bom.version> #end </properties> <dependencyManagement> <dependencies> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>release.${liferayProduct}.bom</artifactId> <version>${liferay.bom.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>release.${liferayProduct}.bom.compile.only</artifactId> <version>${liferay.bom.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>release.${liferayProduct}.bom.third.party</artifactId> <version>${liferay.bom.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <repositories> <repository> <id>liferay-public-cdn</id> <url>https://repository-cdn.liferay.com/nexus/content/groups/public/</url> </repository> <repository> <id>liferay-public</id> <url>https://repository.liferay.com/nexus/content/groups/public/</url> </repository> </repositories> </profile> </profiles> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>com.liferay.portal</groupId> <artifactId>release.${liferayProduct}.api</artifactId> <scope>provided</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.2</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> </archive> </configuration> </plugin> <plugin> <groupId>biz.aQute.bnd</groupId> <artifactId>bnd-maven-plugin</artifactId> <version>@biz.aQute.bnd.version@</version> <executions> <execution> <goals> <goal>bnd-process</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>biz.aQute.bnd</groupId> <artifactId>biz.aQute.bndlib</artifactId> <version>@biz.aQute.bnd.version@</version> </dependency> <dependency> <groupId>com.liferay</groupId> <artifactId>com.liferay.ant.bnd</artifactId> <version>@com.liferay.ant.bnd.version@</version> </dependency> </dependencies> </plugin> </plugins> </build> </project>