I ran the build and used the installer to deploy to my nexus repository.
Personnaly, I do it with wagon-ssh (through scp). To be able to deploy to the maven repository (and then reuse those Liferay dependencies for every liferay projects), I did :
1) Installation (or unzip) of Apache Ant somewhere in folder (c:\apache-ant e.g.)
2) Installation (or unzip) of Apache Maven somewhere in folder (c:\apache-maven e.g.)
3) Edit file at artifact-installer-6.0.6-SNAPSHOT\installer.ffournel.properties (= installer.user.properties)
Set the following (in my case) :
1##
2## Release info
3##
4
5 lp.version.maven=6.0.6
6 lp.version=6.0.6
7
8##
9## Maven
10##
11
12 maven.bin.path=C:/Users/ffournel/Desktop/apache-maven-3.0.3-bin/apache-maven-3.0.3/bin/
13 maven.repository.id=liferay-portal-community
14 maven.repository.url=scp://osiris.intuitiv.lan/home/intuitiv-dev/sonatype-work/nexus/storage/liferay-portal-community/
15
16##
17## Liferay
18##
19
20 lp.source.dir=G:/tmp/liferay-portal-src-6.0.6
21 lp.tomcat.dir=G:/liferay-portal-6.0.6-demo/tomcat-6.0.29
22 lp.tomcat.lib.global.dir=${lp.tomcat.dir}/lib/ext
23 lp.tomcat.portal.dir=${lp.tomcat.dir}/webapps/ROOT
24 lp.tomcat.tunnel-web.dir=${lp.tomcat.dir}/webapps/tunnel-web
25
26##
27## Signing
28##
29
30 gpg.bin.path=
31 gpg.keyname=
32 gpg.passphrase=
4) Add the transport protocol to remote repository (= the library) wagon-ssh to maven's classpath. In my case, using Maven 3 to do the deployment of all these Liferay plugins, I downloaded wagon-ssh 2.0 (located at mvnrepository.com), put it into ${M2_HOME/lib/ext}.
5) Edit build.xml of the generated "artifact-installer-6.0.6-SNAPSHOT" doing :
Replace (line 4) <property name="project.dir" value="." />
To an absolute dir (in my case) : <property name="project.dir" value="C:\Users\ffournel\Desktop\artifact-installer-6.0.6-SNAPSHOT-distribution\artifact-installer-6.0.6-SNAPSHOT" />
Replace every lines like
1<exec dir="." executable="${maven.executable}" failonerror="true">
To an absolute dir (in my case) :
1<exec dir="${maven.bin.path}" executable="${maven.executable}" failonerror="true">
6) Correct the syntax bug at
1C:\Users\ffournel\Desktop\artifact-installer-6.0.6-SNAPSHOT-distribution\artifact-installer-6.0.6-SNAPSHOT\poms\tunnel-web.xml
replace the line
1<name>Liferay Tunnel Web<</name>
to
1<name>Liferay Tunnel Web</name>
6) Finally, run
1ant deploy-liferay-artifacts
(put ant, mvn and ssh and scp to your PATH variable environnement. SSH or SCP can be installed with Private Shell for windows)
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.