Yesterday I installed Maven 2.0.4, the Tortoise Subversion client, and
checked out the source as described in the wiki page at [1].  I was
successful with the following command:

 

cd trinidad/plugins 

mvn install

 

However, when I cd to the trinidad directory and run "mvn -e install", I
get an exception.  The first thing I noted was a warning on trying to
retrieve 'snapshot org.apache.myfaces.trinidadbuild:ma

ven-faces-plugin:incubator-m1-SNAPSHOT' from the repository.  I don't
know if that's related, but the Trinidad Build segment that generates
the warning seems to install ok (or does lack of an error not
necessarily mean a successful install?).  After the shale POM error,
it's downhill from there.  

 

On the wiki [1], it mentions "Also make sure the version number you get
matches the version number in the pom.xml for maven. if it is 2.0.2 make
sure it is the same."  If you don't know what you're doing, that isn't
very clear...Does this imply "Make sure the version of Maven that you
get matches the version of Maven in the pom.xml"?  If so, which POM
needs to be modified, and where in the POM does the version number need
to be adjusted?  Being new to Maven, I noticed several POMs, and did not
find anything obvious that pointed to a Maven version number.   Any help
would be sincerely appreciated.

 

C:\trinidad\trinidad>mvn -e install

+ Error stacktraces are turned on.

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   Apache Incubator Trinidad Podling

[INFO]   Apache Trinidad Build

[INFO]   Apache Trinidad API

[INFO]   Apache Trinidad Impl

[INFO]   Apache Trinidad Demo

[INFO]
------------------------------------------------------------------------
-

---

[INFO] Building Apache Incubator Trinidad Podling

[INFO]    task-segment: [install]

[INFO]
------------------------------------------------------------------------
-

---

[INFO] [site:attach-descriptor]

[INFO] [install:install]

[INFO] Installing C:\trinidad\trinidad\pom.xml to C:\Documents and
Settings\Admi

nistrator\.m2\repository\org\apache\myfaces\trinidad\trinidad\incubator-
m1-SNAPS

HOT\trinidad-incubator-m1-SNAPSHOT.pom

[INFO]
------------------------------------------------------------------------
-

---

[INFO] Building Apache Trinidad Build

[INFO]    task-segment: [install]

[INFO]
------------------------------------------------------------------------
-

---

[INFO] snapshot
org.apache.myfaces.trinidadbuild:maven-faces-plugin:incubator-m1

-SNAPSHOT: checking for updates from apache.snapshots

[WARNING] repository metadata for: 'snapshot
org.apache.myfaces.trinidadbuild:ma

ven-faces-plugin:incubator-m1-SNAPSHOT' could not be retrieved from
repository:

apache.snapshots due to an error: Error transferring file

[INFO] Repository 'apache.snapshots' will be blacklisted

[INFO] [faces:generate-master-faces-config {execution: default}]

[INFO] Generating META-INF/maven-faces-plugin/faces-config.xml

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:compile]

[INFO] No sources to compile

[INFO] [resources:testResources]

[INFO] Using default encoding to copy filtered resources.

[INFO] [compiler:testCompile]

[INFO] No sources to compile

[INFO] [surefire:test]

[INFO] No tests to run.

[INFO] [jar:jar]

[INFO] Building jar:
C:\trinidad\trinidad\trinidad-build\target\trinidad-build-i

ncubator-m1-SNAPSHOT.jar

[INFO] [install:install]

[INFO] Installing
C:\trinidad\trinidad\trinidad-build\target\trinidad-build-incu

bator-m1-SNAPSHOT.jar to C:\Documents and
Settings\Administrator\.m2\repository\

org\apache\myfaces\trinidad\trinidad-build\incubator-m1-SNAPSHOT\trinida
d-build-

incubator-m1-SNAPSHOT.jar

[INFO]
------------------------------------------------------------------------
-

---

[INFO] Building Apache Trinidad API

[INFO]    task-segment: [install]

[INFO]
------------------------------------------------------------------------
-

---

[INFO] snapshot
org.apache.myfaces.trinidadbuild:maven-xrts-plugin:incubator-m1-

SNAPSHOT: checking for updates from apache.snapshots

[WARNING] repository metadata for: 'snapshot
org.apache.myfaces.trinidadbuild:ma

ven-xrts-plugin:incubator-m1-SNAPSHOT' could not be retrieved from
repository: a

pache.snapshots due to an error: Error transferring file

[INFO] Repository 'apache.snapshots' will be blacklisted

[INFO] [xrts:generate-sources {execution: default}]

[INFO] Generating 29 XRTS bundles to
C:\trinidad\trinidad\trinidad-api\target\ma

ven-xrts-plugin\main\java

Downloading:
http://people.apache.org/maven-snapshot-repository/org/apache/shale

/shale-master/1/shale-master-1.pom

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: org.apache.shale:shale-parent:pom:1.0.3

 

Reason: Cannot find parent: org.apache.shale:shale-master for project:
org.apach

e.shale:shale-parent:pom:1.0.3

 

 

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Unable to get
dependency

 information: Unable to read the metadata file for artifact
'org.apache.shale:sh

ale-test:jar': Cannot find parent: org.apache.shale:shale-master for
project: or

g.apache.shale:shale-parent:pom:1.0.3

  org.apache.shale:shale-test:jar:1.0.3

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

  apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),

  java-net (https://maven-repository.dev.java.net/nonav/repository/)

Path to dependency:

        1)
org.apache.myfaces.trinidad:trinidad-api:jar:incubator-m1-SNAPSHOT

 

[SNIP]

 

 

 

 

 

[1] http://wiki.apache.org/myfaces/Building_ADF_With_Maven

Reply via email to