templates.root.main.ui._pom.xml Maven / Gradle / Ivy
<?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>{{groupId}}</groupId> <artifactId>{{artifactId}}-ui</artifactId> <version>{{version}}</version> <packaging>pom</packaging> <build> <plugins> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>2.0</version> <executions> <execution> <phase>compile</phase> <goals> <goal>execute</goal> </goals> <configuration> <properties> <basedir>${project.basedir}</basedir> <buildScript>build</buildScript> </properties> <source><![CDATA[ def basedir = new File(properties['basedir']) def buildScript = properties['buildScript'] def isWindows = { System.properties['os.name'].toLowerCase().contains('windows') } if (!new File(basedir, buildScript).exists()) { buildScript = buildScript + (isWindows() ? '.bat' : '.sh') } def cmd = isWindows() ? "cmd /c $buildScript" : "sh $buildScript" println ">> " + cmd def process = new ProcessBuilder(cmd.split(' ')).directory(basedir) .redirectErrorStream(true).start() process.in.eachLine { line -> println line } ]]> </source> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>distro-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <appendAssemblyId>false</appendAssemblyId> <descriptorRefs> <descriptorRef>package-web-dist</descriptorRef> </descriptorRefs> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>io.restx</groupId> <artifactId>restx-maven-assemblies</artifactId> <version>1.0</version> </dependency> </dependencies> </plugin> </plugins> </build> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy