Getting error while deploying artifacts into business central when maven repository in offline mode

Solution Unverified - Updated -

Issue

BPMS/BRMS server is using setting.xml in which <offline>true</offline> tag is added, but when we try to Build&Deploy project it fails with below exception:

  • 6.x
org.kie.workbench.common.services.backend.builder.BuildServiceImpl buildAndDeploy org.eclipse.aether.deployment.DeploymentException: Cannot deploy while guvnor-m2-repo (file:/home/user/jboss-eap6.4/bin/repositories/kie/) is in offline mode
. . .
Caused by: org.eclipse.aether.deployment.DeploymentException: Cannot deploy while guvnor-m2-repo (file:/home/user/jboss-eap6.4/bin/repositories/kie/) is in offline mode
        at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:237)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:413)
        at org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(GuvnorM2Repository.java:357)
        ... 69 more
Caused by: org.eclipse.aether.transfer.RepositoryOfflineException: Cannot access guvnor-m2-repo (file:/home/user/jboss-eap6.4/bin/repositories/kie/) in offline mode
. . . 
  • 7.x
[org.kie.workbench.common.services.backend.builder.core.BuildHelper] (default task-3)  org.eclipse.aether.deployment.DeploymentException: Cannot deploy while global-m2-repo (file:/home/user/jboss-eap-7.2/bin/repositories/kie/global/) is in offline mode: java.lang.RuntimeException: org.eclipse.aether.deployment.DeploymentException: Cannot deploy while global-m2-repo (file:/home/user/jboss-eap-7.2/bin/repositories/kie/global/) is in offline mode
 ...
Caused by: org.eclipse.aether.deployment.DeploymentException: Cannot deploy while global-m2-repo (file:/home/user/jboss-eap-7.2/bin/repositories/kie/global/) is in offline mode
        at org.eclipse.aether.internal.impl.DefaultDeployer.deploy(DefaultDeployer.java:237)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:420)
        at org.guvnor.m2repo.backend.server.repositories.FileSystemArtifactRepository.deploy(FileSystemArtifactRepository.java:172)
        ... 107 more
Caused by: org.eclipse.aether.transfer.RepositoryOfflineException: Cannot access global-m2-repo (file:/home/user/jboss-eap-7.2/bin/repositories/kie/global/) in offline mode
 ...

Environment

  • Red Hat JBoss BPM Suite
    • 6.x
  • Red Hat JBoss BRMS
    • 6.x
  • Red Hat Process Automation Manager
    • 7.x
  • Red Hat Decision Manager
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content