Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jf mvn install with osgi bundle doesn't upload pom #1721

Closed
gregoryboue opened this issue Oct 14, 2022 · 2 comments
Closed

jf mvn install with osgi bundle doesn't upload pom #1721

gregoryboue opened this issue Oct 14, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@gregoryboue
Copy link

Describe the bug

With a simple maven project which have a pom with a bundle packaging and use maven plugin org.apache.felix:maven-bundle-plugin, when i perform a jf mvn install command, only the bundle is published on artifactory.

When I execute mvn deploy command without Jfrog CLI, the jar and the pom are published.

Current behavior

with this command jf mvn install, I can see this in the log 👍

INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-install-plugin:3.0.1:install (default-install) @ transverse.hazelcast.model ---

INFO org.codehaus.plexus.PlexusContainer - Installing pom.xml to /root/.m2/repository/com/sncf/geomobiles/transverse.hazelcast.model/1.68.0.3-SNAPSHOT/transverse.hazelcast.model-1.68.0.3-SNAPSHOT.pom
INFO org.codehaus.plexus.PlexusContainer - Installing target/transverse.hazelcast.model-1.68.0.3-SNAPSHOT.jar to /root/.m2/repository/com/sncf/geomobiles/transverse.hazelcast.model/1.68.0.3-SNAPSHOT/transverse.hazelcast.model-1.68.0.3-SNAPSHOT.jar

INFO org.apache.maven.cli.event.ExecutionEventLogger - --- maven-bundle-plugin:3.3.0:install (default-install) @ transverse.hazelcast.model ---
INFO org.apache.felix.obrplugin.ObrInstall - Writing OBR metadata
INFO org.apache.felix.obrplugin.ObrInstall - Installing com/sncf/geomobiles/transverse.hazelcast.model/1.68.0.3-SNAPSHOT/transverse.hazelcast.model-1.68.0.3-SNAPSHOT.jar
INFO org.apache.felix.obrplugin.ObrInstall - Writing OBR metadata
 [pool-5-thread-1] INFO org.jfrog.build.extractor.maven.ArtifactoryManagerBuilder - [pool-5-thread-1] Deploying artifact: https://artefact-repo.apps.eul.sncf.fr/artifactory/.../com/sncf/geomobiles/transverse.hazelcast.model/1.68.0.3-SNAPSHOT/transverse.hazelcast.model-1.68.0.3-SNAPSHOT.jar

```

So the install command install pom and jar in my local maven repository and the the  maven-bundle-plugin:install goal is executed and only the jar is published on artifactory

### Reproduction steps

- With a simple osgi bundle maven project ([example](https://github.com/sharma-gaurav/osgibndle))
- run a `jf config add` command to configure artifactory platform authentication 
- run `jf mvn install` command

### Expected behavior

I expect the pom file to be published by the `jf mvn install` command

### JFrog CLI version

2.26.2

### Operating system type and version

Linux (Docker: maven:3-openjdk-11 image)

### JFrog Artifactory version

7.41.7

### JFrog Xray version

3.55.2
@gregoryboue
Copy link
Author

sorry for the late but it's ok

@devoekyle
Copy link

devoekyle commented Jul 21, 2023

Was this resolved as i am still experiencing this issue?
Im using jfrogcli version 2.42.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants