LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 01-24-2006, 12:42 AM   #1
snowyice
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Rep: Reputation: 15
Exclamation Maven installation Unable to obtain goal [Java:compile]


hi ppl,

could you guys pls tell me where is the problem? i have tried serveral days.. and i need help very urgently, as i need to present my work next week.. pls help me

I got this error after i enter (maven allClean allBuild or maven allBuild):

C:\Program Files\FYPJ\Apache Jetspeed 2.0>maven allBuild
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2

build:start:

allBuild:
j2:_check.required.properties:
j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:

j2:_check.required.property:


j2ortal.conf.sql:
[delete] Deleting directory C:\Program FilesFYPJApache Jetspeed 2.0org.apach
e.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql
[mkdir] Created dir: C:\Program FilesFYPJApache Jetspeed 2.0org.apache.jetsp
eed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql
[copy] Copying 3 files to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.
jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\populate-userinfo-for-default-psml.sql to C:
\Program FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apac
he.portals.jetspeed-2\target\portal-sql\populate-userinfo-for-default-psml.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\drop.sql to C:\Program FilesFYPJApache Jetsp
eed 2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\p
ortal-sql\drop.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\populate-db-default.sql to C:\Program FilesF
YPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jets
peed-2\target\portal-sql\populate-db-default.sql
j2:_set.rdbms.props:

j2:_generate.sql:
[echo] Using Torque schema located under: C:\Documents and Settings\Workspac
e/.maven/cache/maven-jetspeed2-plugin-2.0/plugin-resources/schema
torque:init:

[echo] Generating SQL schema creation scripts for mysql
[mkdir] Created dir: C:\Program FilesFYPJApache Jetspeed 2.0org.apache.jetsp
eed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\mysql\schema
[torque-sql] Using classpath
[torque-sql] Generating to file C:\Program FilesFYPJApache Jetspeed 2.0org.a
pache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\my
sql\schema\report.portal.sql.generation

j2:_copy.rdbms.sql.scripts:
[copy] Copying 3 files to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.
jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\mysql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\mysql\drop.sql to C:\Program FilesFYPJApache
Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\ta
rget\portal-sql\mysql\drop.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\mysql\populate-entities-for-default-psml.sql
to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=or
g.apache.portals.jetspeed-2\target\portal-sql\mysql\populate-entities-for-defaul
t-psml.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\mysql\populate-userinfo-for-default-psml.sql
to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=or
g.apache.portals.jetspeed-2\target\portal-sql\mysql\populate-userinfo-for-defaul
t-psml.sql

j2:_set.rdbms.props:

j2:_generate.sql:
[echo] Using Torque schema located under: C:\Documents and Settings\Workspac
e/.maven/cache/maven-jetspeed2-plugin-2.0/plugin-resources/schema
[echo] Generating SQL schema creation scripts for derby
[mkdir] Created dir: C:\Program FilesFYPJApache Jetspeed 2.0org.apache.jetsp
eed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\derby\schema
[torque-sql] Using classpath
[torque-sql] Generating to file C:\Program FilesFYPJApache Jetspeed 2.0org.a
pache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\de
rby\schema\report.portal.sql.generation
j2:_process.all.scripts.in.path:
[echo] Checking for SQL scripts at path C:Program FilesFYPJApache Jetspeed 2
.0org.apache.jetspeed.portal.groupId=org.apache.portals.jetspeed-2/target/portal
-sql/derby/schema...


j2:_copy.rdbms.sql.scripts:
[copy] Copying 6 files to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.
jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-sql\derby
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\derby\schema\security-schema.sql to C:\Progr
am FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.por
tals.jetspeed-2\target\portal-sql\derby\schema\security-schema.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\derby\schema\phase1-schema.sql to C:\Program
FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.porta
ls.jetspeed-2\target\portal-sql\derby\schema\phase1-schema.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\derby\schema\phase3ojb-schema.sql to C:\Prog
ram FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.po
rtals.jetspeed-2\target\portal-sql\derby\schema\phase3ojb-schema.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\derby\schema\phase2-schema.sql to C:\Program
FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.porta
ls.jetspeed-2\target\portal-sql\derby\schema\phase2-schema.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\derby\schema\prefs-schema.sql to C:\Program
FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.portal
s.jetspeed-2\target\portal-sql\derby\schema\prefs-schema.sql
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\sql\derby\schema\registry-schema.sql to C:\Progr
am FilesFYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.por
tals.jetspeed-2\target\portal-sql\derby\schema\registry-schema.sql


