Maven dependency compile error : package does not exist

793 views Asked by At

Maven dependency compile error : package does not exist

I have maven parent project which has dependency with another child project's jar file.

Child's jar file is build and success. When building parent again, I got "package does not exist" error.

When I extract the jar file using 7-zip which is present in 'target' location, those packages and its files does exist. I extracted the jar file using 'jar command'as well, files are present. But, when I open the same jar file using Beyond compare 3, those packages are missing.

Somehow maven and Beyond compare unable to identify the packages or is it different problems with maven and beyond compare? I am not sure. After breaking head for two days, no clue about it.

I am using Eclipse Kepler IDE and there are no compilation errors in the project.

Below is the maven version

enter image description here

Below is the artifact code

<groupId>net.pi.run.cut</groupId>
    <artifactId>run.cut.receive.mba</artifactId>
    <version>7.8.3</version>
    <packaging>jar</packaging>

and the dependency code

<dependency>
            <groupId>net.pi.run.cut</groupId>
            <artifactId>run.cut.receive.mba</artifactId>
            <version>7.8.3</version>
        </dependency>

Old 7.8.1 version is working fine. Jar has all content.

Below is the img from beyond compare tool, where it doesn't identify the package and its files. P.S. I m necessarily scrapping the folder names with purpose.

enter image description here

Below is the image sample from 7-zip

enter image description here

All your suggestions are welcome.

0

There are 0 answers