Using local maven repository and offline mode in network restricted / secured environment
Issue
- I am trying to setup local maven repository in a network restricted / secured environment, how do I prevent maven from connecting to internet.
- I have installed JBoss BRMS / BPM Suite 6 and the local maven repository, but the integrated maven is still trying to connect to public URL, for example, I see this log:
00:02:26,542 FINE [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] (pool-28-thread-1) Releasing connection [{}->http://repo1.maven.org][null]
... ...
00:02:26,646 FINE [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager] (pool-32-thread-1) Get connection: {}->http://repo1.maven.org, timeout = 0
00:02:26,647 FINE [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] (pool-32-thread-1) [{}->http://repo1.maven.org] total kept alive: 0, total issued: 2, total allocated: 2 out of 40
00:02:26,647 FINE [org.apache.http.impl.conn.tsccm.ConnPoolByRoute] (pool-32-thread-1) No free connections [{}->http://repo1.maven.org][null]
- How can I setup offline mode for maven ?
- When I create/build a project via business-central in RHPAM offline env, I get the error.
[FATAL] Non-readable POM : input contained no data @
for project
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:168)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:126)
at org.appformer.maven.integration.embedder.MavenEmbedder.readProject(MavenEmbedder.java:308)
at org.appformer.maven.integration.embedder.MavenProjectLoader.parseMavenPom(MavenProjectLoader.java:91)
... 88 more
Environment
- Red Hat JBoss BPM Suite
- 6
- Red Hat JBoss BRMS
- 6
- Red Hat Process Automation Manager (RHPAM)
- 7
- Red Hat Decision Manager (RHDM)
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.