Hi Community.
I'm starting with Maven for PHP, so I just follow "Prepare Maven for
PHP" and "PHP library project - 5 minutes starter guide" from
http://www.xworlds.org/php-maven/ and couldn't get my-app library to
get packaged.
While reading the output I found a hint into the error, checksum
failed for org.phpmaven:maven-php-plugin:2.0-SNAPSHOT which I think it
lead into the following log:
- Internal error in the plugin manager executing goal
'org.phpmaven:maven-php-plugin:2.0-SNAPSHOT:resources': Unable to load
the mojo 'org.phpmaven:maven-php-plugin:2.0-SNAPSHOT:resources' in the
plugin 'org.phpmaven:maven-php-plugin'. A required class is missing:
Lorg/apache/maven/project/ProjectBuilder;
org.apache.maven.project.ProjectBuilder
The thing is that I don't have a clue how to resolve it!
Below I copy the output generated while creating the project and the
execution of "mvn package". Sorry I didn't fine a way to attach a
file.
Thank in advance for your time and help and I will be waiting for your
response.
Rodrigo.
-----------------------------------------------------------------------------------------
CREATE PROJECT
jerryrmt@Desktop:~/Demos/workspace-php$ mvn archetype:generate -
DarchetypeGroupId=org.phpmaven -DarchetypeArtifactId=php5-lib-
archetype -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=org.sample -
DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from release-
repo1.php-maven.org
[INFO] org.codehaus.mojo: checking for updates from release-repo1.php-
maven.org
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin:
checking for updates from
release-repo1.php-maven.org
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:generate] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] [archetype:generate {execution: default-cli}]
[INFO] Generating project in Interactive mode
[WARNING] Archetype not found in any catalog. Falling back to central
repository (
http://repo1.maven.org/maven2).
[WARNING] Use -DarchetypeRepository=<your repository> if archetype's
repository is elsewhere.
[INFO] snapshot org.phpmaven:php5-lib-archetype:2.0-SNAPSHOT: checking
for updates from php5-lib-archetype-repo
[INFO] snapshot org.phpmaven:php5-lib-archetype:2.0-SNAPSHOT: checking
for updates from
release-repo1.php-maven.org
[INFO] snapshot org.phpmaven:php5-lib-archetype:2.0-SNAPSHOT: checking
for updates from
snapshot-repo1.php-maven.org
[INFO] Using property: groupId = org.sample
[INFO] Using property: artifactId = my-app
Define value for property 'version': 1.0-SNAPSHOT:
[INFO] Using property: package = org.sample
Confirm properties configuration:
groupId: org.sample
artifactId: my-app
version: 1.0-SNAPSHOT
package: org.sample
Y:
Downloading:
http://repo1.maven.org/maven2/org/phpmaven/php5-lib-archetype/2.0-SNAPSHOT/php5-lib-archetype-2.0-SNAPSHOT.jar
[INFO] Unable to find resource 'org.phpmaven:php5-lib-archetype:jar:
2.0-SNAPSHOT' in repository php5-lib-archetype-repo (http://
repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/org/phpmaven/php5-lib-archetype/2.0-SNAPSHOT/php5-lib-archetype-2.0-SNAPSHOT.pom
[INFO] Unable to find resource 'org.phpmaven:php5-lib-archetype:pom:
2.0-SNAPSHOT' in repository php5-lib-archetype-repo (http://
repo1.maven.org/maven2)
[INFO]
----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype:
php5-lib-archetype:2.0-SNAPSHOT
[INFO]
----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: org.sample
[INFO] Parameter: artifactId, Value: my-app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: org.sample
[INFO] Parameter: packageInPathFormat, Value: org/sample
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: org.sample
[INFO] Parameter: groupId, Value: org.sample
[INFO] Parameter: artifactId, Value: my-app
[WARNING] Don't override file /home/rodrigo_techera/Demos/workspace-
php/my-app/src/site
[INFO] project created from Archetype in dir: /home/rodrigo_techera/
Demos/workspace-php/my-app
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Wed Jan 04 10:43:00 UYST 2012
[INFO] Final Memory: 24M/167M
[INFO]
------------------------------------------------------------------------
MVN PACKAGE
jerryrmt@Desktop:~/Demos/workspace-php/$cd my-app
jerryrmt@Desktop:~/Demos/workspace-php/my-app$ mvn package
[INFO] Scanning for projects...
[INFO] snapshot org.phpmaven:maven-php-plugin:2.0-SNAPSHOT: checking
for updates from
release-repo1.php-maven.org
[INFO] snapshot org.phpmaven:maven-php-plugin:2.0-SNAPSHOT: checking
for updates from
snapshot-repo1.php-maven.org
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'6b9c22ec9aa731414aa29e1413b7fba3abf13b46'; remote =
'27ee8d16138ae47ee581573874f5f474ba0d5c46' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'6b9c22ec9aa731414aa29e1413b7fba3abf13b46'; remote =
'27ee8d16138ae47ee581573874f5f474ba0d5c46' - IGNORING
[INFO] snapshot org.phpmaven:maven-php-parent:2.0-SNAPSHOT: checking
for updates from
release-repo1.php-maven.org
[INFO] snapshot org.phpmaven:maven-php-parent:2.0-SNAPSHOT: checking
for updates from
snapshot-repo1.php-maven.org
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'eb967fc694c82cd1ee9332f2424f11a9d0c0f558'; remote =
'174b0128eb074ed5d9c3d097291f078b2d4a28f4' - RETRYING
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =
'eb967fc694c82cd1ee9332f2424f11a9d0c0f558'; remote =
'174b0128eb074ed5d9c3d097291f078b2d4a28f4' - IGNORING
[INFO]
------------------------------------------------------------------------
[INFO] Building Sample PHP 5 library project
[INFO] task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [php:set-sources {execution: default-set-sources}]
Downloading:
http://repos.xworlds.org/releases/org/phpunit/phpunit5/3.3.9/phpunit5-3.3.9.pom
[INFO] Unable to find resource 'org.phpunit:phpunit5:pom:3.3.9' in
repository
release-repo1.php-maven.org (
http://repos.xworlds.org/
releases)
Downloading:
http://repo1.maven.org/maven2/org/phpunit/phpunit5/3.3.9/phpunit5-3.3.9.pom
[INFO] Unable to find resource 'org.phpunit:phpunit5:pom:3.3.9' in
repository central (
http://repo1.maven.org/maven2)
[INFO] [plugin:descriptor {execution: default-descriptor}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/rodrigo_techera/Demos/
workspace-php/my-app/src/main/resources
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.phpmaven:maven-php-plugin:2.0-SNAPSHOT:resources': Unable to load
the mojo 'org.phpmaven:maven-php-plugin:2.0-SNAPSHOT:resources' in the
plugin 'org.phpmaven:maven-php-plugin'. A required class is missing:
Lorg/apache/maven/project/ProjectBuilder;
org.apache.maven.project.ProjectBuilder
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Wed Jan 04 11:08:01 UYST 2012
[INFO] Final Memory: 28M/292M
[INFO]
------------------------------------------------------------------------
MAVEN VERSION
jerryrmt@Desktop:~/Demos/workspace-php/$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300)
Java version: 1.6.0_26
Java home: /usr/lib/jvm/java-6-sun-1.6.0.26/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.38-13-generic" arch: "amd64" Family:
"unix"