Maven compile plugin

Posted by phanikiran on Stack Overflow See other posts from Stack Overflow or by phanikiran
Published on 2011-01-05T10:39:59Z Indexed on 2011/01/05 15:53 UTC
Read the original article Hit count: 301

Filed under:

Hi every body,

in pom of a project, i have added dependency with scope compile . which is a jar file which contains some class file and jar's as well. my current java file needs internal jars of dependent jar to compile.

But maven compile goal returning compilation error . :banghead:

All the jar's needed to compile are in the single jar file which is added in dependency.............................

Please help me!

my pom:

<dependency>
    <groupId>eagle</groupId>
    <artifactId>zkui</artifactId>
    <version>360LTS</version>
    <type>jar</type>
    <scope>compile</scope>
</dependency>
<build>
  <sourceDirectory>./src/main/java/</sourceDirectory>
  <outputDirectory>./target/classes/</outputDirectory>
  <finalName>${project.groupId}-${project.artifactId}</finalName>
  <plugins>
  <plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>2.2</version>
  <configuration>
  <source>1.6</source>
 <target>1.6</target>
</plugin>
</plugins>
</build>
</project>

error:

package org.zkoss.zk.ui does not exist this package org.zkoss.zk.ui is in jar file zkex.jar which is in dependency jar eagle:zkui:360LTS jar file

Please Help ME!!!! :jumpingjoy:

Advance Thanks

© Stack Overflow or respective owner

Related posts about maven-plugin