php-maven/maven-php-plugin — Issue #2: Fail to find 'phpdoc' under Linux
Author: bgaillard
Created: 2012-01-13 14:11:37+00:00
State: open

Hi, I'm currently using the maven-php-plugin to build our projects.

I've encountered a problem in an Amazon EC2 Machine, it seems that the 'phpdoc' executable can't be found.

This problem is encountered because the PhpDocumentor class get a PATH variable from "java.library.path" :

final String path = System.getProperty("java.library.path");

This is not correct because under UNIX PhpDocumentor can be installed in the '/usr/bin' directory.

To fix the problem a user can pass the following arguments while doing a Maven install :

mvn install -DphpDocFilePath=/usr/bin/phpdoc

This is only a workaround, to fix the problem the System.getProperty("java.library.path") must be replaced by an instruction used to read the System path.

Sincerely,

Baptiste