pom.xml 7.52 KB
Newer Older
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
1
2
<?xml version="1.0" encoding="UTF-8"?>
<!--
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
3
Copyright 2015 The CHOReVOLUTION project
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
4

Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
5
6
7
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
8

Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
9
10
11
12
13
14
15
     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
16
17
18
19
20
21
-->
<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>

  <parent>
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
22
    <groupId>eu.chorevolution.idm</groupId>
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
23
    <artifactId>syncope</artifactId>
24
    <version>1.0.1-SNAPSHOT</version>
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
25
26
  </parent>

27
  <name>CHOReVOLUTION IdM: Console</name>
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
28
29
30
  <artifactId>console</artifactId>
  <packaging>war</packaging>

Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
31
32
33
34
  <properties>
    <rootpom.basedir>${basedir}/..</rootpom.basedir>
  </properties>

Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  <dependencies>

    <dependency> 
      <groupId>javax.servlet</groupId> 
      <artifactId>javax.servlet-api</artifactId> 
    </dependency>
    <dependency>
      <groupId>javax.servlet.jsp</groupId>
      <artifactId>javax.servlet.jsp-api</artifactId>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
    </dependency>

    <dependency>
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
51
      <groupId>eu.chorevolution.idm</groupId>
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
52
53
54
55
56
57
58
59
60
      <artifactId>common</artifactId>
      <version>${project.version}</version>
    </dependency>  
    
    <dependency>
      <groupId>org.apache.syncope.client</groupId>
      <artifactId>syncope-client-console</artifactId>
    </dependency>
    
61
62
63
64
65
    <dependency>
      <groupId>eu.chorevolution.idm.ext.choreography</groupId>
      <artifactId>syncope-ext-choreography-client-console</artifactId>
      <version>${project.version}</version>
    </dependency>
66
67
68
69
70
71
72

    <dependency>
      <groupId>eu.chorevolution.idm.ext.ee</groupId>
      <artifactId>syncope-ext-ee-client-console</artifactId>
      <version>${project.version}</version>
    </dependency>

Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-core</artifactId>
    </dependency>
    <dependency>
      <groupId>com.lmax</groupId>
      <artifactId>disruptor</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.logging.log4j</groupId>
      <artifactId>log4j-slf4j-impl</artifactId>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>jcl-over-slf4j</artifactId>
    </dependency>
    
    <dependency>
      <groupId>org.webjars</groupId>
      <artifactId>jquery-ui</artifactId>
    </dependency>
    <dependency>
      <groupId>org.webjars</groupId>
      <artifactId>codemirror</artifactId>
    </dependency>    
Francesco Chicchiricco's avatar
Francesco Chicchiricco committed
111
112
113
114
115
116
117
118
119
120
121
122
123

    <!-- TEST -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.activiti</groupId>
      <artifactId>activiti-webapp-explorer2</artifactId>            
      <type>war</type>
      <scope>test</scope>
    </dependency>
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
  </dependencies>

  <build>
    <finalName>syncope-console</finalName>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <inherited>true</inherited>
        <executions>
          <execution>
            <id>setupActivitiModeler</id>
            <phase>process-resources</phase>
            <configuration>
              <target>
140
                <unzip src="${settings.localRepository}/org/activiti/activiti-webapp-explorer2/${activiti.version}/activiti-webapp-explorer2-${activiti.version}.war" dest="${project.build.directory}/activiti-webapp-explorer2" />
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
141
142
                
                <mkdir dir="${activiti-modeler.directory}" />
143
144
145
                <copy file="${project.build.directory}/activiti-webapp-explorer2/modeler.html" todir="${activiti-modeler.directory}" />
                <replace file="${activiti-modeler.directory}/modeler.html" token="&lt;/head&gt;" value="&lt;script type=&quot;text/javascript&quot;&gt;window.onunload = refreshParent; function refreshParent() { window.opener.location.reload(); }&lt;/script&gt;&lt;/head&gt;" />
                <copy file="${project.build.directory}/activiti-webapp-explorer2/WEB-INF/classes/stencilset.json" todir="${activiti-modeler.directory}" />
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
146
147
148
149
150

                <mkdir dir="${activiti-modeler.directory}/editor-app" />
                <copy todir="${activiti-modeler.directory}/editor-app">
                  <fileset dir="${project.build.directory}/activiti-webapp-explorer2/editor-app" />                  
                </copy>
151
152
153
154
155
                <replaceregexp file="${activiti-modeler.directory}/editor-app/editor/oryx.debug.js" match="ORYX.CONFIG.ROOT_PATH =.*&quot;editor/&quot;; //TODO: Remove last slash!!" replace="BASE_PATH = window.location.toString().substr(0, window.location.toString().indexOf('/wicket')); ORYX.CONFIG.ROOT_PATH = BASE_PATH + &quot;/activiti-modeler/editor-app/editor/&quot;;" byline="true" />
                <replace file="${activiti-modeler.directory}/editor-app/editor/oryx.debug.js" token="new Ajax.Request(ACTIVITI.CONFIG.contextRoot + '/editor/stencilset?version=' + Date.now(), {" value="new Ajax.Request(window.location.toString().substr(0, window.location.toString().indexOf('/activiti-modeler')) + &quot;/activiti-modeler/stencilset.json&quot;, {" />
                <replace file="${activiti-modeler.directory}/editor-app/editor/oryx.debug.js" token="ORYX.Editor.createByUrl(modelUrl);" value="modelUrl = BASE_PATH + &quot;/workflowDefGET&quot;; ORYX.Editor.createByUrl(modelUrl);" />
                <replace file="${activiti-modeler.directory}/editor-app/editor/oryx.debug.js" token="ORYX.Editor.createByUrl = function(modelUrl){" value="modelUrl = BASE_PATH + &quot;/workflowDefGET&quot;; ORYX.Editor.createByUrl = function(modelUrl){" />                
                <replace file="${activiti-modeler.directory}/editor-app/configuration/toolbar-default-actions.js" token="window.location.href = &quot;./&quot;;" value="window.close();" />
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
156
                                               
157
158
                <copy file="${basedir}/src/main/resources/url-config.js" todir="${activiti-modeler.directory}/editor-app/configuration" overwrite="true" />
                <copy file="${basedir}/src/main/resources/save-model.html" todir="${activiti-modeler.directory}/editor-app/popups" overwrite="true" />
Francesco Chicchiriccò's avatar
Francesco Chicchiriccò committed
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
              </target>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>

    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>
  </build>
</project>