Revision 690
org.gvsig.maven.base/trunk/org.gvsig.maven.base/org.gvsig.maven.base.build/src/main/resources/org.gvsig.maven.base.build/prepare-workspace/prepare-workspace.xml | ||
---|---|---|
9 | 9 |
|
10 | 10 |
<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" /> |
11 | 11 |
|
12 |
<taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask" classpath="${workspace.basedir}/org.gvsig.maven.base.build/antelopetasks-3.2.10.jar" /> |
|
13 |
|
|
12 | 14 |
<target name="check-maven-base-build-available"> |
13 | 15 |
<available file="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" property="maven-base-build-available" /> |
14 | 16 |
</target> |
15 | 17 |
|
16 | 18 |
<target name="get-maven-base-build-local" depends="check-maven-base-build-available" if="maven-base-build-available"> |
17 |
<!-- Unzip de build jar file from the maven repository into the workspace root folder --> |
|
19 |
<!-- Unzip de build jar file from the maven repository into the workspace |
|
20 |
root folder --> |
|
18 | 21 |
<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false"> |
19 | 22 |
<zipfileset src="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}"> |
20 | 23 |
<patternset> |
... | ... | |
55 | 58 |
|
56 | 59 |
<target name="check.gvsig.platform.properties" depends="find.gvsig.platform.properties.file"> |
57 | 60 |
<fail if="depends.natives.file.exists" unless="gvsig.platform.exists"> |
58 |
ERROR!! |
|
59 |
|
|
60 |
You have to define your gvSIG platform properties, |
|
61 |
by creating the file: ${user.home}/.gvsig.platform.properties |
|
62 |
with the following content: |
|
61 |
ERROR!! |
|
63 | 62 |
|
64 |
native_platform=linux |
|
65 |
native_distribution=all |
|
66 |
native_compiler=gcc4 |
|
67 |
native_arch=i386 |
|
68 |
native_libraryType=dynamic |
|
69 |
export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType} |
|
63 |
You have to define your gvSIG platform properties, |
|
64 |
by creating the file: ${user.home}/.gvsig.platform.properties |
|
65 |
with the following content: |
|
70 | 66 |
|
71 |
Replace the fifth initial variables values with the ones appropiate |
|
72 |
to your platform. |
|
73 |
|
|
74 |
If you use maven in the command line, you can use the previous file also |
|
75 |
to define the MAVEN_OPTS environment variable, by adding to your |
|
76 |
.bash_rc file something like this: |
|
67 |
native_platform=linux |
|
68 |
native_distribution=all |
|
69 |
native_compiler=gcc4 |
|
70 |
native_arch=i386 |
|
71 |
native_libraryType=dynamic |
|
72 |
export |
|
73 |
native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType} |
|
77 | 74 |
|
78 |
if [ -f "${HOME}/.gvsig.platform.properties" ] |
|
79 |
then |
|
80 |
. ${HOME}/.gvsig.platform.properties |
|
81 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m -Dnative-classifier=${native_classifier}" |
|
82 |
else |
|
83 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m" |
|
84 |
fi |
|
75 |
Replace the fifth initial variables values with the ones appropiate |
|
76 |
to your platform. |
|
85 | 77 |
|
86 |
It will work if you use the bash shell. In any other case or platform, you'll |
|
87 |
have to define your MAVEN_OPTS environment variable and set the |
|
88 |
"native-classifier" parameter directly. |
|
78 |
If you use maven in the command line, you can use the previous file |
|
79 |
also |
|
80 |
to define the MAVEN_OPTS environment variable, by adding to your |
|
81 |
.bash_rc file something like this: |
|
82 |
|
|
83 |
if [ -f "${HOME}/.gvsig.platform.properties" ] |
|
84 |
then |
|
85 |
. ${HOME}/.gvsig.platform.properties |
|
86 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m |
|
87 |
-Dnative-classifier=${native_classifier}" |
|
88 |
else |
|
89 |
export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m" |
|
90 |
fi |
|
91 |
|
|
92 |
It will work if you use the bash shell. In any other case or platform, |
|
93 |
you'll |
|
94 |
have to define your MAVEN_OPTS environment variable and set the |
|
95 |
"native-classifier" parameter directly. |
|
89 | 96 |
</fail> |
90 | 97 |
|
91 | 98 |
</target> |
... | ... | |
128 | 135 |
<xmltask source="${user-settings-file-location}" dest="${user-settings-file-location}"> |
129 | 136 |
<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location" /> |
130 | 137 |
</xmltask> |
138 |
<echo>current-gvsig-location = ${current-gvsig-location}</echo> |
|
131 | 139 |
|
140 |
|
|
141 |
<stringutil string="${current-gvsig-location}" property="current-gvsig-location"> |
|
142 |
|
|
143 |
<replace regex="\\" replacement="/" /> |
|
144 |
</stringutil> |
|
145 |
<stringutil string="${workspace.basedir}" property="workspace.basedir"> |
|
146 |
|
|
147 |
<replace regex="\\" replacement="/" /> |
|
148 |
</stringutil> |
|
149 |
|
|
132 | 150 |
<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" /> |
133 | 151 |
<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" /> |
134 | 152 |
|
135 | 153 |
<!-- Compile, install and generate eclipse projects --> |
136 | 154 |
<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse" /> |
137 |
|
|
138 | 155 |
<echo>INFORMATION!!!</echo> |
139 |
<echo>Restart eclipse and then proceed to import the subprojects contained into the main project</echo> |
|
156 |
<echo>Restart eclipse and then proceed to import the subprojects |
|
157 |
contained into the main project</echo> |
|
140 | 158 |
|
141 | 159 |
<!-- TODO: copiar al proyecto de configuración general --> |
142 | 160 |
</target> |
org.gvsig.maven.base/trunk/org.gvsig.maven.base/org.gvsig.maven.base.build/pom.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 | 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/xsd/maven-4.0.0.xsd">
|
|
4 |
<modelVersion>4.0.0</modelVersion>
|
|
5 |
<artifactId>org.gvsig.maven.base.build</artifactId>
|
|
6 |
<name>org.gvsig.maven.base.build</name>
|
|
7 |
<url>http://maven.apache.org</url>
|
|
3 |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
4 |
<modelVersion>4.0.0</modelVersion>
|
|
5 |
<artifactId>org.gvsig.maven.base.build</artifactId>
|
|
6 |
<name>org.gvsig.maven.base.build</name>
|
|
7 |
<url>http://maven.apache.org</url>
|
|
8 | 8 |
|
9 |
<parent> |
|
10 |
<artifactId>org.gvsig.maven.base</artifactId> |
|
11 |
<groupId>org.gvsig</groupId> |
|
12 |
<version>1.0.8-SNAPSHOT</version> |
|
13 |
</parent> |
|
14 |
<dependencies> |
|
15 |
<dependency> |
|
16 |
<groupId>ant-contrib</groupId> |
|
17 |
<artifactId>ant-contrib</artifactId> |
|
18 |
<version>1.0b3</version> |
|
19 |
</dependency> |
|
20 |
<dependency> |
|
21 |
<groupId>org.apache.maven</groupId> |
|
22 |
<artifactId>maven-ant-tasks</artifactId> |
|
23 |
<version>2.1.0</version> |
|
24 |
</dependency> |
|
25 |
<dependency> |
|
26 |
<groupId>com.sardak</groupId> |
|
27 |
<artifactId>antform</artifactId> |
|
28 |
<version>2.0</version> |
|
29 |
</dependency> |
|
30 |
<dependency> |
|
31 |
<groupId>org.apache.ant</groupId> |
|
32 |
<artifactId>ant</artifactId> |
|
33 |
<version>1.7.0</version> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>org.apache.ant</groupId> |
|
37 |
<artifactId>ant-launcher</artifactId> |
|
38 |
<version>1.7.0</version> |
|
39 |
</dependency> |
|
40 |
<dependency> |
|
41 |
<groupId>org.apache.ant</groupId> |
|
42 |
<artifactId>ant-nodeps</artifactId> |
|
43 |
<version>1.7.0</version> |
|
44 |
</dependency> |
|
45 |
<dependency> |
|
46 |
<groupId>com.oopsconsultancy</groupId> |
|
47 |
<artifactId>com.oopsconsultancy.xmltask</artifactId> |
|
48 |
<version>1.16.1</version> |
|
49 |
</dependency> |
|
50 |
</dependencies> |
|
51 |
<developers> |
|
52 |
<developer> |
|
53 |
<id>cordinyana</id> |
|
54 |
<name>Cèsar Ordiñana</name> |
|
55 |
<email>cordin@gvsig.com</email> |
|
56 |
<roles> |
|
57 |
<role>Architect</role> |
|
58 |
<role>Developer</role> |
|
59 |
</roles> |
|
60 |
</developer> |
|
61 |
</developers> |
|
9 |
<parent> |
|
10 |
<artifactId>org.gvsig.maven.base</artifactId> |
|
11 |
<groupId>org.gvsig</groupId> |
|
12 |
<version>1.0.8-SNAPSHOT</version> |
|
13 |
</parent> |
|
14 |
<dependencies> |
|
15 |
<dependency> |
|
16 |
<groupId>ant-contrib</groupId> |
|
17 |
<artifactId>ant-contrib</artifactId> |
|
18 |
<version>1.0b3</version> |
|
19 |
</dependency> |
|
20 |
<dependency> |
|
21 |
<groupId>org.apache.maven</groupId> |
|
22 |
<artifactId>maven-ant-tasks</artifactId> |
|
23 |
<version>2.1.0</version> |
|
24 |
</dependency> |
|
25 |
<dependency> |
|
26 |
<groupId>com.sardak</groupId> |
|
27 |
<artifactId>antform</artifactId> |
|
28 |
<version>2.0</version> |
|
29 |
</dependency> |
|
30 |
<dependency> |
|
31 |
<groupId>org.apache.ant</groupId> |
|
32 |
<artifactId>ant</artifactId> |
|
33 |
<version>1.7.0</version> |
|
34 |
</dependency> |
|
35 |
<dependency> |
|
36 |
<groupId>org.apache.ant</groupId> |
|
37 |
<artifactId>ant-launcher</artifactId> |
|
38 |
<version>1.7.0</version> |
|
39 |
</dependency> |
|
40 |
<dependency> |
|
41 |
<groupId>org.apache.ant</groupId> |
|
42 |
<artifactId>ant-nodeps</artifactId> |
|
43 |
<version>1.7.0</version> |
|
44 |
</dependency> |
|
45 |
<dependency> |
|
46 |
<groupId>com.oopsconsultancy</groupId> |
|
47 |
<artifactId>com.oopsconsultancy.xmltask</artifactId> |
|
48 |
<version>1.16.1</version> |
|
49 |
</dependency> |
|
50 |
<dependency> |
|
51 |
<groupId>org.tigris.antelope</groupId> |
|
52 |
<artifactId>antelopetasks</artifactId> |
|
53 |
<version>3.2.10</version> |
|
54 |
</dependency> |
|
55 |
</dependencies> |
|
56 |
<developers> |
|
57 |
<developer> |
|
58 |
<id>cordinyana</id> |
|
59 |
<name>Cèsar Ordiñana</name> |
|
60 |
<email>cordin@gvsig.com</email> |
|
61 |
<roles> |
|
62 |
<role>Architect</role> |
|
63 |
<role>Developer</role> |
|
64 |
</roles> |
|
65 |
</developer> |
|
66 |
</developers> |
|
62 | 67 |
|
63 |
<build>
|
|
64 |
<plugins>
|
|
65 |
<plugin>
|
|
66 |
<groupId>org.apache.maven.plugins</groupId>
|
|
67 |
<artifactId>maven-dependency-plugin</artifactId>
|
|
68 |
<executions>
|
|
69 |
<execution>
|
|
70 |
<id>copy-dependencies</id>
|
|
71 |
<phase>validate</phase>
|
|
72 |
<goals>
|
|
73 |
<goal>copy-dependencies</goal>
|
|
74 |
</goals>
|
|
75 |
<configuration>
|
|
76 |
<outputDirectory>${project.build.directory}/dependencies/org.gvsig.maven.base.build</outputDirectory>
|
|
77 |
<overWriteReleases>false</overWriteReleases>
|
|
78 |
<overWriteSnapshots>true</overWriteSnapshots>
|
|
79 |
<overWriteIfNewer>true</overWriteIfNewer>
|
|
80 |
</configuration>
|
|
81 |
</execution>
|
|
82 |
</executions>
|
|
83 |
</plugin>
|
|
84 |
</plugins>
|
|
85 |
<resources>
|
|
86 |
<resource>
|
|
87 |
<directory>${basedir}/src/main/resources</directory>
|
|
88 |
</resource>
|
|
89 |
<resource>
|
|
90 |
<directory>${project.build.directory}/dependencies/</directory>
|
|
91 |
</resource>
|
|
92 |
</resources>
|
|
93 |
<pluginManagement>
|
|
94 |
<plugins>
|
|
95 |
<plugin>
|
|
96 |
<groupId>org.eclipse.m2e</groupId>
|
|
97 |
<artifactId>lifecycle-mapping</artifactId>
|
|
98 |
<version>1.0.0</version>
|
|
99 |
<configuration>
|
|
100 |
<lifecycleMappingMetadata>
|
|
101 |
<pluginExecutions>
|
|
102 |
<pluginExecution>
|
|
103 |
<pluginExecutionFilter>
|
|
104 |
<groupId>org.apache.maven.plugins</groupId>
|
|
105 |
<artifactId>maven-dependency-plugin</artifactId>
|
|
106 |
<versionRange>[2.0,)</versionRange>
|
|
107 |
<goals>
|
|
108 |
<goal>copy-dependencies</goal>
|
|
109 |
</goals>
|
|
110 |
</pluginExecutionFilter>
|
|
111 |
<action>
|
|
112 |
<ignore />
|
|
113 |
</action>
|
|
114 |
</pluginExecution>
|
|
115 |
</pluginExecutions>
|
|
116 |
</lifecycleMappingMetadata>
|
|
117 |
</configuration>
|
|
118 |
</plugin>
|
|
119 |
</plugins>
|
|
120 |
</pluginManagement>
|
|
121 |
</build>
|
|
68 |
<build>
|
|
69 |
<plugins>
|
|
70 |
<plugin>
|
|
71 |
<groupId>org.apache.maven.plugins</groupId>
|
|
72 |
<artifactId>maven-dependency-plugin</artifactId>
|
|
73 |
<executions>
|
|
74 |
<execution>
|
|
75 |
<id>copy-dependencies</id>
|
|
76 |
<phase>validate</phase>
|
|
77 |
<goals>
|
|
78 |
<goal>copy-dependencies</goal>
|
|
79 |
</goals>
|
|
80 |
<configuration>
|
|
81 |
<outputDirectory>${project.build.directory}/dependencies/org.gvsig.maven.base.build</outputDirectory>
|
|
82 |
<overWriteReleases>false</overWriteReleases>
|
|
83 |
<overWriteSnapshots>true</overWriteSnapshots>
|
|
84 |
<overWriteIfNewer>true</overWriteIfNewer>
|
|
85 |
</configuration>
|
|
86 |
</execution>
|
|
87 |
</executions>
|
|
88 |
</plugin>
|
|
89 |
</plugins>
|
|
90 |
<resources>
|
|
91 |
<resource>
|
|
92 |
<directory>${basedir}/src/main/resources</directory>
|
|
93 |
</resource>
|
|
94 |
<resource>
|
|
95 |
<directory>${project.build.directory}/dependencies/</directory>
|
|
96 |
</resource>
|
|
97 |
</resources>
|
|
98 |
<pluginManagement>
|
|
99 |
<plugins>
|
|
100 |
<plugin>
|
|
101 |
<groupId>org.eclipse.m2e</groupId>
|
|
102 |
<artifactId>lifecycle-mapping</artifactId>
|
|
103 |
<version>1.0.0</version>
|
|
104 |
<configuration>
|
|
105 |
<lifecycleMappingMetadata>
|
|
106 |
<pluginExecutions>
|
|
107 |
<pluginExecution>
|
|
108 |
<pluginExecutionFilter>
|
|
109 |
<groupId>org.apache.maven.plugins</groupId>
|
|
110 |
<artifactId>maven-dependency-plugin</artifactId>
|
|
111 |
<versionRange>[2.0,)</versionRange>
|
|
112 |
<goals>
|
|
113 |
<goal>copy-dependencies</goal>
|
|
114 |
</goals>
|
|
115 |
</pluginExecutionFilter>
|
|
116 |
<action>
|
|
117 |
<ignore />
|
|
118 |
</action>
|
|
119 |
</pluginExecution>
|
|
120 |
</pluginExecutions>
|
|
121 |
</lifecycleMappingMetadata>
|
|
122 |
</configuration>
|
|
123 |
</plugin>
|
|
124 |
</plugins>
|
|
125 |
</pluginManagement>
|
|
126 |
</build>
|
|
122 | 127 |
</project> |
Also available in: Unified diff