Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active March 10, 2019 12:16
Show Gist options
  • Save ezhov-da/e09765bab7003046d15bc944db99c5fd to your computer and use it in GitHub Desktop.
Save ezhov-da/e09765bab7003046d15bc944db99c5fd to your computer and use it in GitHub Desktop.
maven profiles
<!--Простой пример сборки проекта maven как war или jar приложения-->
<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>ru.ezhov</groupId>
<artifactId>test-profile</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>${package.type}</packaging>
<name>test-profile</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<profiles>
<profile>
<id>war</id>
<properties>
<package.type>war</package.type>
</properties>
</profile>
<profile>
<id>jar</id>
<properties>
<package.type>jar</package.type>
</properties>
</profile>
</profiles>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment