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: j2:portal.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: j2:portal.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: j2:portal.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: j2:portal.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: j2:portal.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: directory:prepare-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: java:prepare-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 |
sorry... I saw "C:\...." and I zoned back to grade school....
|
haha.. i am running this program on linux fedora core 4 and window XP.. but they hit the same problem.. I need HELPPPP..
|
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! |
Moved: This thread is more suitable in General and has been moved accordingly to help your thread/question get the exposure it deserves.
|
All times are GMT -5. The time now is 06:31 PM. |