Deploy your project

Following assemblies are available:

  • php-web
    Creates a simple web project. All dependencies will be an phpinc folder.
  • php-lib
    Creates a library project. Only the project source file are included without a root folder.
  • php-lib-with-dependencies
    Creates an library project with all depended libraries.

Using the assemblies

Add following code to your pom.xml.
<project>
...
	<build>
		<plugins>
		...
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<version>2.2-beta-2</version>
				<dependencies>
					<dependency>
						<groupId>org.phpmaven</groupId>
						<artifactId>maven-php-plugin</artifactId>
						<version>1.0-ALPHA-2</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<id>bundle-project-sources</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
						<configuration>
							<descriptorRefs>
								<descriptorRef>
								<!-- ADD HERE -->
									php-webapp
								<!-- OR -->
									php-lib
								<!-- OR -->
									php-lib-with-dependencies
								</descriptorRef>
							</descriptorRefs>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
....
</project>
and run:
mvn deploy