Skip to content

Commit

Permalink
Add a parent pom and modify child pom files accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpotts committed Oct 24, 2016
1 parent f5fec0f commit 612cc47
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 55 deletions.
116 changes: 116 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.metaversant</groupId>
<artifactId>share-site-creators</artifactId>
<version>0.0.5-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Share Site Creators</name>
<description>Changes the permissions so that only members of a specific group can create sites.</description>
<url>https://github.com/jpotts/share-site-creators</url>

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

<developers>
<developer>
<name>Jeff Potts</name>
<email>info@metaversant.com</email>
<organization>Metaversant Group, Inc.</organization>
<organizationUrl>http://www.metaversant.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/jpotts/share-site-creators.git</connection>
<developerConnection>scm:git:ssh://github.com:jpotts/share-site-creators.git</developerConnection>
<url>http://github.com/jpotts/share-site-creators/tree/master</url>
</scm>

<properties>
<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/</sonatypeOssDistMgmtSnapshotsUrl>
</properties>

<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-parent</artifactId>
<version>2.2.0</version>
</parent>

<modules>
<module>share-site-creators-repo</module>
<module>share-site-creators-share</module>
</modules>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<!-- This repository is only needed to retrieve Alfresco parent POM. NOTE: This can be removed when/if Alfresco will be on Maven Central -->
<repositories>
<repository>
<id>alfresco-public</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</repository>
<repository>
<id>alfresco-public-snapshots</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
</repository>
</repositories>

<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
30 changes: 3 additions & 27 deletions share-site-creators-repo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.metaversant</groupId>
<artifactId>share-site-creators-repo</artifactId>
<version>0.0.5-SNAPSHOT</version>
<packaging>amp</packaging>

<name>share-site-creators-repo AMP project</name>
<description>Changes the permissions so that only members of a specific group can create sites.</description>
<url>https://github.com/jpotts/share-site-creators</url>

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

<developers>
<developer>
<name>Jeff Potts</name>
<email>info@metaversant.com</email>
<organization>Metaversant Group, Inc.</organization>
<organizationUrl>http://www.metaversant.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/jpotts/share-site-creators.git</connection>
<developerConnection>scm:git:ssh://github.com:jpotts/share-site-creators.git</developerConnection>
<url>http://github.com/jpotts/share-site-creators/tree/master</url>
</scm>

<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-parent</artifactId>
<version>2.2.0</version>
<groupId>com.metaversant</groupId>
<artifactId>share-site-creators</artifactId>
<version>0.0.5-SNAPSHOT</version>
</parent>

<!--
Expand Down
31 changes: 3 additions & 28 deletions share-site-creators-share/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.metaversant</groupId>
<artifactId>share-site-creators-share</artifactId>
<version>0.0.5-SNAPSHOT</version>
<packaging>amp</packaging>

<name>share-site-creators-share AMP project</name>
<description>Hides all &quot;create site&quot; links from all users except those belonging to a specific group.</description>
<url>https://github.com/jpotts/share-site-creators</url>

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

<developers>
<developer>
<name>Jeff Potts</name>
<email>info@metaversant.com</email>
<organization>Metaversant Group, Inc.</organization>
<organizationUrl>http://www.metaversant.com</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/jpotts/share-site-creators.git</connection>
<developerConnection>scm:git:ssh://github.com:jpotts/share-site-creators.git</developerConnection>
<url>http://github.com/jpotts/share-site-creators/tree/master</url>
</scm>

<parent>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-sdk-parent</artifactId>
<version>2.2.0</version>
<groupId>com.metaversant</groupId>
<artifactId>share-site-creators</artifactId>
<version>0.0.5-SNAPSHOT</version>
</parent>

<!--
Expand Down Expand Up @@ -94,7 +70,6 @@
<dependency>
<groupId>org.alfresco.surf</groupId>
<artifactId>spring-surf-api</artifactId>
<version>${dependency.surf.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit 612cc47

Please sign in to comment.