Hi everyone--

A fresh checkout of trunk, with an empty local repository, results in the following when executing 'mvn install':

...
------------------------------------------------------------------------
[INFO] Building Cocoon Welcome (Samples)
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [enforcer:enforce-once {execution: enforce-maven}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] Preparing cocoon:rcl
[WARNING] Removing: rcl from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce-once {execution: enforce-maven}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [cocoon:rcl {execution: rcl}]
[INFO] Creating a reloading Cocoon web application.
[INFO] Deploying string-template to WEB-INF/log4j.xml
[INFO] snapshot org.apache.cocoon:cocoon-rcl-webapp-wrapper:1.0.0-RC1-SNAPSHOT: 
checking for updates from real-central
[INFO] snapshot org.apache.cocoon:cocoon-rcl-webapp-wrapper:1.0.0-RC1-SNAPSHOT: 
checking for updates from apache.snapshots
Downloading: 
http://repo1.maven.org/maven2/org/apache/cocoon/cocoon-rcl-webapp-wrapper/1.0.0-RC1-SNAPSHOT/cocoon-rcl-webapp-wrapper-1.0.0-RC1-SNAPSHOT.jar
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/cocoon/cocoon-rcl-webapp-wrapper/1.0.0-RC1-SNAPSHOT/cocoon-rcl-webapp-wrapper-1.0.0-RC1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.cocoon:cocoon-rcl-webapp-wrapper:jar:1.0.0-RC1-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.cocoon 
-DartifactId=cocoon-rcl-webapp-wrapper -Dversion=1.0.0-RC1-SNAPSHOT 
-Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.apache.cocoon 
-DartifactId=cocoon-rcl-webapp-wrapper -Dversion=1.0.0-RC1-SNAPSHOT 
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) unspecified:unspecified:jar:0.0
        2) org.apache.cocoon:cocoon-rcl-webapp-wrapper:jar:1.0.0-RC1-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
  unspecified:unspecified:jar:0.0

from the specified remote repositories:
...


It appears that the cocoon-welcome block's build attempts to invoke cocoon-maven-plugin:rcl, which requires the cocoon-rcl-webapp-wrapper from the tools module. But in the top-level POM, the tools module isn't built until after the blocks module.

Moving the tools module to before the blocks module seems to clear up the error. Would doing this have any unintended effects? If not then I'll commit the change.

Thanks
--Jason






Reply via email to