Last active
March 20, 2016 22:03
-
-
Save tung-dang/0064816627a18be867cb to your computer and use it in GitHub Desktop.
Config atlas plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.atlassian.maven.plugins</groupId> | |
<artifactId>maven-amps-plugin</artifactId> | |
<configuration> | |
... | |
<products> | |
<product> | |
<id>jira</id> | |
<systemPropertyVariables> | |
<atlassian.darkfeature.my.dark.feature>${my-flag}</atlassian.darkfeature.my.dark.feature> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-enforcer-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>enforce-java</id> | |
<goals> | |
<goal>enforce</goal> | |
</goals> | |
<configuration> | |
<rules> | |
<requireJavaVersion> | |
<version>[1.4,1.5)</version> | |
</requireJavaVersion> | |
</rules> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> | |
----------------------------- | |
change different level: | |
<project> | |
... | |
<properties> | |
... | |
<jdkLevel>1.4</jdkLevel> | |
</properties> | |
... | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
... | |
<instructions> | |
<Import-Package> | |
com.atlassian.confluence.events.event.space;version="[3.4,4.0)", | |
com.atlassian.confluence.search.lucene.*;version="[3.4,4.0)", | |
com.atlassian.confluence.json*;version="[3.4,4.0)" | |
</Import-Package> | |
</instructions> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.atlassian.maven.plugins</groupId> | |
<artifactId>maven-***-plugin</artifactId> <!-- *** is the name of the application (product) you're using --> | |
<version>3.2.3</version> | |
<extensions>true</extensions> | |
<configuration> | |
<productVersion>${product.version}</productVersion> | |
<instructions> | |
<!-- OSGi instructions go here --> | |
</instructions> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--When run release on build after test run again stable and master confluence. | |
The release step only release package and put into repo and skip running all test again.--> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>${maven.release.plugin.version}</version> | |
<configuration> | |
<arguments>-Dmaxmemory=512m -DskipTests=true</arguments> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.maven.scm</groupId> | |
<artifactId>maven-scm-provider-gitexe</artifactId> | |
<version>1.4</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<groupId>com.atlassian.maven.plugins</groupId> | |
<artifactId>maven-amps-plugin</artifactId> | |
<version>${amps.version}</version> | |
</plugin> | |
<plugin> | |
<groupId>com.atlassian.maven.plugins</groupId> | |
<artifactId>maven-amps-dispatcher-plugin</artifactId> | |
<version>${amps.version}</version> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<artifactId>maven-release-plugin</artifactId> | |
<version>${maven.release.plugin.version}</version> | |
<configuration> | |
<!-- When using atlassian-public-pom as parent POM we need this configuration to skip tests, --> | |
<!-- as command line arguments are ignored. --> | |
<arguments>-Prelease -DskipTests</arguments> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.atlassian.maven.plugins</groupId> | |
<artifactId>maven-confluence-plugin</artifactId> | |
<version>${amps.version}</version> | |
<extensions>true</extensions> | |
<configuration> | |
<jvmArgs>${jvmArgs}</jvmArgs> | |
<productVersion>${confluence.version}</productVersion> | |
<productDataVersion>${confluence.data.version}</productDataVersion> | |
<server>localhost</server> | |
<instructions> | |
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key> | |
<!-- Add package to export here --> | |
<Export-Package> | |
com.atlassian.confluence.plugins.softwareproject, | |
</Export-Package> | |
<!-- Add package import here --> | |
<Import-Package> | |
org.springframework.cglib.core, | |
org.springframework.cglib.proxy, | |
org.springframework.osgi.*;resolution:="optional", | |
org.eclipse.gemini.blueprint.*;resolution:="optional", | |
com.atlassian.plugin.osgi.bridge.external, | |
com.atlassian.sal.api.*, | |
com.atlassian.jira.*;resolution:="optional", | |
org.slf4j, | |
org.apache.commons.lang, | |
*;resolution:=optional | |
</Import-Package> | |
<!-- Ensure plugin is spring powered - see https://extranet.atlassian.com/x/xBS9hQ --> | |
<Spring-Context>*</Spring-Context> | |
</instructions> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.8</source> | |
<target>1.8</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<!-- Compress JS/CSS --> | |
<groupId>net.sf.alchim</groupId> | |
<artifactId>yuicompressor-maven-plugin</artifactId> | |
<version>0.7.1</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compress</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<jswarn>false</jswarn> | |
<excludes> | |
<exclude>**/*-min*</exclude> | |
<exclude>**/*.min*</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<!-- Compile LESS --> | |
<groupId>com.atlassian.lesscss</groupId> | |
<artifactId>lesscss-maven-plugin</artifactId> | |
<version>1.3.4</version> | |
<executions> | |
<execution> | |
<id>compile-less</id> | |
<phase>process-resources</phase> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
<configuration> | |
<sourceDirectory>${project.basedir}/src/main/resources</sourceDirectory> | |
<outputDirectory>${project.build.outputDirectory}</outputDirectory> | |
<compress>false</compress> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment