Maven

Apache Maven build and dependency management tool for Java projects.


Using Maven Locally

Ensure the Desktop App is installed, running, and configured for Maven.

Connect Desktop App →

Simply use your standard commands - the Desktop App handles authentication automatically:

Upload:

mvn clean deploy

Download:

mvn clean install

Alternatively: Manual Configuration

1. Generate an Access Token

Create an access token →

2. Configure

Edit ~/.m2/settings.xml:

<settings>
  <servers>
    <server>
      <id>fly-maven</id>
      <username><your-fly-username></username>
      <password><your-fly-token></password>
    </server>
  </servers>
  
  <profiles>
    <profile>
      <id>fly</id>
      <repositories>
        <repository>
          <id>fly-maven</id>
          <url>https://<your-fly-subdomain>.jfrog.io/artifactory/maven</url>
          <releases><enabled>true</enabled></releases>
          <snapshots><enabled>true</enabled></snapshots>
        </repository>
      </repositories>
    </profile>
  </profiles>
  
  <activeProfiles>
    <activeProfile>fly</activeProfile>
  </activeProfiles>
</settings>

3. Upload

mvn clean deploy

4. Download

mvn clean install

Using Maven in CI/CD

Maven is fully supported in GitHub Actions workflows configured with JFrog Fly.

Learn how to configure GitHub Actions →


Alternative: Gradle → | Back to Java →