php-maven/maven-php-plugin — Issue #12: Output of php5-web-archetype is .phar not .zip/.tar.gz
Author: achingbrain
Created: 2012-03-07 18:22:02+00:00
State: open

I have created a php5-web-archetype by running:

mvn archetype:generate \
-DarchetypeGroupId=org.phpmaven \
-DarchetypeArtifactId=php5-web-archetype \
-DarchetypeVersion=2.0-SNAPSHOT \
-DgroupId=org.sample \
-DartifactId=my-app \
-Dversion=0.0.1-SNAPSHOT

The documentation at http://php-maven.org/branches/2.0-SNAPSHOT/php-web-5min.html states:

Switch to your sample project directory

cd my-app

and run:

mvn package

The command line will print out various actions, ending with the following:

...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jul 20 19:15:06 CDT 2008
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------

Maven has created a zip and a tar package under the project's target folder.

Yet, when I run mvn package I am left with my-app-0.0.1-SNAPSHOT.phar in the target directory instead of a zip file.