Bonjour,
Je travaille sur un projet Maven Portlet, je fais mes builds sous jenkins en utilisant le plugin Maven et subversion (pour récupérer le code) pour le but de construire un War et le déployer sur le Portail 8 WebSphere.
Mon problème c'est que jenkins est installé sur une machine et websphere est installé sur une autre machine du coup j'arrive pas à déployer ma portlet sur le Portal.
voila mon POM :
et voila le code de mon fichier settings.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 <build> <finalName>NovaPortail</finalName> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>integration-test</id> <phase>integration-test</phase> <configuration> <tasks> <echo message=" >>>>>>>>>>>>>>>>>>>>>>>>>>> 2 . Deploiment du Portlet" /> <property environment="env" /> <exec executable="/bin/bash" dir="${wps.home}/PortalServer/bin"> <arg line="xmlaccess.sh -user ${wps.admin.name} -password ${wps.admin.password} -url ${wps.url} -in ${xmlaccess.path.deploy}" /> </exec> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <profile> <id>source</id> <properties> <portlet-api.version>2.0</portlet-api.version> <servlet-api.version>2.4</servlet-api.version> <jsp-api.version>2.0</jsp-api.version> <portal.name>nova.maven.test</portal.name> <wps.home>/opt/IBM/WebSphere</wps.home> <wps.url>http://portal8-dev.intranet.novaliance.com:10039/wps/config</wps.url> <wps.url.virtuel>http://portal8-dev.intranet.novaliance.com:10039/wps/config/NovaTest</wps.url.virtuel> <wps.admin.name>admin</wps.admin.name> <wps.admin.password>*****</wps.admin.password> <xmlaccess.path.deploy>/tools/MavenProjet/NovaPortail/UpdatePortlet.xml</xmlaccess.path.deploy> <xmlaccess.path.exportPage>/tools/MavenProjet/NovaPortail/ExportPage.xml</xmlaccess.path.exportPage> <xmlaccess.path.exportPageResult>${project.build.directory}/${portal.name}/components/${portal.name}/content/xmlaccess/install/ExportPageResult.xml</xmlaccess.path.exportPageResult> <xmlaccess.path.importPageResult>${project.build.directory}/${portal.name}/components/${portal.name}/content/xmlaccess/install/ImportPageResult.xml</xmlaccess.path.importPageResult> </properties> </profile>
Partager