felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Boehme <sandro.boe...@gmx.de>
Subject Re: bundle:deploy does not copy the artefact to the remote repository?
Date Sun, 12 Feb 2012 13:01:40 GMT
Solved:
The 409 conflict might come from http not being able to create folders.
I changed from the LightweightHttpWagon to the WebDAV wagon by adding 
"dav:" to my OBR-URL to have it look like that 
"dav:http://localhost:8080/obr".
And I added the build extension like this
<extensions>
        	<extension>
             	<groupId>org.apache.maven.wagon</groupId>
             	<artifactId>wagon-webdav</artifactId>
             	<version>1.0-beta-2</version>
        	</extension>
</extensions>
</build>
As Sling contains a preconfigured Jackrabbits WebDAV connector it was as 
easy as that. Now I have my OBR running in Apache Sling.

Best,

Sandro

Am 11.02.12 22:20, schrieb Sandro Boehme:
> Am 11.02.12 22:04, schrieb Stuart McCulloch:
>> On 11 Feb 2012, at 20:53, Sandro Boehme wrote:
>>> Hi,
>>>
>>> I'd like to deploy the bundle of my project to a remote obr.
>>> To dry run that locally I created a http://localhost:8080/obr folder
>>> via WebDAV in Sling and copied a small repository.xml (and
>>> obr2html.xsl) to that location. I also updated the pom with the
>>> distributionManagement information and added the credentials to the
>>> settings.xml.
>>> "mvn install bundle:deploy" successfully updates the repository.xml
>>> with the bundles manifest information but it doesn't copy all the
>>> artifacts (jar, pom, ...) to
>>> http://localhost:8080/obr/<path-from-group/version.
>>> Shouldn't bundle:deploy do that similar to deploy:deploy?
>>
>> we don't want to duplicate the deploy plugin inside Felix, so
>> bundle:deploy only uploads OBR metadata - it assumes the bundle has
>> been uploaded by deploy:deploy
>>
>> if your project has 'bundle' packaging then you should be able to just
>> use "mvn clean deploy -PremoteOBR" to upload both the bundle and the
>> OBR metadata
> Hm, I get an 409 Error when using -DremoteOBR=<repositoryID>
> Does somebody has an idea what the reason could be?
>
> Best,
>
> Sandro
>
> Attached you find the -X error output
>
> Uploading:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar
>
> Uploading:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.pom
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4.423s
> [INFO] Finished at: Sat Feb 11 22:17:56 CET 2012
> [INFO] Final Memory: 7M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy)
> on project jcrbrowser: Failed to deploy artifacts: Could not transfer
> artifact org.sboehme:jcrbrowser:jar:1.2-20120211.211756-1 from/to
> localhost-obr (http://localhost:8080/obr): Failed to transfer file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy
> (default-deploy) on project jcrbrowser: Failed to deploy artifacts:
> Could not transfer artifact
> org.sboehme:jcrbrowser:jar:1.2-20120211.211756-1 from/to localhost-obr
> (http://localhost:8080/obr): Failed to transfer file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to
> deploy artifacts: Could not transfer artifact
> org.sboehme:jcrbrowser:jar:1.2-20120211.211756-1 from/to localhost-obr
> (http://localhost:8080/obr): Failed to transfer file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409
> at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:193)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>
> ... 19 more
> Caused by:
> org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed
> to deploy artifacts: Could not transfer artifact
> org.sboehme:jcrbrowser:jar:1.2-20120211.211756-1 from/to localhost-obr
> (http://localhost:8080/obr): Failed to transfer file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:141)
>
> at
> org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy(AbstractDeployMojo.java:167)
>
> at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:157)
> ... 21 more
> Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to
> deploy artifacts: Could not transfer artifact
> org.sboehme:jcrbrowser:jar:1.2-20120211.211756-1 from/to localhost-obr
> (http://localhost:8080/obr): Failed to transfer file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409
> at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:284)
>
> at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:215)
>
> at
> org.sonatype.aether.impl.internal.DefaultRepositorySystem.deploy(DefaultRepositorySystem.java:480)
>
> at
> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:137)
>
> ... 23 more
> Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could
> not transfer artifact org.sboehme:jcrbrowser:jar:1.2-20120211.211756-1
> from/to localhost-obr (http://localhost:8080/obr): Failed to transfer
> file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:949)
>
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:940)
>
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.flush(WagonRepositoryConnector.java:864)
>
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:466)
>
> at
> org.sonatype.aether.impl.internal.DefaultDeployer.deploy(DefaultDeployer.java:278)
>
> ... 26 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Failed to
> transfer file:
> http://localhost:8080/obr/org/sboehme/jcrbrowser/1.2-SNAPSHOT/jcrbrowser-1.2-20120211.211756-1.jar.
> Return code is: 409
> at
> org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:205)
>
> at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413)
> at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392)
> at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365)
> at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector$PutTask.run(WagonRepositoryConnector.java:825)
>
> at
> org.sonatype.aether.connector.wagon.WagonRepositoryConnector.put(WagonRepositoryConnector.java:465)
>
> ... 27 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message