maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alon Bar-Lev (JIRA)" <>
Subject [jira] (MNG-5409) Support deployment in offline modefor 'file' protocol
Date Thu, 13 Dec 2012 00:18:13 GMT
Alon Bar-Lev created MNG-5409:

             Summary: Support deployment in offline modefor 'file' protocol
                 Key: MNG-5409
             Project: Maven 2 & 3
          Issue Type: Improvement
          Components: Artifacts and Repositories, Deployment
    Affects Versions: 3.0.4
         Environment: Linux
            Reporter: Alon Bar-Lev

Please refer to MDEPLOY-90.

The deploy plugin is a useful way to pack all project artifacts into maven repository structure.
It is required for example when you package an application for package manager, so you need
the artifacts as maven repository locally so it can be packaged.

I see no sense in limiting deploy plugin in case of repository is at file:// protocol, as
file:// is not offline.

Please support this, or allow another mechanism to create locally maven repository of project

Methods I tried: create repository using assembly - but binaries cannot be digested, create
repository using dependency plugin - but I need to explicitly build the project in unique
structure and explicitly specify dependencies.

The deploy plugin is the right way to do this, it is just the offline limitation inhibit the
use of it.

So patch is simple for deploy plugin... HOWEVER the plugin is a complete void, as the whole
deployment implementation is done internally in sources that are not provided by the standard
apache maven download.

Anyway, found this[1], the meaning is that unless the whole maven implementation will skip
offline check if protocol is "file", it cannot be done.

For the record, with the patch:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8-SNAPSHOT:deploy
(default-deploy) on project XXX: The repository system is in offline mode, deployment impossible
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(
at org.apache.maven.DefaultMaven.doExecute(
at org.apache.maven.DefaultMaven.execute(
at org.apache.maven.cli.MavenCli.execute(
at org.apache.maven.cli.MavenCli.doMain(
at org.apache.maven.cli.MavenCli.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
at org.codehaus.plexus.classworlds.launcher.Launcher.main(
Caused by: org.apache.maven.plugin.MojoExecutionException: The repository system is in offline
mode, deployment impossible
at org.apache.maven.plugin.deploy.DeployMojo.execute(
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(
... 19 more
Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: The repository
system is in offline mode, deployment impossible
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(
at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(
at org.apache.maven.plugin.deploy.DeployMojo.execute(
... 21 more
Caused by: org.sonatype.aether.deployment.DeploymentException: The repository system is in
offline mode, deployment impossible
at org.sonatype.aether.impl.internal.DefaultDeployer.deploy(
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(
... 23 more


This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message