j2:_check.required.properties:

j2ortal.conf.ldap:
[delete] Deleting directory C:\Program FilesFYPJApache Jetspeed 2.0org.apach
e.jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-ldap
[mkdir] Created dir: C:\Program FilesFYPJApache Jetspeed 2.0org.apache.jetsp
eed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-ldap
[copy] Copying 2 files to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.
jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-ldap
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\apacheds\j2-apacheds.ldif to C:\Program FilesFYP
JApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jetspe
ed-2\target\portal-ldap\j2-apacheds.ldif
[copy] Copying C:\Documents and Settings\Workspace\.maven\cache\maven-jetspe
ed2-plugin-2.0\plugin-resources\apacheds\apacheds-server.xml to C:\Program Files
FYPJApache Jetspeed 2.0org.apache.jetspeed.portal.groupId=org.apache.portals.jet
speed-2\target\portal-ldap\apacheds-server.xml

j2:_check.required.properties:

j2ortal.conf.ojb:
[copy] Copying 6 files to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.
jetspeed.portal.groupId=org.apache.portals.jetspeed-2\target\jetspeed\WEB-INF\cl
asses

j2:_check.required.properties:

j2ortal.conf.jetspeed:
[copy] Copying 1 file to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.j
etspeed.portal.groupId=org.apache.portals.jetspeed-2\target\jetspeed\WEB-INF\con
f

j2:_check.required.properties:

j2ortal.conf.tomcat:
[copy] Copying 1 file to C:\Program FilesFYPJApache Jetspeed 2.0org.apache.j
etspeed.portal.groupId=org.apache.portals.jetspeed-2\target\portal-conf\tomcat
Starting the reactor...
Our processing order:
Jetspeed-2 Security LDAP Schema Components
+----------------------------------------
| Generate Jetspeed 2 schema Jetspeed-2 Security LDAP Schema Components
| Memory: 15M/19M
+----------------------------------------

jetspeed2:schema:
build:start:

directory:schema:
directory:init:

directoryrepare-filesystem:
[mkdir] Created dir: C:\Program Files\FYPJ\Apache Jetspeed 2.0\components\se
curity-schema\target\schema

directory:generate:
[echo] Generated schema producer classes for jetspeed.schema
[touch] Creating C:\Program Files\FYPJ\Apache Jetspeed 2.0\components\securi
ty-schema\target\schema\.flagfile
Starting the reactor...
Our processing order:
Jetspeed-2 Core API
Jetspeed-2 Portal Commons
Jetspeed-2 Component Manager
Jetspeed-2 RDBMS Components
Jetspeed-2 Preferences SPI Components
Jetspeed-2 Security Components
Jetspeed-2 Single Sign On Components
Apache Portals Gems
Java Portlet API
Jetspeed-2 Enterprise Portal Content Server
Jetspeed-2 Template Locator
Jetspeed-2 Deploy Tools
Jetspeed-2 Portlet Factory
Jetspeed-2 Registry Components
Jetspeed-2 Portal Statistics Components
Jetspeed-2 File Cache
Jetspeed-2 ID Generator
Jetspeed-2 Profiler
Jetspeed-2 Page Manager
Jetspeed-2 Portal Site
Jetspeed-2 Components
Jetspeed-2 Search Component
Jetspeed-2 Capability Components
Jetspeed-2 Header Resource Management
Jetspeed-2 Portal Components
Jetspeed-2 Rewriter Component
Jetspeed-2 Web Content
Jetspeed-2 Security LDAP Schema Components
Jetspeed 2 TreeControl TagLib
+----------------------------------------
| Build and Install all Jetspeed 2 jars Jetspeed-2 Core API
| Memory: 17M/28M
+----------------------------------------


