You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "George McCone (JIRA)" <ji...@apache.org> on 2019/06/21 02:55:00 UTC

[jira] [Created] (MDEPLOY-258) Unable to deploy artifacts of package type bundle

George McCone created MDEPLOY-258:
-------------------------------------

             Summary: Unable to deploy artifacts of package type bundle
                 Key: MDEPLOY-258
                 URL: https://issues.apache.org/jira/browse/MDEPLOY-258
             Project: Maven Deploy Plugin
          Issue Type: Bug
          Components: deploy:deploy
    Affects Versions: 3.0.0-M1
         Environment: Windows 10, Maven 3.5.3, Java 1.8
            Reporter: George McCone


We have a mixture of artifacts that are basic java jar and osgi bundles. When perfoming a deploy:deploy on the bundle project, we receive the following error.

 
{code:java}
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy (default-deploy) on project com.test.dummy: ArtifactDeployerException: Failed to retrieve remote metadata com.test.dummy:com.test.dummy:1.0.1-SNAPSHOT/maven-metadata.xml: Could not transfer metadata com.test.dummy:com.test.dummy:1.0.1-SNAPSHOT/maven-metadata.xml from/to snapshots::default (http://repo01:8081/artifactory/libs-snapshot-local): C:\Users\svc-jenkins\.m2\repository\com.test.dummy\com.test.dummy\1.0.1-SNAPSHOT\maven-metadata-snapshots::default.xml.part.lock (The filename, directory name, or volume label syntax is incorrect) -> [Help 1] 
{code}
Previous artifacts in the project properly deployed, but these artifacts were of packaging jar, fails on the first artifact of packaging of type bundle. Same error occurs is we try and deploy just the bundle artifact as well. 

 

If I change the package type from bundle to jar, the artifact then deploys properly, but then the maven-bundle-plugin then doesn't properly generate the MANIFEST.MF file.

pom file exhibiting the problem.

 
{noformat}
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
  <groupId>com.test.dummy</groupId>
  <artifactId>dummy-parent</artifactId>
  <version>1.0.1-SNAPSHOT</version>
</parent>
<artifactId>com.test.dummy</artifactId>
<packaging>bundle</packaging>
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <version>4.2.0</version>
      <extensions>true</extensions>
      <configuration>
        <manifestLocation>META-INF</manifestLocation>
        <instructions>
          <Embed-Dependency>dummy-foss;scope=compile|runtime</Embed-Dependency>
          <Export-Package>com.test.dummy,
            com.test.dummy.annotation,
            com.test.dummy.statistics</Export-Package>
        </instructions>
      </configuration>
    </plugin>
  </plugins>
</build>
<dependencies>
  <dependency>
    <groupId>com.test.dummy</groupId>
    <artifactId>dummy-annotations</artifactId>
    <version>1.0.1-SNAPSHOT</version>
  </dependency>
</dependencies>
</project>{noformat}
 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)