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

Provide ability to not upload the default artifact #27

Open
jodastephen opened this issue Mar 23, 2017 · 3 comments
Open

Provide ability to not upload the default artifact #27

jodastephen opened this issue Mar 23, 2017 · 3 comments

Comments

@jodastephen
Copy link
Contributor

Thanks for the great plugin. The task I wanted to do was upload a zip and tar.gz, but not the main jar file of the project. While this can be achieved (by choosing one of the files as the artifact and putting the other in filesets), this seems like a hack. Unfortunately, you can't set artfiact to an empty string in Maven, as that still applies the default.

This looks like a boolean flag - uploadMainArtifact - set to true by default is needed. That way, it is easy to block the upload of the main artifact.

@lamarios
Copy link

lamarios commented Dec 9, 2017

@jodastephen Can you explain how you managed to work around that ?

@jodastephen
Copy link
Contributor Author

In the end, I just accepted the default to upload the jar. This flag would still be useful however.

@tjuerge
Copy link
Contributor

tjuerge commented Sep 29, 2019

This can be done by defining an empty artifact in the plugin's configuration, e.g.

<configuration>
  <artifact></artifact>
  <fileSets>
    <fileSet>
      <directory>${project.build.directory}</directory>
      <includes>
        <include>${project.artifactId}*.tar.gz</include>
        <include>${project.artifactId}*.zip</include>
      </includes>
    </fileSet>
  </fileSets>
</configuration>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants