Hi ,

I am new to Maven. I am currenty trying to explore Maven with all the
plugins.

Currently I am exploring PDF plugin. My OS is Windows XP and I am using
Maven 7.0

I have added all the required jars in the classpath as Dependency in my
project.xml viz.
       <dependency>
        <id>fop</id>
                <version>0.20.3</version>
     </dependency>

       <dependency>
        <id>batik</id>
                <version>1.1.1</version>
     </dependency>

       <dependency>
        <id>logkit</id>
                <version>1.0.1</version>
     </dependency>


       <dependency>
        <id>avalon-framework</id>
                <version>4.0</version>
     </dependency>

      <dependency>
        <id>xerces</id>
                <version>1.2.3</version>
     </dependency>

When i execute -> maven pdf , I get the following error
"
fo:fo:
    [java]

fo:

pdf:pdf:
    [java] java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop
    [java] Exception in thread "main"
    [java] [ERROR] Java Result: 1

pdf:
"
However, if on the same command prompt window I set the Classpath manually
mentioning the path of all the above 5jars then it works fine.

Do we need to set the class-path manually everytime when we execute maven.

Kindly Advice.

Thanks in advance


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to