All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.pom.xml Maven / Gradle / Ivy

There is a newer version: 2.3.10
Show newest version
#set($dollar = '$')
#set($str = "")
#set($dt = $str.getClass().forName("java.util.Date").newInstance())
#set($year = $dt.getYear() + 1900)
<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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  
  <groupId>${groupId}</groupId>
  <artifactId>${artifactId}</artifactId>
  <version>${version}</version>
  <packaging>mvn-golang</packaging>
  
  <name>Hello GoLang</name>
  <description>Simple 'Hello World!' GoLang example</description>
  <url>https://github.com/raydac/mvn-golang</url>

  <properties>
    <mvn.golang.go.version>${gosdk}</mvn.golang.go.version>
    <mvn.golang.get.packages.file>${dollar}{basedir}${dollar}{file.separator}packages.txt</mvn.golang.get.packages.file>
    <go.wrapper.plugin.version>${gowrapper}</go.wrapper.plugin.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
    <mvn.version>3.0</mvn.version>
    <final.extension></final.extension>
  </properties>

  <inceptionYear>${year}</inceptionYear>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <prerequisites>
    <maven>${dollar}{mvn.version}</maven>
  </prerequisites>

  <profiles>
    <profile>
      <id>windows-profile</id>
      <activation>
        <os>
          <family>windows</family>
        </os>
      </activation>
      <properties>
        <final.extension>.exe</final.extension>
      </properties>
    </profile>
  </profiles>

  <build>
    <defaultGoal>clean package</defaultGoal>
    <finalName>${dollar}{project.artifactId}-${dollar}{maven.build.timestamp}${dollar}{final.extension}</finalName>
    <sourceDirectory>${dollar}{basedir}${dollar}{file.separator}src</sourceDirectory>
    <directory>${dollar}{basedir}${dollar}{file.separator}bin</directory>
    <resources>
      <resource>
        <directory>${dollar}{basedir}${dollar}{file.separator}res</directory>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <groupId>com.igormaznitsa</groupId>
        <artifactId>mvn-golang-wrapper</artifactId>
        <version>${dollar}{go.wrapper.plugin.version}</version>
        <extensions>true</extensions>
        <configuration>
          <!--<goPath>${dollar}{basedir}</goPath>-->
          <!--<enforceGoPathToEnd>true</enforceGoPathToEnd>-->
          <!--<verbose>true</verbose>-->
        </configuration>
        <executions>
          <execution>
            <id>default-build</id>
            <configuration>
              <packages>
                <main>hello.go</main>
              </packages>
            </configuration>
          </execution>
          <execution>
            <id>golang-run</id>
            <phase>verify</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <packages>
                <app>hello.go</app>
              </packages>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

</project>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy