|
<? Xml version = "1.0" encoding = "UTF-8"?>
<Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<Parent>
<GroupId> com. policysoft. sds </groupId>
<ArtifactId>Aggregator</ArtifactId>
<Version> 1.0.0 </version>
<RelativePath> ../Aggregator</RelativePath>
</Parent>
<ModelVersion> 4.0.0 </modelVersion>
<GroupId> com. policysoft. sds </groupId>
<ArtifactId> platform </artifactId>
<Version> 1.0.0 </version>
<Packaging> war </packaging>
<Name> platform project </name>
<Build>
<Plugins>
<Plugin>
<GroupId> org. apache. maven. plugins </groupId>
<ArtifactId>Maven-War-Plugin</ArtifactId>
<Version> version 2.1-beta-1 </version>
<Configuration>
<! -- Specify the source code and page path -->
<WebappDirectory>
Target/$ {artifactId}
</WebappDirectory>
<WarSourceDirectory>
WebRoot
</WarSourceDirectory>
<WebResources>
<Resource>
<Directory> WebRoot \ WEB-INF </directory>
<TargetPath> WEB-INF </targetPath>
<Filtering> true </filtering>
<Shortdes>
<Include> web. xml </include>
</Shortdes>
</Resource>
</WebResources>
<! -- Specify the project to be merged -->
<Overlays>
<Overlay>
<GroupId> com. policysoft. sds </groupId>
<ArtifactId> basedata </artifactId>
</Overlay>
</Overlays>
</Configuration>
</Plugin>
<Plugin>
<GroupId> org. codehaus. cargo </groupId>
<ArtifactId> cargo-maven2-Plugin</ArtifactId>
<Version> 1.3.2 </version>
<! -- Set remote tomcat parameters -->
<Configuration>
<Wait> true </wait>
<! -- Container configuration -->
<Container>
<ContainerId> tomcat6x </containerId>
<Type> remote </type>
<Timeout> 600000 </timeout>
</Container>
<! -- Configuration to use with the container -->
<Configuration>
<Type> runtime </type>
<Properties>
<Cargo. tomcat. manager. url> http: // 127.0.0.1: 8080/manager/text </cargo. tomcat. manager. url>
<Cargo. hostname> 127.0.0.1 </cargo. hostname>
<Cargo. servlet. port> 8080 </cargo. servlet. port>
<Cargo. remote. username> tomcat </cargo. remote. username>
<Cargo. remote. password> tomcat </cargo. remote. password>
</Properties>
</Configuration>
<! --DeployerConfiguration -->
<Deployer>
<Type> remote </type>
<! --DeployablesConfiguration -->
<Deployables>
<Deployable>
<GroupId> com. policysoft. sds </groupId>
<ArtifactId> platform </artifactId>
<Type> war </type>
<Properties>
<Context>/platform </context>
</Properties>
</Deployable>
</Deployables>
</Deployer>
</Configuration>
<! -- Bind the project lifecycle in maven -->
<Executions>
<Execution>
<Id>Redeploy</Id>
<Phase> deploy </phase>
<Goals>
<Goal>Redeploy</Goal>
</Goals>
</Execution>
</Executions>
</Plugin>
</Plugins>
</Build>
<! -- When merging a project, you must specify the project to be merged in dependencies -->
<Dependencies>
<Dependency>
<GroupId> com. policysoft. sds </groupId>
<ArtifactId>Basedata</ArtifactId>
<Version> 1.0.0 </version>
<Type> war </type>
</Dependency>
</Dependencies>
</Project> |