maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "khote" <kh...@mminternet.com>
Subject Re: calling ant and classpath problem
Date Mon, 01 Dec 2003 14:44:32 GMT
The maven hibernate plugin doesn't work, so I wrote this stuff to get it to
work:

  <goal name="createdb:taskdef" description="Define the schemaexport task to
both Ant and XDoclet">
    <ant:path id="project.classpath">
      <ant:path refid="maven.dependency.classpath"/>
      <ant:pathelement path="${maven.build.dest}"/>
      <ant:pathelement path="${basedir}/conf/hibernate.properties"/>
    </ant:path>
    <ant:taskdef name="schemaexport"
                 classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
                 classpathref="project.classpath"
    />
  </goal>


maven.dependency.classpath won't echo because it's a reference, you would
have to iterate through it to see what's in it.
Also make sure that you use classpathref="project.classpath" and not
classpathref=${project.classpath}, same with maven.dependency.classpath

----- Original Message ----- 
From: "Geesken, Edmund" <Edmund.Geesken@drkw.com>
To: <users@maven.apache.org>
Sent: Monday, December 01, 2003 6:14 AM
Subject: calling ant and classpath problem


> I have executed maven with the -X setting.
>
> And the result is, that the maven.dependency.classpath is set but in my
> maven.xml goal not accessible. The ant:echo returns an empty string.
>
> The ant:jspc is therefore called with the system classpath witch is not
> prepared for this compilation.
>
>
>
> Any ideas??
>
>
>
> Regards
>
> Edmund
>
> --------------------------------------------------------------------------
--
> --------------------------------------------------------------------------
--
> -----------------------------------------------------------
>
> The output with -X
>
>
>
>
>
> C:\Lim\MAVEN>maven Work:doCompile -X
>
>  __  __
>
> |  \/  |__ _Apache__ ___
>
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
>
>
>
> [DEBUG] Adding reference: maven.dependency.classpath ->
> C:\maven-1.0\repository\framework\jars\struts-1.1.jar;C:\maven-1.0\reposit
>
>
ory\jboss\jars\commons-httpclient-1.0.jar;C:\maven-1.0\repository\jboss\jars
> \concurrent-1.0.jar;C:\maven-1.0\repository\jboss\jars
>
>
\getopt-1.0.jar;C:\maven-1.0\repository\jboss\jars\gnu-regexp-1.0.jar;C:\mav
> en-1.0\repository\jboss\jars\jboss-boot-1.0.jar;C:\mav
>
>
en-1.0\repository\jboss\jars\jboss-common-1.0.jar;C:\maven-1.0\repository\jb
> oss\jars\jboss-jmx-1.0.jar;C:\maven-1.0\repository\jbo
>
>
ss\jars\jboss-system-1.0.jar;C:\maven-1.0\repository\jboss\jars\jdom-1.0.jar
> ;C:\maven-1.0\repository\jboss\jars\log4j-boot-1.0.jar
>
>
;C:\maven-1.0\repository\jboss\jars\webdavlib-1.0.jar;C:\maven-1.0\repositor
> y\jboss\jars\xml-apis-1.0.jar;C:\maven-1.0\repository\
>
>
jboss\jars\jboss-j2ee-1.0.jar;C:\maven-1.0\repository\jboss\jars\activation-
> 1.0.jar;C:\maven-1.0\repository\jboss\jars\commons-bea
>
>
nutils-1.0.jar;C:\maven-1.0\repository\jboss\jars\jasper-compiler-1.0.jar;C:
> \maven-1.0\repository\jboss\jars\jasper-runtime-1.0.ja
>
>
r;C:\maven-1.0\repository\jboss\jars\javax.servlet-1.0.jar;C:\maven-1.0\repo
> sitory\jboss\jars\jboss-3.2.jar;C:\maven-1.0\repositor
>
>
y\jboss\jars\gdsrealm-1.0.jar;C:\maven-1.0\repository\jfreechart\jars\jfreec
> hart-0.9.8.jar;C:\maven-1.0\repository\jfreechart\jars
>
>
\jcommon-0.8.0.jar;C:\maven-1.0\repository\jfreechart\jars\batik-awt-util-1.
> 0.jar;C:\maven-1.0\repository\jfreechart\jars\batik-ut
>
>
il-1.0.jar;C:\maven-1.0\repository\jfreechart\jars\batik-dom-1.0.jar;C:\mave
> n-1.0\repository\jfreechart\jars\batik-svggen-1.0.jar;
>
>
C:\maven-1.0\repository\jfreechart\jars\cewolf-1.0.jar;C:\maven-1.0\reposito
> ry\cactus\jars\cactus-1.0.jar;C:\maven-1.0\repository\
>
>
junit\jars\junit-3.8.1.jar;C:\maven-1.0\repository\klg\jars\jcchart-4.5.1.ja
> r;C:\maven-1.0\repository\klg\jars\jcpagelayout-4.5.1.
>
>
jar;C:\maven-1.0\repository\electric\jars\electric_xml-1.0.jar;C:\maven-1.0\
> repository\netscape\jars\ldapjdk-1.0.jar;C:\maven-1.0\
>
>
repository\openadaptor\jars\openadaptor-1.0.jar;C:\maven-1.0\repository\j2ee
> -project\jars\mail-1.0.jar;C:\maven-1.0\repository\j2e
>
>
e-project\jars\poi-1.0.jar;C:\maven-1.0\repository\j2ee-project\jars\jstl-1.
> 0.jar;C:\maven-1.0\repository\j2ee-project\jars\standa
>
>
rd-1.0.jar;C:\maven-1.0\repository\j2ee-project\jars\xalan-1.0.jar;C:\maven-
> 1.0\repository\j2ee-project\jars\xercesImpl-1.0.jar;C:
>
>
\maven-1.0\repository\dreba\jars\rmt_riskengine-1.0.jar;C:\maven-1.0\reposit
> ory\database\jars\jconn2-1.0.jar
>
>     [available] [VERBOSE] Found: C:\Lim\SOURCE
>
>     [available] [VERBOSE] Found: C:\Lim\TESTS\JUNIT
>
> [DEBUG] Adding reference: maven-classpath ->
>
> [DEBUG] Adding reference: maven.compile.src.set ->
>
> [DEBUG] Adding reference: maven.test.compile.src.set ->
>
> Work:doCompile:
>
> [DEBUG] fileset: Setup scanner in dir
> C:\Lim\jboss\server\default\deploy\default.war\crossdisp with patternSet{
> includes: [**
>
> /*.jsp] excludes: [WEB-INF/*] }
>
>     [echo] ::region.jsp
>
>     [echo]
> ::C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty\region.jsp
>
>     [echo] ::C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty
>
> Work:compileJSP:
>
>     [echo]
>
...C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty\region.jsp.
> ..
>
>     [echo] .maven.....
>
>     [echo] .pom.....
>
>     [echo] .classpath.....
>
> <classpath><pathelement
>
path="c:/Lim/jboss/server/default/deploy/default.war/WEB-INF/classes"></path
> element></classpath>    [j
>
> spc] [DEBUG] fileset: Setup scanner in dir
> C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty with
> patternSet{ inc
>
> ludes: [region.jsp] excludes: [] }
>
>     [jspc] [VERBOSE] Compiling
> C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty\region.jsp
> becaus
>
> e java file
> C:\Lim\jboss\server\default\deploy\default.war\jsptmp\region.java does not
> exist
>
>     [jspc] [VERBOSE] compiling 1 files
>
>     [jspc] Compiling 1 source
> fileC:\Lim\jboss\server\default\deploy\default.war\jsptmp
>
>     [jspc] [VERBOSE] Using jasper compiler
>
>     [jspc] [VERBOSE] Compilation Executing '-d' with arguments:
>
> 'C:\Lim\jboss\server\default\deploy\default.war\jsptmp'
>
> '-v9'
>
> '-die9'
>
>
>
> The ' characters around the executable and arguments are
>
> not part of the command.
>
>
>
>     [jspc] [VERBOSE] File to be compiled:
>
>
C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty\region.jsp
>
>
>
>     [jspc] [DEBUG]    +Task: java
>
>     [jspc] [DEBUG] using system classpath:
> C:\maven-1.0\lib\forehead-1.0-beta-5.jar
>
>     [jspc] [VERBOSE] Executing 'C:\jdk\jre\bin\java.exe' with arguments:
>
> '-classpath'
>
> 'C:\maven-1.0\lib\forehead-1.0-beta-5.jar'
>
> 'org.apache.jasper.JspC'
>
> '-d'
>
> 'C:\Lim\jboss\server\default\deploy\default.war\jsptmp'
>
> '-v9'
>
> '-die9'
>
> 'C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty\region.jsp'
>
>
>
> The ' characters around the executable and arguments are
>
> not part of the command.
>
>
>
>     [jspc] [DEBUG] Execute:Java13CommandLauncher: Executing
> 'C:\jdk\jre\bin\java.exe' with arguments:
>
> '-classpath'
>
> 'C:\maven-1.0\lib\forehead-1.0-beta-5.jar'
>
> 'org.apache.jasper.JspC'
>
> '-d'
>
> 'C:\Lim\jboss\server\default\deploy\default.war\jsptmp'
>
> '-v9'
>
> '-die9'
>
> 'C:\Lim\jboss\server\default\deploy\default.war\crossdisp\cpty\region.jsp'
>
>
>
> The ' characters around the executable and arguments are
>
> not part of the command.
>
>
>
>     [jspc] java.lang.NoClassDefFoundError: org/apache/jasper/JspC
>
>     [jspc] Exception in thread "main"
>
>
>
> BUILD FAILED
>
> File...... file:/C:/Lim/MAVEN/
>
> Element... ant:jspc
>
> Line...... 25
>
> Column.... 27
>
>
>
> --------------------------------------------------------------------------
------
> The information contained herein is confidential and is intended solely
for the
> addressee. Access by any other party is unauthorised without the express
> written permission of the sender. If you are not the intended recipient,
please
> contact the sender either via the company switchboard on +44 (0)20 7623
8000, or
> via e-mail return. If you have received this e-mail in error or wish to
read our
> e-mail disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender.
> --------------------------------------------------------------------------
------
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message