Project

General

Profile

Download (1.96 KB) Statistics
| Branch: | Tag: | Revision:
1 1ac70e47 n.hoffmann
Please see http://wp5.e-taxonomy.eu/cdmlib/getting-started.html on instructions how to set up your development environment.
2
3
4
If you do not have access to wp5.e-taxonomy.eu you can skip the following section.
5
6
For deployment of files via maven, we are using the scpexe url scheme which effectively uses an external ssh command. 
7
Because we are using public/private key authentication on wp5.e-taxonomy.eu this is much easier to configure, test and debug.
8
9 fc0ba90a n.hoffmann
If you are deploying from Unix or have Cygwin installed you won't need any additional configuration in your settings.xml file as everything will be taken from the environment. However, if your username in the remote system is different from local you will have to create the entry in your settings.xml stating the username on the remote system:
10 1ac70e47 n.hoffmann
11
<settings>
12
	<servers>
13
		<server>
14
			<id>wp5.e-taxonomy.eu</id>
15
			<username>your username in the remote system</username>
16
		</server>
17
	</servers>
18
</settings>
19
20 efef67b8 Andreas Kohlbecker
If your private key is protected with a pass phrase you may want to also add the following option:
21
22
<settings>
23
	<servers>
24
		<server>
25
			....
26
			<passphrase>some_passphrase</passphrase>
27
		</server>
28
	</servers>
29
</settings>
30
31
Or you start the ssh-agent in advance. If you are using Cygwin you can add the following lines to your ~./.bashrc in order to optionally start the ssh-agent:
32
33
#
34
# Start the ssh-agent
35
#
36
echo "Start ssh-agent and add private ssh key? [y/n]"
37
read START_SSH_AGENT
38
39
if [ $START_SSH_AGENT = "y" -o $START_SSH_AGENT = "Y" ]; then 
40
  eval `ssh-agent -s`
41
  ssh-add
42
fi
43
44
45
Instructions on how to set this up for Windows can be found here: http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html
46
47 8754e504 Andreas Kohlbecker
48 e8b0cf59 Andreas Kohlbecker
A dialog may pop up saying that a mapping for antrun and maybe others are missing. 
49
Just install all connectors that are available. The problem with antrun will then be solved by importing 
50
cdmlib/lifecycle-mapping-metadata.xml in the preferences under Maven->Lifecycle Mappings->Change mapping file location