build:end:


jetspeed2:jar:install:
build:start:

javarepare-filesystem:
[mkdir] Created dir: C:\Program Files\FYPJ\Apache Jetspeed 2.0\jetspeed-api\
target\classes

java:compile:
[echo] Compiling to C:\Program Files\FYPJ\Apache Jetspeed 2.0\jetspeed-api/t
arget/classes
[javac] Compiling 259 source files to C:\Program Files\FYPJ\Apache Jetspeed
2.0\jetspeed-api\target\classes
[javac] javac: invalid flag: C:\Program
[javac] Usage: javac <options> <source files>
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info
[javac] -nowarn Generate no warnings
[javac] -verbose Output messages about what the compiler
is doing
[javac] -deprecation Output source locations where deprecate
d APIs are used
[javac] -classpath <path> Specify where to find user class files
[javac] -cp <path> Specify where to find user class files
[javac] -sourcepath <path> Specify where to find input source file
s
[javac] -bootclasspath <path> Override location of bootstrap class fi
les
[javac] -extdirs <dirs> Override location of installed extensio
ns
[javac] -endorseddirs <dirs> Override location of endorsed standards
path
[javac] -d <directory> Specify where to place generated class
files
[javac] -encoding <encoding> Specify character encoding used by sour
ce files
[javac] -source <release> Provide source compatibility with speci
fied release
[javac] -target <release> Generate class files for specific VM ve
rsion
[javac] -version Version information
[javac] -help Print a synopsis of standard options
[javac] -X Print a synopsis of nonstandard options

[javac] -J<flag> Pass <flag> directly to the runtime sys
tem
[javac]

BUILD FAILED
File...... C:\Program Files\FYPJ\Apache Jetspeed 2.0\maven.xml
Element... maven:reactor
Line...... 164
Column.... 108
Unable to obtain goal [java:compile] -- C:\Documents and Settings\Workspace\.mav
en\cache\maven-java-plugin-1.5\plugin.jelly:63:48: <ant:javac> Compile failed; s
ee the compiler error output for details.
Total time: 28 seconds
Finished at: Tue Jan 24 14:32:28 PST 2006



HELP!


I am using,

Maven 1.0.2
Jetspeed 2
JDK 1.5.6
Tomcat 5.5.12

thanks ppl : )

Thanks and regard,
Snowyice

Last edited by snowyice; 01-24-2006 at 01:04 AM.
 
Old 01-24-2006, 01:15 AM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
sorry... I saw "C:\...." and I zoned back to grade school....
 
Old 01-24-2006, 01:23 AM   #3
snowyice
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Original Poster
Rep: Reputation: 15
haha.. i am running this program on linux fedora core 4 and window XP.. but they hit the same problem.. I need HELPPPP..
 
Old 01-24-2006, 02:47 AM   #4
snowyice
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Original Poster
Rep: Reputation: 15
Haiz.. thanks god.. i solve it myself.. keke

Instead of Program Files -> Program_Files
Instead of Aparche Jetspeed -> Aparche_Jetspeed..

Simple.. no space allow during calling in command prompt.. that why my ant echo print out "C:\Program "

It is the same for linux.. : )

Hope this msg help ppls.. Thanks!
 
Old 01-24-2006, 08:09 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming: Java Runtime Environment not found when trying to compile murbz Linux - Software 2 03-26-2009 03:04 AM
how to install maven? snowyice Linux - Software 0 01-08-2006 08:16 PM
FC4 install hang, unable to obtain lock n0xvb Fedora 3 07-11-2005 04:32 AM
unable to obtain socket and address of client David@330 Linux - Newbie 5 06-01-2005 09:23 AM
unable to obtain ip address from dhcp server (Fedora Core 1) zero79 Linux - Hardware 5 11-15-2003 01:42 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration