Skip to content

Instantly share code, notes, and snippets.

@fernandor777
Last active August 28, 2020 16:39
Show Gist options
  • Save fernandor777/de3c59e679021f06ed455d2df9b39910 to your computer and use it in GitHub Desktop.
Save fernandor777/de3c59e679021f06ed455d2df9b39910 to your computer and use it in GitHub Desktop.
Community module example

pom.xml

<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>

  <parent>
    <groupId>org.geoserver</groupId>		
	<artifactId>community</artifactId>
	<version>2.18-SNAPSHOT</version>
  </parent>

  <groupId>org.geoserver</groupId>
  <artifactId>gs-origami</artifactId>
  <packaging>jar</packaging>
  <version>1.0</version>
  <name>Origami Module</name>

  <dependencies>
    <dependency>
      <groupId>org.geoserver</groupId>
      <artifactId>gs-main</artifactId>
      <version>{project.version}</version>
    </dependency>
	<dependency>
      <groupId>org.geoserver</groupId>
      <artifactId>gs-wms</artifactId>
      <version>{project.version}</version>
    </dependency>
	<dependency>
      <groupId>org.geoserver</groupId>
      <artifactId>gs-wfs</artifactId>
      <version>{project.version}</version>
    </dependency>
  </dependencies>

</project>

Anadir a Community pom.xml:

    <profile>
      <id>origami</id>
      <modules>
        <module>origami</module>
      </modules>
    </profile>

Anadir a src/web/app/pom.xml

   <profile>
      <id>origami</id>
      <dependencies>
        <dependency>
          <groupId>org.geoserver</groupId>
          <artifactId>gs-origami</artifactId>
          <version>${project.version}</version>
        </dependency>
      </dependencies>
    </profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment