ow-nuxeo 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/archetype/pom.xml +35 -0
- data/archetype/src/main/resources/META-INF/maven/archetype-metadata.xml +131 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/pom.xml +17 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/META-INF/MANIFEST.MF +7 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/deployment-fragment.xml +15 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/version-display-contrib.xml +10 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/test/resources/log4j.properties +12 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/assembly.xml +40 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/pom.xml +61 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install.xml +15 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install/templates/__rootArtifactId__-default/nuxeo.defaults +10 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/package.xml +19 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml +28 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/META-INF/MANIFEST.MF +6 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/deployment-fragment.xml +32 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/l10n/messages.properties +0 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/seam.properties +0 -0
- data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/test/resources/log4j.properties +12 -0
- data/archetype/src/main/resources/archetype-resources/nuxeo-config.default.rb +6 -0
- data/archetype/src/main/resources/archetype-resources/nuxeo-config.rb +6 -0
- data/archetype/src/main/resources/archetype-resources/pom.xml +206 -0
- data/archetype/src/main/resources/archetype-resources/settings.xml.part +41 -0
- data/bin/ow-nuxeo +164 -18
- metadata +27 -6
data/archetype/pom.xml
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
4
|
+
<groupId>fr.openwide.nuxeo</groupId>
|
5
|
+
<artifactId>openwide-nuxeo-archetype</artifactId>
|
6
|
+
<name>Open Wide Nuxeo Archetype</name>
|
7
|
+
<version>1.0.0-SNAPSHOT</version>
|
8
|
+
|
9
|
+
<properties>
|
10
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
11
|
+
</properties>
|
12
|
+
|
13
|
+
<build>
|
14
|
+
<plugins>
|
15
|
+
<plugin>
|
16
|
+
<groupId>org.apache.maven.plugins</groupId>
|
17
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
18
|
+
<configuration>
|
19
|
+
<source>1.6</source>
|
20
|
+
<target>1.6</target>
|
21
|
+
</configuration>
|
22
|
+
</plugin>
|
23
|
+
</plugins>
|
24
|
+
</build>
|
25
|
+
|
26
|
+
<developers>
|
27
|
+
<developer>
|
28
|
+
<id>mkalam-alami</id>
|
29
|
+
<name>Marwane Kalam-Alami</name>
|
30
|
+
<email>marwane.kalam-alami@openwide.fr</email>
|
31
|
+
<organization>Open Wide</organization>
|
32
|
+
</developer>
|
33
|
+
</developers>
|
34
|
+
|
35
|
+
</project>
|
@@ -0,0 +1,131 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<archetype-descriptor
|
3
|
+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
|
4
|
+
name="service-parent" xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
|
5
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
6
|
+
|
7
|
+
<requiredProperties>
|
8
|
+
<!-- Maven info -->
|
9
|
+
<requiredProperty key="version">
|
10
|
+
<defaultValue>0.0.0-SNAPSHOT</defaultValue>
|
11
|
+
</requiredProperty>
|
12
|
+
<requiredProperty key="nuxeoVersion">
|
13
|
+
<defaultValue>5.6.0-HF20</defaultValue>
|
14
|
+
</requiredProperty>
|
15
|
+
<requiredProperty key="name">
|
16
|
+
<defaultValue>${artifactId}</defaultValue>
|
17
|
+
</requiredProperty>
|
18
|
+
|
19
|
+
<!-- Nuxeo info -->
|
20
|
+
<requiredProperty key="nuxeoModuleId">
|
21
|
+
<defaultValue>${groupId}.${artifactId}</defaultValue>
|
22
|
+
</requiredProperty>
|
23
|
+
<requiredProperty key="vendor">
|
24
|
+
<defaultValue>${artifactId}</defaultValue>
|
25
|
+
</requiredProperty>
|
26
|
+
|
27
|
+
<!-- Nuxeo Studio info -->
|
28
|
+
<requiredProperty key="hasStudioProject">
|
29
|
+
<defaultValue>false</defaultValue>
|
30
|
+
</requiredProperty>
|
31
|
+
<requiredProperty key="studioProjectGroupId">
|
32
|
+
<defaultValue>nuxeo-studio</defaultValue>
|
33
|
+
</requiredProperty>
|
34
|
+
<requiredProperty key="studioProjectArtifactId">
|
35
|
+
<defaultValue>${artifactId}-studio</defaultValue>
|
36
|
+
</requiredProperty>
|
37
|
+
<requiredProperty key="nuxeoConnectUsername">
|
38
|
+
<defaultValue>YOUR-USERNAME</defaultValue>
|
39
|
+
</requiredProperty>
|
40
|
+
<requiredProperty key="nuxeoConnectPassword">
|
41
|
+
<defaultValue>YOUR-PASSWORD</defaultValue>
|
42
|
+
</requiredProperty>
|
43
|
+
|
44
|
+
<!-- Open Wide-specific info -->
|
45
|
+
<requiredProperty key="isOpenwideProject">
|
46
|
+
<defaultValue>false</defaultValue>
|
47
|
+
</requiredProperty>
|
48
|
+
<requiredProperty key="openwideRepoUsername">
|
49
|
+
<defaultValue>YOUR-USERNAME</defaultValue>
|
50
|
+
</requiredProperty>
|
51
|
+
<requiredProperty key="openwideRepoPassword">
|
52
|
+
<defaultValue>YOUR-PASSWORD</defaultValue>
|
53
|
+
</requiredProperty>
|
54
|
+
</requiredProperties>
|
55
|
+
|
56
|
+
<fileSets>
|
57
|
+
<fileSet filtered="true" encoding="UTF-8">
|
58
|
+
<directory></directory>
|
59
|
+
<includes>
|
60
|
+
<include>settings.xml.part</include>
|
61
|
+
<include>nuxeo-config.default.rb</include>
|
62
|
+
<include>nuxeo-config.rb</include>
|
63
|
+
<include>.gitignore</include>
|
64
|
+
</includes>
|
65
|
+
</fileSet>
|
66
|
+
<fileSet>
|
67
|
+
<directory>__rootArtifactId__-studio-resources/images</directory>
|
68
|
+
</fileSet>
|
69
|
+
<fileSet>
|
70
|
+
<directory>__rootArtifactId__-studio-resources/widgets</directory>
|
71
|
+
</fileSet>
|
72
|
+
</fileSets>
|
73
|
+
|
74
|
+
<modules>
|
75
|
+
<module id="${rootArtifactId}-core" dir="__rootArtifactId__-core" name="${rootArtifactId} : Core">
|
76
|
+
<fileSets>
|
77
|
+
<fileSet packaged="true" encoding="UTF-8">
|
78
|
+
<directory>src/main/java</directory>
|
79
|
+
</fileSet>
|
80
|
+
<fileSet packaged="true" encoding="UTF-8">
|
81
|
+
<directory>src/test/java</directory>
|
82
|
+
</fileSet>
|
83
|
+
<fileSet filtered="true" encoding="UTF-8">
|
84
|
+
<directory>src/</directory>
|
85
|
+
<includes>
|
86
|
+
<include>**/*.*</include>
|
87
|
+
</includes>
|
88
|
+
</fileSet>
|
89
|
+
</fileSets>
|
90
|
+
</module>
|
91
|
+
<module id="${rootArtifactId}-web" dir="__rootArtifactId__-web" name="${rootArtifactId} : Web">
|
92
|
+
<fileSets>
|
93
|
+
<fileSet packaged="true" encoding="UTF-8">
|
94
|
+
<directory>src/main/java</directory>
|
95
|
+
</fileSet>
|
96
|
+
<fileSet packaged="true" encoding="UTF-8">
|
97
|
+
<directory>src/test/java</directory>
|
98
|
+
</fileSet>
|
99
|
+
<fileSet filtered="true" encoding="UTF-8">
|
100
|
+
<directory>src/</directory>
|
101
|
+
<includes>
|
102
|
+
<include>**/*.*</include>
|
103
|
+
</includes>
|
104
|
+
</fileSet>
|
105
|
+
<fileSet>
|
106
|
+
<directory>src/main/resources/web/nuxeo.war</directory>
|
107
|
+
</fileSet>
|
108
|
+
</fileSets>
|
109
|
+
</module>
|
110
|
+
<module id="${rootArtifactId}-distribution" dir="__rootArtifactId__-distribution" name="${rootArtifactId} : Marketplace distribution">
|
111
|
+
<fileSets>
|
112
|
+
<fileSet filtered="true" encoding="UTF-8">
|
113
|
+
<directory></directory>
|
114
|
+
<includes>
|
115
|
+
<include>assembly.xml</include>
|
116
|
+
</includes>
|
117
|
+
</fileSet>
|
118
|
+
<fileSet filtered="true" encoding="UTF-8">
|
119
|
+
<directory>src/</directory>
|
120
|
+
<includes>
|
121
|
+
<include>**/*.*</include>
|
122
|
+
</includes>
|
123
|
+
</fileSet>
|
124
|
+
<fileSet>
|
125
|
+
<directory>src/main/resources/install/templates/__rootArtifactId__-default/config</directory>
|
126
|
+
</fileSet>
|
127
|
+
</fileSets>
|
128
|
+
</module>
|
129
|
+
</modules>
|
130
|
+
|
131
|
+
</archetype-descriptor>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
4
|
+
<parent>
|
5
|
+
<groupId>${groupId}</groupId>
|
6
|
+
<artifactId>${rootArtifactId}</artifactId>
|
7
|
+
<version>${version}</version>
|
8
|
+
<relativePath>..</relativePath>
|
9
|
+
</parent>
|
10
|
+
<groupId>${groupId}</groupId>
|
11
|
+
<artifactId>${artifactId}</artifactId>
|
12
|
+
<name>${name} : Core</name>
|
13
|
+
<packaging>jar</packaging>
|
14
|
+
|
15
|
+
<dependencies>
|
16
|
+
</dependencies>
|
17
|
+
</project>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<fragment version="1">
|
3
|
+
|
4
|
+
<!-- Required modules -->
|
5
|
+
#if($hasStudioProject != 'false')
|
6
|
+
<require>studio.extensions.${studioProjectName}</require>
|
7
|
+
|
8
|
+
#end<!-- Module registration -->
|
9
|
+
<extension target="application#MODULE">
|
10
|
+
<module>
|
11
|
+
<ejb>${bundle.fileName}</ejb>
|
12
|
+
</module>
|
13
|
+
</extension>
|
14
|
+
|
15
|
+
</fragment>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<component name="${moduleId}.core.version">
|
2
|
+
|
3
|
+
<extension target="fr.openwide.commons.utils.jsf.VersionDisplayService" point="config">
|
4
|
+
<config>
|
5
|
+
<versionNumberPrefix>${name} v</versionNumberPrefix>
|
6
|
+
<bundleMatchRegexp>${artifactId}-.*</bundleMatchRegexp>
|
7
|
+
</config>
|
8
|
+
</extension>
|
9
|
+
|
10
|
+
</component>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#------------------------------------------------------------------------------
|
2
|
+
# Logging configuration
|
3
|
+
#------------------------------------------------------------------------------
|
4
|
+
log4j.rootCategory=WARN, console
|
5
|
+
log4j.logger.${groupId}=DEBUG
|
6
|
+
|
7
|
+
#------------------------------------------------------------------------------
|
8
|
+
# Console appender
|
9
|
+
#------------------------------------------------------------------------------
|
10
|
+
log4j.appender.console = org.apache.log4j.ConsoleAppender
|
11
|
+
log4j.appender.console.layout = org.apache.log4j.PatternLayout
|
12
|
+
log4j.appender.console.layout.ConversionPattern = %5p [%c{1}] %m%n
|
data/archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/assembly.xml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
<project name="nuxeo-assembly" default="build" xmlns:nx="urn:nuxeo-build" xmlns:artifact="urn:nuxeo-artifact">
|
2
|
+
<taskdef resource="org/nuxeo/build/antlib.xml" uri="urn:nuxeo-build" />
|
3
|
+
<taskdef resource="org/nuxeo/build/artifact/antlib.xml" uri="urn:nuxeo-artifact" />
|
4
|
+
|
5
|
+
<property name="outdir" value="${maven.project.build.directory}" />
|
6
|
+
|
7
|
+
<target name="build" description="Build Marketplace package">
|
8
|
+
<!-- Set up package base -->
|
9
|
+
<tstamp />
|
10
|
+
<delete failonerror="false" dir="${outdir}/marketplace" />
|
11
|
+
<mkdir dir="${outdir}/marketplace" />
|
12
|
+
<copy todir="${outdir}/marketplace">
|
13
|
+
<fileset dir="src/main/resources" />
|
14
|
+
<filterset>
|
15
|
+
<filter token="VERSION" value="${${nuxeoModuleId}.version}" />
|
16
|
+
<filter token="DISTRIB_VERSION" value="${nuxeo.version}" />
|
17
|
+
</filterset>
|
18
|
+
</copy>
|
19
|
+
|
20
|
+
<!-- Add package bundles -->
|
21
|
+
<copy todir="${outdir}/marketplace/install/bundles">
|
22
|
+
<artifact:resolveFile key="fr.openwide.nuxeo.commons:openwide-nuxeo-constants::jar" />
|
23
|
+
<artifact:resolveFile key="fr.openwide.nuxeo.commons:openwide-nuxeo-utils::jar" />
|
24
|
+
#if($hasStudioProject != 'false')<artifact:resolveFile key="${studioProjectGroupId}:${studioProjectArtifactId}::jar" />#end
|
25
|
+
<artifact:resolveFile key="${groupId}:${rootArtifactId}-core::jar" />
|
26
|
+
<artifact:resolveFile key="${groupId}:${rootArtifactId}-web::jar" />
|
27
|
+
</copy>
|
28
|
+
|
29
|
+
<!-- Add package libraries -->
|
30
|
+
<mkdir dir="${outdir}/marketplace/install/lib" />
|
31
|
+
<!-- <copy todir="${outdir}/marketplace/install/lib">
|
32
|
+
<artifact:resolveFile key="..." />
|
33
|
+
</copy>-->
|
34
|
+
|
35
|
+
<!-- Zip package -->
|
36
|
+
<zip destfile="${outdir}/${maven.project.artifactId}-${${nuxeoModuleId}.version}.zip" basedir="${outdir}/marketplace" />
|
37
|
+
<artifact:attach file="${outdir}/${maven.project.artifactId}-${${nuxeoModuleId}.version}.zip" target="${maven.project.groupId}:${maven.project.artifactId}" type="zip" />
|
38
|
+
</target>
|
39
|
+
|
40
|
+
</project>
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
4
|
+
<parent>
|
5
|
+
<groupId>${groupId}</groupId>
|
6
|
+
<artifactId>${rootArtifactId}</artifactId>
|
7
|
+
<version>${version}</version>
|
8
|
+
<relativePath>..</relativePath>
|
9
|
+
</parent>
|
10
|
+
<groupId>${groupId}</groupId>
|
11
|
+
<artifactId>${artifactId}</artifactId>
|
12
|
+
<name>${name} : Marketplace distribution</name>
|
13
|
+
<packaging>zip</packaging>
|
14
|
+
|
15
|
+
<dependencyManagement>
|
16
|
+
<dependencies>
|
17
|
+
<dependency>
|
18
|
+
<groupId>org.nuxeo.ecm.distribution</groupId>
|
19
|
+
<artifactId>nuxeo-distribution-tomcat</artifactId>
|
20
|
+
<version>${nuxeo.version}</version>
|
21
|
+
<type>zip</type>
|
22
|
+
<classifier>nuxeo-cap</classifier>
|
23
|
+
<scope>compile</scope>
|
24
|
+
</dependency>
|
25
|
+
</dependencies>
|
26
|
+
</dependencyManagement>
|
27
|
+
|
28
|
+
<build>
|
29
|
+
<plugins>
|
30
|
+
<plugin>
|
31
|
+
<groupId>org.nuxeo.build</groupId>
|
32
|
+
<artifactId>nuxeo-distribution-tools</artifactId>
|
33
|
+
<configuration>
|
34
|
+
<buildFiles>
|
35
|
+
<buildFile>${basedir}/assembly.xml</buildFile>
|
36
|
+
</buildFiles>
|
37
|
+
</configuration>
|
38
|
+
</plugin>
|
39
|
+
<plugin>
|
40
|
+
<groupId>org.apache.maven.plugins</groupId>
|
41
|
+
<artifactId>maven-enforcer-plugin</artifactId>
|
42
|
+
<executions>
|
43
|
+
<execution>
|
44
|
+
<id>enforce-versions</id>
|
45
|
+
<goals>
|
46
|
+
<goal>enforce</goal>
|
47
|
+
</goals>
|
48
|
+
<configuration>
|
49
|
+
<rules>
|
50
|
+
<requireMavenVersion>
|
51
|
+
<version>[2.2.1,3.1)</version>
|
52
|
+
</requireMavenVersion>
|
53
|
+
</rules>
|
54
|
+
</configuration>
|
55
|
+
</execution>
|
56
|
+
</executions>
|
57
|
+
</plugin>
|
58
|
+
</plugins>
|
59
|
+
</build>
|
60
|
+
|
61
|
+
</project>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- See documentation at http://doc.nuxeo.com/x/IgIz -->
|
2
|
+
<install>
|
3
|
+
<!-- Bundles to install -->
|
4
|
+
<update file="${package.root}/install/bundles" todir="${env.bundles}" />
|
5
|
+
|
6
|
+
<!-- Bundles to delete
|
7
|
+
<delete file="${env.bundles}/nuxeo-platform-...-@DISTRIB_VERSION@.jar"/> -->
|
8
|
+
|
9
|
+
<!-- Libraries to install -->
|
10
|
+
<update file="${package.root}/install/lib" todir="${env.lib}" />
|
11
|
+
|
12
|
+
<!-- Optional: use it if you need your MP to deploy a dedicated template -->
|
13
|
+
<copy dir="${package.root}/install/templates" todir="${env.templates}" overwrite="true" />
|
14
|
+
|
15
|
+
</install>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
## DO NOT EDIT THIS FILE, COPY /templates/${artifactId}-default TO /template/${artifactId} AND ENABLE THE ${artifactId} TEMPLATE ##
|
2
|
+
|
3
|
+
org.nuxeo.ecm.product.name=${name}
|
4
|
+
org.nuxeo.ecm.instance.description=${name}
|
5
|
+
mail.from=no-reply@${artifactId}.com
|
6
|
+
org.nuxeo.ecm.platform.liveedit.config=server
|
7
|
+
org.nuxeo.query.builder.ignored.chars=!#$%&'(),/\\\\:@{|}`^~
|
8
|
+
|
9
|
+
#nuxeo.server.http.port=10000
|
10
|
+
#nuxeo.server.tomcat_admin.port=10001
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!-- See documentation at http://doc.nuxeo.com/x/HgIz -->
|
2
|
+
<package type="addon" name="${artifactId}" version="@VERSION@">
|
3
|
+
<title>${name}</title>
|
4
|
+
<vendor>${vendor}</vendor>
|
5
|
+
|
6
|
+
<installer restart="true" />
|
7
|
+
<uninstaller restart="true" />
|
8
|
+
<nuxeo-validation>none</nuxeo-validation>
|
9
|
+
<production-state>testing</production-state>
|
10
|
+
<supported>false</supported>
|
11
|
+
<platforms>
|
12
|
+
<platform>cap</platform>
|
13
|
+
</platforms>
|
14
|
+
<dependencies>
|
15
|
+
<dependencies>
|
16
|
+
<package>nuxeo-dm</package>
|
17
|
+
</dependencies>
|
18
|
+
</dependencies>
|
19
|
+
</package>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3
|
+
<modelVersion>4.0.0</modelVersion>
|
4
|
+
<parent>
|
5
|
+
<groupId>${groupId}</groupId>
|
6
|
+
<artifactId>${rootArtifactId}</artifactId>
|
7
|
+
<version>${version}</version>
|
8
|
+
<relativePath>..</relativePath>
|
9
|
+
</parent>
|
10
|
+
<groupId>${groupId}</groupId>
|
11
|
+
<artifactId>${artifactId}</artifactId>
|
12
|
+
<name>${name} : Web</name>
|
13
|
+
<packaging>jar</packaging>
|
14
|
+
|
15
|
+
<dependencies>
|
16
|
+
<!-- ${name} -->
|
17
|
+
<dependency>
|
18
|
+
<groupId>${groupId}</groupId>
|
19
|
+
<artifactId>${rootArtifactId}-core</artifactId>
|
20
|
+
</dependency>
|
21
|
+
|
22
|
+
<!-- Nuxeo -->
|
23
|
+
<dependency>
|
24
|
+
<groupId>org.nuxeo.ecm.platform</groupId>
|
25
|
+
<artifactId>nuxeo-platform-webapp-core</artifactId>
|
26
|
+
</dependency>
|
27
|
+
</dependencies>
|
28
|
+
</project>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<?xml version="1.0" ?>
|
2
|
+
<fragment version="1">
|
3
|
+
|
4
|
+
<!-- Required modules -->
|
5
|
+
<require>org.nuxeo.ecm.webapp.ui</require>
|
6
|
+
<require>org.nuxeo.ecm.platform.lang</require>
|
7
|
+
#if($hasStudioProject != 'false')
|
8
|
+
<require>studio.extensions.${studioProjectName}</require>
|
9
|
+
#end
|
10
|
+
<!-- Module registration -->
|
11
|
+
<extension target="application#MODULE">
|
12
|
+
<module>
|
13
|
+
<ejb>${bundle.fileName}</ejb>
|
14
|
+
</module>
|
15
|
+
</extension>
|
16
|
+
|
17
|
+
<install>
|
18
|
+
<!-- Web files deployment -->
|
19
|
+
<unzip from="${bundle.fileName}" to="/" prefix="web">
|
20
|
+
<include>web/nuxeo.war/**</include>
|
21
|
+
</unzip>
|
22
|
+
|
23
|
+
<!-- Traductions deployment -->
|
24
|
+
<delete path="${bundle.fileName}.tmp" />
|
25
|
+
<mkdir path="${bundle.fileName}.tmp" />
|
26
|
+
<unzip from="${bundle.fileName}" to="${bundle.fileName}.tmp" />
|
27
|
+
<append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages.properties"
|
28
|
+
to="nuxeo.war/WEB-INF/classes/messages.properties" addNewLine="true" />
|
29
|
+
<delete path="${bundle.fileName}.tmp" />
|
30
|
+
</install>
|
31
|
+
|
32
|
+
</fragment>
|
File without changes
|
File without changes
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#------------------------------------------------------------------------------
|
2
|
+
# Logging configuration
|
3
|
+
#------------------------------------------------------------------------------
|
4
|
+
log4j.rootCategory=WARN, console
|
5
|
+
log4j.logger.${groupId}=DEBUG
|
6
|
+
|
7
|
+
#------------------------------------------------------------------------------
|
8
|
+
# Console appender
|
9
|
+
#------------------------------------------------------------------------------
|
10
|
+
log4j.appender.console = org.apache.log4j.ConsoleAppender
|
11
|
+
log4j.appender.console.layout = org.apache.log4j.PatternLayout
|
12
|
+
log4j.appender.console.layout.ConversionPattern = %5p [%c{1}] %m%n
|
@@ -0,0 +1,206 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
4
|
+
<modelVersion>4.0.0</modelVersion>
|
5
|
+
<parent>
|
6
|
+
<groupId>org.nuxeo.ecm.platform</groupId>
|
7
|
+
<artifactId>nuxeo-features-parent</artifactId>
|
8
|
+
<version>${nuxeoVersion}</version>
|
9
|
+
</parent>
|
10
|
+
<groupId>${groupId}</groupId>
|
11
|
+
<artifactId>${artifactId}</artifactId>
|
12
|
+
<version>${version}</version>
|
13
|
+
<name>${name}</name>
|
14
|
+
<packaging>pom</packaging>
|
15
|
+
|
16
|
+
<organization>
|
17
|
+
<name>${vendor}</name>
|
18
|
+
</organization>
|
19
|
+
|
20
|
+
<developers>
|
21
|
+
</developers>
|
22
|
+
|
23
|
+
<properties>
|
24
|
+
<${groupId}.version>${project.version}</${groupId}.version>#if($hasStudioProject != 'false')
|
25
|
+
<${groupId}.studio.version>0.0.0-SNAPSHOT</${groupId}.studio.version>#end
|
26
|
+
<nuxeo.version>${nuxeoVersion}</nuxeo.version>
|
27
|
+
<nuxeo.distribution.tools.version>1.11.5</nuxeo.distribution.tools.version>
|
28
|
+
<openwide.nuxeo.commons.version>0.1.2</openwide.nuxeo.commons.version>
|
29
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
30
|
+
</properties>
|
31
|
+
#if($hasStudioProject != 'false')
|
32
|
+
<profiles>
|
33
|
+
<profile>
|
34
|
+
<activation>
|
35
|
+
<property>
|
36
|
+
<name>release</name>
|
37
|
+
</property>
|
38
|
+
</activation>
|
39
|
+
<properties>
|
40
|
+
<${groupId}.studio.version>${project.version}</${groupId}.studio.version>
|
41
|
+
</properties>
|
42
|
+
</profile>
|
43
|
+
</profiles>
|
44
|
+
#end
|
45
|
+
<modules>
|
46
|
+
<module>${artifactId}-core</module>
|
47
|
+
<module>${artifactId}-web</module>
|
48
|
+
<module>${artifactId}-distribution</module>
|
49
|
+
</modules>
|
50
|
+
|
51
|
+
<dependencies>
|
52
|
+
#if($hasStudioProject != 'false')
|
53
|
+
<!-- Studio project -->
|
54
|
+
<dependency>
|
55
|
+
<groupId>${studioProjectGroupId}</groupId>
|
56
|
+
<artifactId>${studioProjectArtifactId}</artifactId>
|
57
|
+
</dependency>
|
58
|
+
|
59
|
+
#end
|
60
|
+
<!-- Open Wide Commons -->
|
61
|
+
<dependency>
|
62
|
+
<groupId>fr.openwide.nuxeo.commons</groupId>
|
63
|
+
<artifactId>openwide-nuxeo-constants</artifactId>
|
64
|
+
</dependency>
|
65
|
+
<dependency>
|
66
|
+
<groupId>fr.openwide.nuxeo.commons</groupId>
|
67
|
+
<artifactId>openwide-nuxeo-utils</artifactId>
|
68
|
+
</dependency>
|
69
|
+
<dependency>
|
70
|
+
<groupId>fr.openwide.nuxeo.commons</groupId>
|
71
|
+
<artifactId>openwide-nuxeo-tests-helper</artifactId>
|
72
|
+
<scope>test</scope>
|
73
|
+
</dependency>
|
74
|
+
|
75
|
+
<!-- Nuxeo -->
|
76
|
+
<dependency>
|
77
|
+
<groupId>org.nuxeo.ecm.core</groupId>
|
78
|
+
<artifactId>nuxeo-core-api</artifactId>
|
79
|
+
</dependency>
|
80
|
+
|
81
|
+
<!-- Nuxeo test framework -->
|
82
|
+
<dependency>
|
83
|
+
<groupId>org.nuxeo.runtime</groupId>
|
84
|
+
<artifactId>nuxeo-runtime-test</artifactId>
|
85
|
+
<scope>test</scope>
|
86
|
+
</dependency>
|
87
|
+
<dependency>
|
88
|
+
<groupId>org.nuxeo.ecm.core</groupId>
|
89
|
+
<artifactId>nuxeo-core-test</artifactId>
|
90
|
+
<scope>test</scope>
|
91
|
+
</dependency>
|
92
|
+
<dependency>
|
93
|
+
<groupId>org.nuxeo.ecm.platform</groupId>
|
94
|
+
<artifactId>nuxeo-features-test</artifactId>
|
95
|
+
<scope>test</scope>
|
96
|
+
</dependency>
|
97
|
+
<dependency>
|
98
|
+
<groupId>org.nuxeo.ecm.platform</groupId>
|
99
|
+
<artifactId>nuxeo-platform-test</artifactId>
|
100
|
+
<scope>test</scope>
|
101
|
+
</dependency>
|
102
|
+
|
103
|
+
<!-- Test libraries -->
|
104
|
+
<dependency>
|
105
|
+
<groupId>junit</groupId>
|
106
|
+
<artifactId>junit</artifactId>
|
107
|
+
<scope>test</scope>
|
108
|
+
</dependency>
|
109
|
+
<dependency>
|
110
|
+
<groupId>com.google.inject</groupId>
|
111
|
+
<artifactId>guice</artifactId>
|
112
|
+
<scope>test</scope>
|
113
|
+
</dependency>
|
114
|
+
<dependency>
|
115
|
+
<groupId>org.mockito</groupId>
|
116
|
+
<artifactId>mockito-all</artifactId>
|
117
|
+
<scope>test</scope>
|
118
|
+
</dependency>
|
119
|
+
</dependencies>
|
120
|
+
|
121
|
+
<dependencyManagement>
|
122
|
+
<dependencies>
|
123
|
+
<!-- ${name} modules -->
|
124
|
+
#if($hasStudioProject != 'false')
|
125
|
+
<dependency>
|
126
|
+
<groupId>${studioProjectGroupId}</groupId>
|
127
|
+
<artifactId>${studioProjectArtifactId}</artifactId>
|
128
|
+
<version>${${groupId}.studio.version}</version>
|
129
|
+
</dependency>
|
130
|
+
|
131
|
+
#end<dependency>
|
132
|
+
<groupId>${groupId}</groupId>
|
133
|
+
<artifactId>${artifactId}-core</artifactId>
|
134
|
+
<version>${${groupId}.version}</version>
|
135
|
+
</dependency>
|
136
|
+
<dependency>
|
137
|
+
<groupId>${groupId}</groupId>
|
138
|
+
<artifactId>${artifactId}-web</artifactId>
|
139
|
+
<version>${${groupId}.version}</version>
|
140
|
+
</dependency>
|
141
|
+
|
142
|
+
<!-- Open Wide commons -->
|
143
|
+
<dependency>
|
144
|
+
<groupId>fr.openwide.nuxeo.commons</groupId>
|
145
|
+
<artifactId>openwide-nuxeo-constants</artifactId>
|
146
|
+
<version>${openwide.nuxeo.commons.version}</version>
|
147
|
+
</dependency>
|
148
|
+
<dependency>
|
149
|
+
<groupId>fr.openwide.nuxeo.commons</groupId>
|
150
|
+
<artifactId>openwide-nuxeo-utils</artifactId>
|
151
|
+
<version>${openwide.nuxeo.commons.version}</version>
|
152
|
+
</dependency>
|
153
|
+
<dependency>
|
154
|
+
<groupId>fr.openwide.nuxeo.commons</groupId>
|
155
|
+
<artifactId>openwide-nuxeo-tests-helper</artifactId>
|
156
|
+
<version>${openwide.nuxeo.commons.version}</version>
|
157
|
+
<scope>test</scope>
|
158
|
+
</dependency>
|
159
|
+
</dependencies>
|
160
|
+
</dependencyManagement>
|
161
|
+
|
162
|
+
<repositories>
|
163
|
+
<repository>
|
164
|
+
<id>nuxeo-public</id>
|
165
|
+
<url>http://maven.nuxeo.org/nexus/content/groups/public</url>
|
166
|
+
<releases>
|
167
|
+
<enabled>true</enabled>
|
168
|
+
</releases>
|
169
|
+
<snapshots>
|
170
|
+
<enabled>false</enabled>
|
171
|
+
</snapshots>
|
172
|
+
</repository>#if($hasStudioProject != 'false')
|
173
|
+
<repository>
|
174
|
+
<id>nuxeo-studio-${artifactId}</id>
|
175
|
+
<url>https://connect.nuxeo.com/nuxeo/site/studio/maven</url>
|
176
|
+
<releases>
|
177
|
+
<enabled>true</enabled>
|
178
|
+
</releases>
|
179
|
+
<snapshots>
|
180
|
+
<enabled>true</enabled>
|
181
|
+
<updatePolicy>always</updatePolicy>
|
182
|
+
</snapshots>
|
183
|
+
</repository>#end#if($isOpenwideProject != 'false')
|
184
|
+
<repository>
|
185
|
+
<id>OWSI-Nuxeo</id>
|
186
|
+
<url>https://projects.openwide.fr/services/nexus/content/repositories/owsi-nuxeo</url>
|
187
|
+
<releases>
|
188
|
+
<enabled>true</enabled>
|
189
|
+
</releases>
|
190
|
+
<snapshots>
|
191
|
+
<enabled>false</enabled>
|
192
|
+
</snapshots>
|
193
|
+
</repository>
|
194
|
+
<repository>
|
195
|
+
<id>OWSI-Nuxeo-Snapshots</id>
|
196
|
+
<url>https://projects.openwide.fr/services/nexus/content/repositories/owsi-nuxeo-snapshots</url>
|
197
|
+
<releases>
|
198
|
+
<enabled>false</enabled>
|
199
|
+
</releases>
|
200
|
+
<snapshots>
|
201
|
+
<enabled>true</enabled>
|
202
|
+
</snapshots>
|
203
|
+
</repository>#end
|
204
|
+
</repositories>
|
205
|
+
|
206
|
+
</project>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
2
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3
|
+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
|
4
|
+
http://maven.apache.org/xsd/settings-1.0.0.xsd">
|
5
|
+
|
6
|
+
<!-- Put these servers in your ~/.m2/settings.xml -->
|
7
|
+
|
8
|
+
<servers>#if($hasStudioProject != 'false')
|
9
|
+
<server>
|
10
|
+
<id>nuxeo-studio-${artifactId}</id>
|
11
|
+
<username>${nuxeoConnectUsername}</username>
|
12
|
+
<password>${nuxeoConnectPassword}</password>
|
13
|
+
</server>#end
|
14
|
+
#if($isOpenwideProject != 'false')
|
15
|
+
<server>
|
16
|
+
<id>OWSI-Nuxeo</id>
|
17
|
+
<username>${openwideRepoUsername}</username>
|
18
|
+
<password>${openwideRepoPassword}</password>
|
19
|
+
</server>
|
20
|
+
<server>
|
21
|
+
<id>OWSI-Nuxeo-Snapshots</id>
|
22
|
+
<username>${openwideRepoUsername}</username>
|
23
|
+
<password>${openwideRepoPassword}</password>
|
24
|
+
</server>
|
25
|
+
<server>
|
26
|
+
<id>OWSI-Proxy-Central</id>
|
27
|
+
<username>${openwideRepoUsername}</username>
|
28
|
+
<password>${openwideRepoPassword}</password>
|
29
|
+
</server>#end
|
30
|
+
</servers>
|
31
|
+
#if($isOpenwideProject != 'false')
|
32
|
+
<mirrors>
|
33
|
+
<mirror>
|
34
|
+
<id>OWSI-Proxy-Central</id>
|
35
|
+
<name>Local proxy of central repo</name>
|
36
|
+
<url>https://projects.openwide.fr/services/nexus/content/repositories/central/</url>
|
37
|
+
<mirrorOf>central</mirrorOf>
|
38
|
+
</mirror>
|
39
|
+
</mirrors>
|
40
|
+
#end
|
41
|
+
</settings>
|
data/bin/ow-nuxeo
CHANGED
@@ -3,21 +3,29 @@
|
|
3
3
|
# WARNING: Script is Linux/Cygwin-dependant
|
4
4
|
|
5
5
|
require 'fileutils'
|
6
|
-
require 'net/http'
|
7
6
|
|
8
|
-
|
9
|
-
require './nuxeo-config.rb'
|
10
|
-
rescue LoadError
|
11
|
-
puts "!!! WARNING: 'nuxeo-config.rb' is missing. Using default config.\n\n"
|
7
|
+
if ARGV[0] != 'init' && ARGV[0] != 'version'
|
12
8
|
begin
|
13
|
-
require './nuxeo-config.
|
9
|
+
require './nuxeo-config.rb'
|
14
10
|
rescue LoadError
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
puts "!!! WARNING: 'nuxeo-config.rb' is missing. Using default config.\n\n"
|
12
|
+
begin
|
13
|
+
require './nuxeo-config.default.rb'
|
14
|
+
rescue LoadError
|
15
|
+
puts "!!! ABORTING: Neither 'nuxeo-config.rb' nor './nuxeo-config.default.rb' was found."
|
16
|
+
puts "Please create them by using the example below. Alternately, you can use 'ow-nuxeo init' to create a new project from scratch."
|
17
|
+
puts ""
|
18
|
+
puts "============="
|
19
|
+
puts "# Nuxeo location"
|
20
|
+
puts "#NUXEO_PATH = '/home/username/nuxeo-cap-5.6.0-tomcat/'"
|
21
|
+
puts ""
|
22
|
+
puts "# Distrib config"
|
23
|
+
puts "MARKETPLACE_PACKAGE_NAME = 'my-project'"
|
24
|
+
puts "MARKETPLACE_PROJECT_PATH = './my-project-distribution'"
|
25
|
+
puts "============="
|
26
|
+
|
27
|
+
exit 0
|
28
|
+
end
|
21
29
|
end
|
22
30
|
end
|
23
31
|
|
@@ -35,21 +43,24 @@ end
|
|
35
43
|
|
36
44
|
def displayHelp()
|
37
45
|
puts '> EXAMPLES'
|
46
|
+
puts 'ow-nuxeo init'
|
38
47
|
puts 'ow-nuxeo build'
|
39
48
|
puts 'ow-nuxeo fastbuild deploy run'
|
40
|
-
puts 'ow-nuxeo
|
49
|
+
puts 'ow-nuxeo setversion 1.0.0'
|
41
50
|
puts 'ow-nuxeo release'
|
42
51
|
puts ''
|
43
52
|
puts '> AVAILABLE GOALS'
|
53
|
+
puts 'init : Starts a wizard to create a new Nuxeo project.'
|
44
54
|
puts 'build : Build with tests.'
|
45
55
|
puts 'fastbuild : Build, skip the tests to go faster'
|
46
56
|
puts 'fastestbuild : Build, skip the tests and run offline to go faster (consequence: won\'t update any SNAPSHOT from remote repos, like NxStudio plugins)'
|
47
57
|
puts 'release : Build with tests and the "release" flag enabled, to enable the use of the tagged NxStudio plugin'
|
48
|
-
puts '
|
58
|
+
puts 'setversion [VERSION] : Updates the modules version. Specify the new version number as the second parameter.'
|
49
59
|
puts 'test : Run the Maven tests only, in debug mode'
|
50
60
|
puts 'deploy : Deploy the marketplace package'
|
51
61
|
puts 'reset : Reset the data of your custom Nuxeo (by deleting the nxserver/data folder, i.e. it only works with Derby/H2)'
|
52
|
-
puts 'run : Runs Nuxeo'
|
62
|
+
puts 'run : Runs Nuxeo in console mode'
|
63
|
+
puts 'version : Displays ow-nuxeo version'
|
53
64
|
puts ''
|
54
65
|
end
|
55
66
|
|
@@ -69,9 +80,12 @@ ARGV.each do |arg|
|
|
69
80
|
when 'fastestbuild'
|
70
81
|
system('mvn clean install -DskipTests=true -o')
|
71
82
|
|
72
|
-
when '
|
73
|
-
|
74
|
-
|
83
|
+
when 'setversion'
|
84
|
+
if !ARGV[1].nil?
|
85
|
+
system('mvn versions:set -DnewVersion=' + ARGV[1])
|
86
|
+
else
|
87
|
+
puts "Usage: ow-nuxeo setversion [VERSION]"
|
88
|
+
end
|
75
89
|
|
76
90
|
when 'release'
|
77
91
|
system('mvn clean install -Drelease')
|
@@ -100,6 +114,138 @@ ARGV.each do |arg|
|
|
100
114
|
puts '> Nothing to delete'
|
101
115
|
end
|
102
116
|
|
117
|
+
when 'version'
|
118
|
+
puts Gem.loaded_specs['ow-nuxeo'].full_name
|
119
|
+
|
120
|
+
when 'init'
|
121
|
+
puts "> Building archetype...\n"
|
122
|
+
archetype_path = File.expand_path(File.dirname(__FILE__) + "/../archetype")
|
123
|
+
FileUtils.cp_r archetype_path, "tmp_archetype"
|
124
|
+
system("mvn clean install -f ./tmp_archetype/pom.xml")
|
125
|
+
FileUtils.rm_r "tmp_archetype"
|
126
|
+
|
127
|
+
puts "\n> Gathering project information...\n\n"
|
128
|
+
projectInfo = {}
|
129
|
+
|
130
|
+
puts "[1/3] MAVEN INFORMATION"
|
131
|
+
puts "======================="
|
132
|
+
while projectInfo['groupId'].to_s == ''
|
133
|
+
print "Maven group ID (example: 'fr.openwide') >> "
|
134
|
+
projectInfo['groupId'] = STDIN.gets.strip
|
135
|
+
end
|
136
|
+
while projectInfo['artifactId'].to_s == ''
|
137
|
+
print "Maven artifact ID (example: 'my-project') >> "
|
138
|
+
projectInfo['artifactId'] = STDIN.gets.strip
|
139
|
+
end
|
140
|
+
while projectInfo['name'].to_s == ''
|
141
|
+
print "Project name (example: 'My Project') >> "
|
142
|
+
projectInfo['name'] = STDIN.gets.strip
|
143
|
+
end
|
144
|
+
|
145
|
+
puts "\n[2/3] NUXEO INFORMATION"
|
146
|
+
puts "======================="
|
147
|
+
defaultModuleId = projectInfo['groupId'] + '.' + projectInfo['artifactId']
|
148
|
+
print "[OPTIONAL] Module ID (default is '" + defaultModuleId + "') >> "
|
149
|
+
projectInfo['nuxeoModuleId'] = STDIN.gets.strip
|
150
|
+
if projectInfo['nuxeoModuleId'].to_s == ''
|
151
|
+
projectInfo['nuxeoModuleId'] = defaultModuleId
|
152
|
+
end
|
153
|
+
defaultVendor = projectInfo['artifactId']
|
154
|
+
print "[OPTIONAL] Vendor (default is '" + defaultVendor + "') >> "
|
155
|
+
projectInfo['vendor'] = STDIN.gets.strip
|
156
|
+
if projectInfo['vendor'].to_s == ''
|
157
|
+
projectInfo['vendor'] = defaultVendor
|
158
|
+
end
|
159
|
+
print "[OPTIONAL] Are you using a Nuxeo Studio project? (y/n, default is 'n') >> "
|
160
|
+
projectInfo['hasStudioProject'] = STDIN.gets.strip
|
161
|
+
case projectInfo['hasStudioProject']
|
162
|
+
when 'y'
|
163
|
+
projectInfo['hasStudioProject'] = 'true'
|
164
|
+
else
|
165
|
+
projectInfo['hasStudioProject'] = 'false'
|
166
|
+
end
|
167
|
+
if projectInfo['hasStudioProject'] == 'true'
|
168
|
+
puts "\nPlease look at your project's settings in Studio for the following variables."
|
169
|
+
while projectInfo['studioProjectArtifactId'].to_s == ''
|
170
|
+
print "Studio project ID (example: 'my-project-studio') >> "
|
171
|
+
projectInfo['studioProjectArtifactId'] = STDIN.gets.strip
|
172
|
+
end
|
173
|
+
while projectInfo['studioProjectGroupId'].to_s == ''
|
174
|
+
print "Studio project group ID (example: 'nuxeo-studio') >> "
|
175
|
+
projectInfo['studioProjectGroupId'] = STDIN.gets.strip
|
176
|
+
end
|
177
|
+
|
178
|
+
puts "\nThe following variables are used to generate a sample ~/.m2/settings.xml."
|
179
|
+
print "[OPTIONAL] Nuxeo Connect username >> "
|
180
|
+
projectInfo['nuxeoConnectUsername'] = STDIN.gets.strip
|
181
|
+
if !projectInfo['nuxeoConnectUsername'].nil?
|
182
|
+
print "[OPTIONAL] Nuxeo Connect password >> "
|
183
|
+
projectInfo['nuxeoConnectPassword'] = STDIN.gets.strip
|
184
|
+
end
|
185
|
+
else
|
186
|
+
projectInfo['nuxeoConnectUsername'] = '';
|
187
|
+
projectInfo['nuxeoConnectPassword'] = '';
|
188
|
+
end
|
189
|
+
|
190
|
+
puts "\n\n[3/3] OPEN-WIDE INFORMATION"
|
191
|
+
puts "==========================="
|
192
|
+
print "Is this an Open Wide project? (y/n, default is 'n') >> "
|
193
|
+
projectInfo['isOpenwideProject'] = STDIN.gets.strip
|
194
|
+
projectInfo['isOpenwideProject'] = (projectInfo['isOpenwideProject'].downcase == 'y') ? 'true' : 'false'
|
195
|
+
if projectInfo['isOpenwideProject'] == 'true'
|
196
|
+
puts "\nThe following variables are used to generate a sample ~/.m2/settings.xml."
|
197
|
+
print "[OPTIONAL] Open Wide Maven username >> "
|
198
|
+
projectInfo['openwideRepoUsername'] = STDIN.gets.strip
|
199
|
+
if !projectInfo['openwideRepoUsername'].nil?
|
200
|
+
print "[OPTIONAL] Open Wide Maven password >> "
|
201
|
+
projectInfo['openwideRepoPassword'] = STDIN.gets.strip
|
202
|
+
end
|
203
|
+
else
|
204
|
+
projectInfo['openwideRepoUsername'] = '';
|
205
|
+
projectInfo['openwideRepoPassword'] = '';
|
206
|
+
puts "\nWARNING: The generated projects will references some 'openwide-nuxeo-commons' libraries, which are not published in Maven central yet."
|
207
|
+
puts "You will have to download and build them from https://github.com/Open-Wide/openwide-nuxeo-commons."
|
208
|
+
print "(press ENTER) >> "
|
209
|
+
STDIN.gets
|
210
|
+
end
|
211
|
+
|
212
|
+
puts "\n\nSUMMARY"
|
213
|
+
puts "======="
|
214
|
+
puts "Is everything correct? Press ENTER to continue, or type 'variable_name new_value' to change any value (eg. 'name my-project').\n"
|
215
|
+
begin
|
216
|
+
puts "------------"
|
217
|
+
for key, value in projectInfo.each
|
218
|
+
puts key + "=" + value.to_s
|
219
|
+
end
|
220
|
+
puts "------------"
|
221
|
+
print ">> "
|
222
|
+
confirm = STDIN.gets.strip
|
223
|
+
if confirm.to_s != ''
|
224
|
+
kv = confirm.split(' ')
|
225
|
+
if !projectInfo[kv[0]].nil?
|
226
|
+
projectInfo[kv[0]] = kv[1]
|
227
|
+
puts "Key " + kv[0] + " updated\n"
|
228
|
+
else
|
229
|
+
puts "Key " + kv[0] + " doesn't exist\n"
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end while confirm.to_s != ''
|
233
|
+
|
234
|
+
puts "\n> Generating project...\n\n"
|
235
|
+
|
236
|
+
generationCommand = "mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=fr.openwide.nuxeo -DarchetypeArtifactId=openwide-nuxeo-archetype -DarchetypeVersion=1.0.0-SNAPSHOT"
|
237
|
+
for key, value in projectInfo.each
|
238
|
+
generationCommand += " -D" + key + "=\"" + value.to_s + "\""
|
239
|
+
end
|
240
|
+
|
241
|
+
puts "\n" + generationCommand + "\n\n"
|
242
|
+
|
243
|
+
system(generationCommand);
|
244
|
+
|
245
|
+
puts "\nCOMPLETED"
|
246
|
+
puts "========="
|
247
|
+
puts "Please edit the Nuxeo path in 'nuxeo-config.rb', then you're ready to go."
|
248
|
+
|
103
249
|
else
|
104
250
|
displayHelp()
|
105
251
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ow-nuxeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,10 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: Eases common tasks with Nuxeo projects, from
|
15
|
-
|
16
|
-
a Nuxeo Marketplace package for distribution.
|
14
|
+
description: Eases common tasks with Nuxeo projects, from instanciating a client project
|
15
|
+
to building and launching it.
|
17
16
|
email: marwane.kalam-alami@openwide.fr
|
18
17
|
executables:
|
19
18
|
- ow-nuxeo
|
@@ -21,6 +20,28 @@ extensions: []
|
|
21
20
|
extra_rdoc_files: []
|
22
21
|
files:
|
23
22
|
- bin/ow-nuxeo
|
23
|
+
- archetype/pom.xml
|
24
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/assembly.xml
|
25
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/pom.xml
|
26
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install/templates/__rootArtifactId__-default/nuxeo.defaults
|
27
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/package.xml
|
28
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-distribution/src/main/resources/install.xml
|
29
|
+
- archetype/src/main/resources/archetype-resources/nuxeo-config.default.rb
|
30
|
+
- archetype/src/main/resources/archetype-resources/nuxeo-config.rb
|
31
|
+
- archetype/src/main/resources/archetype-resources/settings.xml.part
|
32
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/pom.xml
|
33
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/l10n/messages.properties
|
34
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/OSGI-INF/deployment-fragment.xml
|
35
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/META-INF/MANIFEST.MF
|
36
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/main/resources/seam.properties
|
37
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-web/src/test/resources/log4j.properties
|
38
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/pom.xml
|
39
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/version-display-contrib.xml
|
40
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/OSGI-INF/deployment-fragment.xml
|
41
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/main/resources/META-INF/MANIFEST.MF
|
42
|
+
- archetype/src/main/resources/archetype-resources/__rootArtifactId__-core/src/test/resources/log4j.properties
|
43
|
+
- archetype/src/main/resources/archetype-resources/pom.xml
|
44
|
+
- archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
|
24
45
|
homepage: http://rubygems.org/gems/ow-nuxeo
|
25
46
|
licenses: []
|
26
47
|
post_install_message:
|
@@ -44,5 +65,5 @@ rubyforge_project:
|
|
44
65
|
rubygems_version: 1.8.23
|
45
66
|
signing_key:
|
46
67
|
specification_version: 3
|
47
|
-
summary: A script for
|
68
|
+
summary: A script for creating and manipulating Nuxeo projects
|
48
69
|
test_files: []
|