Unable to run the project when the Custom Component has the Custom Jar file

Hi…
In my project, i have an app component, the app component has an custom jar file… The App Component is executing successfully with the Jar file… But when i execute my main project along with App Component. Im getting the following error… So, the project is not assembling…

[16:26:25.010] Cleaning, building and creating/updating IDE project files
[16:26:25.010] Executing Gradle tasks: clean assemble idea
[16:26:25.019] Changes have been saved
:pmm-core:clean
:pmm-global:clean
:pmm-gui:clean
:pmm-web:clean
:pmm-core:assembleDbScripts
:pmm-core:dbScriptsArchive
:pmm-core:beansXml
:pmm-global:beansXml
:pmm-global:processResources
:pmm-global:buildInfo
:pmm-global:compileJavaNote: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

:pmm-global:classes
:pmm-global:jar
:pmm-core:compileJava NO-SOURCE
:pmm-core:processResources
:pmm-core:classes
:pmm-core:jar
:pmm-core:sourceJar
:pmm-core:assemble
:pmm-global:sourceJar
:pmm-global:assemble
:pmm-gui:beansXml
:pmm-gui:compileJava NO-SOURCE
:pmm-gui:processResources
:pmm-gui:classes
:pmm-gui:jar
:pmm-gui:sourceJar
:pmm-gui:assemble
:pmm-web:beansXml
:pmm-web:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':pmm-web:compileClasspath'.
> Could not resolve com.ipt.project.eps:eps-web:0.1-SNAPSHOT.
Required by:
project :pmm-web
> Could not resolve com.ipt.project.eps:eps-web:0.1-SNAPSHOT.
> Could not parse POM C:\Users\IPT\.m2\repository\com\ipt\project\eps\eps-web\0.1-SNAPSHOT\eps-web-0.1-SNAPSHOT.pom
> Unable to resolve version for dependency 'epsChartView:orgchart:jar'
> Could not resolve com.ipt.project.eps:eps-web:0.1-SNAPSHOT.
> Unable to load Maven meta-data from https://repo.cuba-platform.com/content/groups/premium/com/ipt/project/eps/eps-web/0.1-SNAPSHOT/maven-metadata.xml.
> Could not get resource 'https://repo.cuba-platform.com/content/groups/premium/com/ipt/project/eps/eps-web/0.1-SNAPSHOT/maven-metadata.xml'.
> Could not GET 'https://repo.cuba-platform.com/content/groups/premium/com/ipt/project/eps/eps-web/0.1-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 57s
22 actionable tasks: 22 executed
[16:28:22.616] Task 'clean, assemble, idea' failed
org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.UnresolvedDependencyVersionException: Unable to resolve version for dependency 'epsChartView:orgchart:jar'

Hi,
How do you connect the “custom jar” to the app component project? Where is it located? Did you install the app component into Maven local before using it in the project?

Hi… thanks for the reply…

           1) I have connected the Jar file in the Project Properties > Advanced WebModule - compile('myChart:orgchart')


           2) I've updated the build.grade with the following code...
        maven {
            url 'https://repo.cuba-platform.com/content/groups/work'
            credentials {
                username(rootProject.hasProperty('repoUser') ? rootProject['repoUser'] : 'cuba')
                password(rootProject.hasProperty('repoPass') ? rootProject['repoPass'] : 'cuba123')
            }
        }
       flatDir {dirs "$project.rootDir/deploy/tomcat/lib"}
    }

          3. Yes, i installed the app component into Maven Local and then i tried to assemble the project...

Dependencies from the file system are not inherited by the derived projects. Either include this dependency to the application project too, or upload it to a Maven repository.