[SYNCOPE-1041] Support for archetype
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/f2a12f57 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/f2a12f57 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/f2a12f57 Branch: refs/heads/2_0_X Commit: f2a12f57cde15601f030eb57c08ffc530a987532 Parents: 1477411 Author: Francesco Chicchiriccò <[email protected]> Authored: Fri Mar 24 16:43:07 2017 +0100 Committer: Francesco Chicchiriccò <[email protected]> Committed: Fri Mar 31 15:25:11 2017 +0200 ---------------------------------------------------------------------- archetype/pom.xml | 17 +++++++++++++ .../archetype-resources/console/pom.xml | 19 +++++++++++++++ .../resources/archetype-resources/core/pom.xml | 21 ++++++++++++++++ .../archetype-resources/enduser/pom.xml | 25 ++++++++++++++++++++ 4 files changed, 82 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/f2a12f57/archetype/pom.xml ---------------------------------------------------------------------- diff --git a/archetype/pom.xml b/archetype/pom.xml index 44b2ebc..d90e125 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -202,6 +202,7 @@ under the License. <targetPath>${project.build.outputDirectory}/archetype-resources/core/src/test/resources</targetPath> <includes> <include>addActivitiToContent.xsl</include> + <include>keystore</include> </includes> </resource> @@ -213,6 +214,13 @@ under the License. </includes> </resource> <resource> + <directory>../ext/saml2sp/agent/src/main/resources</directory> + <targetPath>${project.build.outputDirectory}/archetype-resources/console/src/main/resources/all</targetPath> + <includes> + <include>saml2sp-agent.properties</include> + </includes> + </resource> + <resource> <directory>../fit/console-reference/src/main/resources</directory> <targetPath>${project.build.outputDirectory}/archetype-resources/console/src/main/resources</targetPath> <includes> @@ -226,6 +234,7 @@ under the License. <targetPath>${project.build.outputDirectory}/archetype-resources/console/src/test/resources</targetPath> <includes> <include>console.properties</include> + <include>saml2sp-agent.properties</include> </includes> </resource> <resource> @@ -241,6 +250,13 @@ under the License. </includes> </resource> <resource> + <directory>../ext/saml2sp/agent/src/main/resources</directory> + <targetPath>${project.build.outputDirectory}/archetype-resources/enduser/src/main/resources/all</targetPath> + <includes> + <include>saml2sp-agent.properties</include> + </includes> + </resource> + <resource> <directory>../client/enduser/src/main/resources/META-INF/resources/app</directory> <targetPath>${project.build.outputDirectory}/archetype-resources/enduser/src/main/webapp/app</targetPath> </resource> @@ -256,6 +272,7 @@ under the License. <targetPath>${project.build.outputDirectory}/archetype-resources/enduser/src/test/resources</targetPath> <includes> <include>enduser.properties</include> + <include>saml2sp-agent.properties</include> </includes> </resource> <resource> http://git-wip-us.apache.org/repos/asf/syncope/blob/f2a12f57/archetype/src/main/resources/archetype-resources/console/pom.xml ---------------------------------------------------------------------- diff --git a/archetype/src/main/resources/archetype-resources/console/pom.xml b/archetype/src/main/resources/archetype-resources/console/pom.xml index 4102c4e..111e262 100644 --- a/archetype/src/main/resources/archetype-resources/console/pom.xml +++ b/archetype/src/main/resources/archetype-resources/console/pom.xml @@ -202,7 +202,26 @@ ORYX.Editor.createByUrl = function(modelUrl){"/> <artifactId>syncope-ext-camel-client-console</artifactId> <version>${syncope.version}</version> </dependency> + + <dependency> + <groupId>org.apache.syncope.ext.saml2sp</groupId> + <artifactId>syncope-ext-saml2sp-client-console</artifactId> + <version>${syncope.version}</version> + </dependency> </dependencies> + + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/all</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> </profile> </profiles> </project> http://git-wip-us.apache.org/repos/asf/syncope/blob/f2a12f57/archetype/src/main/resources/archetype-resources/core/pom.xml ---------------------------------------------------------------------- diff --git a/archetype/src/main/resources/archetype-resources/core/pom.xml b/archetype/src/main/resources/archetype-resources/core/pom.xml index 24f7f19..f4ea761 100644 --- a/archetype/src/main/resources/archetype-resources/core/pom.xml +++ b/archetype/src/main/resources/archetype-resources/core/pom.xml @@ -140,6 +140,16 @@ under the License. <testResource> <directory>src/test/resources</directory> <filtering>true</filtering> + <excludes> + <exclude>keystore</exclude> + </excludes> + </testResource> + <testResource> + <directory>src/test/resources</directory> + <filtering>false</filtering> + <includes> + <include>keystore</include> + </includes> </testResource> </testResources> </build> @@ -172,6 +182,17 @@ under the License. </dependency> <dependency> + <groupId>org.apache.syncope.ext.saml2sp</groupId> + <artifactId>syncope-ext-saml2sp-rest-cxf</artifactId> + <version>${syncope.version}</version> + </dependency> + <dependency> + <groupId>org.apache.syncope.ext.saml2sp</groupId> + <artifactId>syncope-ext-saml2sp-persistence-jpa</artifactId> + <version>${syncope.version}</version> + </dependency> + + <dependency> <groupId>org.apache.syncope.ext</groupId> <artifactId>syncope-ext-swagger-ui</artifactId> <version>${syncope.version}</version> http://git-wip-us.apache.org/repos/asf/syncope/blob/f2a12f57/archetype/src/main/resources/archetype-resources/enduser/pom.xml ---------------------------------------------------------------------- diff --git a/archetype/src/main/resources/archetype-resources/enduser/pom.xml b/archetype/src/main/resources/archetype-resources/enduser/pom.xml index 2f7f2a6..4adb696 100644 --- a/archetype/src/main/resources/archetype-resources/enduser/pom.xml +++ b/archetype/src/main/resources/archetype-resources/enduser/pom.xml @@ -293,5 +293,30 @@ under the License. </plugins> </build> </profile> + + <profile> + <id>all</id> + + <dependencies> + <dependency> + <groupId>org.apache.syncope.ext.saml2sp</groupId> + <artifactId>syncope-ext-saml2sp-client-enduser</artifactId> + <version>${syncope.version}</version> + </dependency> + </dependencies> + + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/resources/all</directory> + <filtering>true</filtering> + </resource> + </resources> + </build> + </profile> </profiles> </project>
