You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Javier padrón <jp...@nartexsoft.com> on 2007/01/11 18:47:30 UTC

Jetspeed 2.1-dev Maven2 Build, no deploy [ClassCastException: to org.apache.maven.usability.MojoFailureExceptionDiagnoser]

Hello 
 
The compilation / installation is improving spte by step (using Jetspeed 2.1-dev and Maven2), I have found a good guide of how build / deploy Jetspeed2 (2.1-dev) with Maven2 in 'http://wiki.apache.org/portals/Jetspeed2/Maven2BuildSupport'.
 
The documentation is updated, and I have  generated the data base correctly, although I have not obtain to do deploy in tomcat. I have initiated the process with: 
 
mvn - P tomcat 
 
Here attached a piece of the console log, finally I obtain 
 
java.lang.ClassCastException: to org.apache.maven.usability.MojoFailureExceptionDiagnoser 
 
and previous to it, by the sight they are not managed to unload files of repositorio remote of http://repo1.maven.org/maven2
 
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
jetspeed-security-2.1-dev.pom
jetspeed-profiler-2.1-dev.pom
jetspeed-capability-2.1-dev.pom
jetspeed-serializer-2.1-dev.pom
 

Somebody can help me with this problem of installation?
 
Thanks !
 

------------------------------------------------------------------------
C:\js2src\mvn -P tomcat
...
create-db:
     [echo] START-CREATE-DB
sql-test-database-classpath:
sql-execute-drivers-path:
      [sql] Executing file: C:\js2src\etc\target\sql\oracle\drop.sql
      [sql] 83 of 83 SQL statements executed successfully
 
sql-execute-derby:
sql-execute-hsql:
sql-execute:
sql-test-database-classpath:
 
sql-execute-drivers-path:
      [sql] Executing file: C:\js2src\etc\target\sql\oracle\schema\phase1-schema.sql
...
      [sql] Executing file: C:\js2src\etc\target\sql\oracle\schema\security-schema.sql
      [sql] 241 of 241 SQL statements executed successfully
 
sql-execute-derby:
sql-execute-hsql:
sql-execute:
     [echo] END CREATE-DB
test-populate-skip:
populate-db:
     [echo] START-POPULATE-DB
populate-seed-data:
     [echo] called seed data with directory C:\js2src\etc
   [delete] Deleting directory C:\js2src\etc\target\seed
    [mkdir] Created dir: C:\js2src\etc\target\seed
    [mkdir] Created dir: C:\js2src\etc\target\seed\data
     [copy] Copying 1 file to C:\js2src\etc\target\seed\data
     [copy] Copying C:\js2src\etc\sql\j2-seed.xml to C:\js2src\etc\target\seed\d
ata\j2-seed.xml
    [mkdir] Created dir: C:\js2src\etc\target\seed\classes
     [copy] Copying 7 files to C:\js2src\etc\target\seed\classes
    [mkdir] Created dir: C:\js2src\etc\target\seed\assembly
     [echo] Running Jetspeed Seed Importer with -b C:\js2src\etc/target/seed/ass
embly//boot/ -c C:\js2src\etc/target/seed/assembly//
     [copy] Copying 11 files to C:\js2src\etc\target\seed\assembly
    [mkdir] Created dir: C:\js2src\etc\target\seed\assembly\boot
     [copy] Copying 1 file to C:\js2src\etc\target\seed\assembly\boot
     
Downloading: org/apache/portals/jetspeed-2/jetspeed-security/2.1-dev/jetspeed-security-2.1-dev.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
Downloading: org/apache/portals/jetspeed-2/jetspeed-profiler/2.1-dev/jetspeed-profiler-2.1-dev.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
Downloading: org/apache/portals/jetspeed-2/jetspeed-capability/2.1-dev/jetspeed-capability-2.1-dev.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2> )
Downloading: org/apache/portals/jetspeed-2/jetspeed-serializer/2.1-dev/jetspeed-serializer-2.1-dev.pom
...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks
 
Embedded error: The following error occurred while executing this line:
C:\js2src\etc\build.xml:297: The following error occurred while executing this l
ine:
C:\js2src\etc\build.xml:302: The following error occurred while executing this l
ine:
C:\js2src\etc\build.xml:483: java.lang.ClassCastException: org.apache.maven.usab
ility.MojoFailureExceptionDiagnoser
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 56 seconds
[INFO] Finished at: Thu Jan 11 16:52:33 GMT 2007
[INFO] Final Memory: 25M/48M
[INFO] ------------------------------------------------------------------------
 
Javier Padrón

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org