Issue Details (XML | Word | Printable)

Key: JS2-164
Type: Bug Bug
Status: Closed Closed
Resolution: Invalid
Priority: Critical Critical
Assignee: Unassigned
Reporter: Legolas Greenleaf
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Jetspeed 2

maven's allBuild goal fails with missing dependencies

Created: 24/Nov/04 12:58 PM   Updated: 02/Apr/05 01:07 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Windows 2K, Maven 1.0.1, jdk-1.4.2, tomcat-4.1
Internet accessthrough proxy.

Resolution Date: 02/Apr/05 01:07 AM


 Description  « Hide
Following the instructions on the getting-started page, I ran maven allClean allBuild, it first failed with the following message:
  Attempting to download pluto-1.0.1-rc1.jar.
  WARNING: Failed to download pluto-1.0.1-rc1.jar.

  BUILD FAILED
  File...... C:\usr\jetspeed2\maven.xml
  Element... maven:reactor
  Line...... 133
  Column.... 40
  The build cannot continue because of the following unsatisfied dependency:

  pluto-1.0.1-rc1.jar

After I downloaded pluto-1.0.1-rc1.jar and placed into the repository, I again run maven allClean allBuild, which resulted in the following:
  Attempting to download myfaces-jsf-api-1.0.8.jar.
  WARNING: Failed to download myfaces-jsf-api-1.0.8.jar.
  Attempting to download myfaces-1.0.8.jar.
  WARNING: Failed to download myfaces-1.0.8.jar.
  Attempting to download myfaces-impl-1.0.8.jar.
  WARNING: Failed to download myfaces-impl-1.0.8.jar.
  Attempting to download myfaces-extensions-1.0.8.jar.
  WARNING: Failed to download myfaces-extensions-1.0.8.jar.

  BUILD FAILED
  File...... C:\usr\jetspeed2\maven.xml
  Element... maven:reactor
  Line...... 133
  Column.... 40
  The build cannot continue because of the following unsatisfied dependencies:

  myfaces-jsf-api-1.0.8.jar
  myfaces-1.0.8.jar
  myfaces-impl-1.0.8.jar
  myfaces-extensions-1.0.8.jar

Since I cannot find these jar files anywhere on the internet I cannot build JetSpeed2 from the sources

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Serge Huber added a comment - 24/Nov/04 04:01 PM
I'm also having this problem. I'm beginning to think it's a Maven bug. The myfaces JARs ARE present on the http://www.bluesunrise.com/maven/ repository, but for some strange reason, Maven is defaulting back to only ibiblio in the list of remote repositories.

In order to illustrate this, I installed the JARs manually from bluesunrise and it worked. I then added a maven.xml file in the portals-bridges directory with the following content :

<project default="allBuild"
         xmlns:j="jelly:core"
         xmlns:maven="jelly:maven"
         xmlns:ant="jelly:ant">

  <goal name="display-repos">
    <echo>${maven.repo.remote}</echo>
  </goal>
  
</project>

The result of the variable display is the following :

display-repos:
    [echo] http://www.ibiblio.org/maven

I did check my ${user.home}/build.properties but I don't have any remote repositories defined. Also Maven seems to include the following properties files :

Using userBuildPropertiesFile: C:\Documents and Settings\Serge Huber\build.properties
Using projectPropertiesFile: C:\java\technologies\jakarta-cvs\jakarta-jetspeed-2\portals-bridges\myfaces\project.properties
Using projectBuildPropertiesFile: C:\java\technologies\jakarta-cvs\jakarta-jetspeed-2\portals-bridges\myfaces\build.properties
Using userBuildPropertiesFile: C:\Documents and Settings\Serge Huber\build.properties
Using projectPropertiesFile: C:\java\technologies\jakarta-cvs\jakarta-jetspeed-2\project.properties
Using projectBuildPropertiesFile: C:\java\technologies\jakarta-cvs\jakarta-jetspeed-2\build.properties

I've looked in all those files (those that exist that is), and apart from the root-level project.properties I didn't find another definition of the maven.repo.remote variable. This is very strange.

Brett Porter added a comment - 28/Nov/04 11:47 PM
This is the result of a bug in Maven 1.0.1.
http://jira.codehaus.org/browse/MAVEN-1501

Carlos Sanchez added a comment - 29/Nov/04 03:32 PM
Brett is right, its a Maven 1.0.1 bug

As a workaround you can run maven with
-Dmaven.repo.remote=http://www.bluesunrise.com/maven/,http://www.ibiblio.org/maven/,http://dist.codehaus.org/,http://cvs.apache.org/repository

Brett Porter added a comment - 30/Nov/04 02:14 AM
From Dr Wes Munsil:
For me, adding this to my top-level project.properties file seemed to make everything happy again:

  maven.property.inheritance=true

Ate Douma added a comment - 02/Apr/05 01:07 AM
Not a Jetspeed-2 problem.

Ate Douma made changes - 02/Apr/05 01:07 AM
Field Original Value New Value
Resolution Invalid [ 6 ]
Status Open [ 1 ] Closed [ 6 ]