Jul 11, 2025
Jul 11, 2025
N/A Views
MD

Warning

This article was automatically translated by OpenAI (gpt-4.1).It may be edited eventually, but please be aware that it may contain incorrect information at this time.

Customers who have purchased VMware Tanzu Spring or VMware Tanzu Platform for Cloud Foundry (formerly Tanzu Application Service) can access the private repository of Spring Enterprise.

Spring Enterprise is a product that provides long-term commercial support for Spring Framework, Spring Boot, and other Spring projects. For example, at the time of writing, Spring Boot 2.7 (the final OSS release is 2.7.18), which is no longer supported as OSS, is released up to 2.7.27.

For details on each project provided by Spring Enterprise, please refer to the following link:
https://enterprise.spring.io/projects

This article explains how to configure Maven to use the Spring Enterprise repository. Here, we introduce how to access the repository directly.
If you need to use it in an air-gapped environment, you will need to copy it to JFrog Artifactory, Sonatype Nexus, etc. Please refer to the separate documentation.

How to Obtain a Spring Enterprise Access Token

Log in to Broadcom Support and obtain a Maven repository token from the Spring Enterprise page.

Click "Token Access" and then click the green "Token Download" button.

image

Scroll through the displayed dialog and copy the Access Token. The string starting with eyJ... is the Access Token. Be careful not to copy the surrounding single quotes.

image

If you cannot access this page, your license may not be activated.
Please contact your account team to request license activation.

Configuring Maven to Use the Spring Enterprise Repository

Create a settings.xml file in the .m2 directory under your home directory and add the following content.
Replace BC_SUPPORT_USERNAME and BC_SUPPORT_ACCESS_TOKEN with your Broadcom support account username (email address) and the access token you copied in the previous step.
This will allow you to access the Tanzu Spring Enterprise repository.

<settings>
  <servers>
    <server>
      <id>tanzu-spring-release</id>
      <username>BC_SUPPORT_USERNAME</username>
      <password>BC_SUPPORT_ACCESS_TOKEN</password>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>tanzu-spring-release</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <repositories>
        <repository>
          <id>tanzu-spring-release</id>
          <name>Spring Enterprise Supported Releases</name>
          <url>https://packages.broadcom.com/artifactory/spring-enterprise</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <id>tanzu-spring-release</id>
          <name>Spring Enterprise Supported Releases</name>
          <url>https://packages.broadcom.com/artifactory/spring-enterprise</url>
          <snapshots>
            <enabled>false</enabled>
          </snapshots>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
</settings>

Operation Check

Download a template project from
https://start.spring.io/#!type=maven-project&language=java&platformVersion=3.4.7&packaging=jar&jvmVersion=21&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&dependencies=web

image

Click the "Generate" button to download the project.
A file named demo.zip will be downloaded. Unzip it and move to the extracted directory in your terminal.

unzip demo.zip
cd demo

Open pom.xml and change the Spring Boot version to the Spring Enterprise version. In the following example, Spring Boot 3.4.7 is used, but change it to 2.7.27.

Before

        <parent>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <version>3.4.7</version>
                <relativePath/> <!-- lookup parent from repository -->
        </parent>

After

        <parent>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-parent</artifactId>
                <version>2.7.27</version>
                <relativePath/> <!-- lookup parent from repository -->
        </parent>

On Mac/Linux, run the following command to compile the Maven project.

./mvnw clean compile

On Windows, compile the Maven project with the following command.

mvnw.cmd clean compile

If files are downloaded from https://packages.broadcom.com/artifactory/spring-enterprise as shown below, you are all set.

image

If you want to check the version of Spring used in your project, run the following command.

For Mac/Linux

./mvnw dependency:tree

For Windows

mvnw.cmd dependency:tree

In the following example, you can confirm that Spring Boot 2.7.27 and Spring Framework 5.3.43 are being used.

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- dependency:3.3.0:tree (default-cli) @ demo ---
[INFO] com.example:demo:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.7.27:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.7.27:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:2.7.27:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.7.27:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.7.27:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.13:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.13:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] |  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.30:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-json:jar:2.7.27:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.5:compile
[INFO] |  |  |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.5:compile
[INFO] |  |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.13.5:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.5:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.5:compile
[INFO] |  |  \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.5:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.7.27:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.106:compile
[INFO] |  |  +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.106:compile
[INFO] |  |  \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.106:compile
[INFO] |  +- org.springframework:spring-web:jar:5.3.43:compile
[INFO] |  |  \- org.springframework:spring-beans:jar:5.3.43:compile
[INFO] |  \- org.springframework:spring-webmvc:jar:5.3.43:compile
[INFO] |     +- org.springframework:spring-aop:jar:5.3.43:compile
[INFO] |     +- org.springframework:spring-context:jar:5.3.43:compile
[INFO] |     \- org.springframework:spring-expression:jar:5.3.43:compile
[INFO] \- org.springframework.boot:spring-boot-starter-test:jar:2.7.27:test
[INFO]    +- org.springframework.boot:spring-boot-test:jar:2.7.27:test
[INFO]    +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.7.27:test
[INFO]    +- com.jayway.jsonpath:json-path:jar:2.7.0:test
[INFO]    |  +- net.minidev:json-smart:jar:2.4.11:test
[INFO]    |  |  \- net.minidev:accessors-smart:jar:2.4.11:test
[INFO]    |  |     \- org.ow2.asm:asm:jar:9.3:test
[INFO]    |  \- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO]    +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:test
[INFO]    |  \- jakarta.activation:jakarta.activation-api:jar:1.2.2:test
[INFO]    +- org.assertj:assertj-core:jar:3.22.0:test
[INFO]    +- org.hamcrest:hamcrest:jar:2.2:test
[INFO]    +- org.junit.jupiter:junit-jupiter:jar:5.8.2:test
[INFO]    |  +- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
[INFO]    |  |  +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO]    |  |  +- org.junit.platform:junit-platform-commons:jar:1.8.2:test
[INFO]    |  |  \- org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO]    |  +- org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
[INFO]    |  \- org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
[INFO]    |     \- org.junit.platform:junit-platform-engine:jar:1.8.2:test
[INFO]    +- org.mockito:mockito-core:jar:4.5.1:test
[INFO]    |  +- net.bytebuddy:byte-buddy:jar:1.12.23:test
[INFO]    |  +- net.bytebuddy:byte-buddy-agent:jar:1.12.23:test
[INFO]    |  \- org.objenesis:objenesis:jar:3.2:test
[INFO]    +- org.mockito:mockito-junit-jupiter:jar:4.5.1:test
[INFO]    +- org.skyscreamer:jsonassert:jar:1.5.3:test
[INFO]    |  \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO]    +- org.springframework:spring-core:jar:5.3.43:compile
[INFO]    |  \- org.springframework:spring-jcl:jar:5.3.43:compile
[INFO]    +- org.springframework:spring-test:jar:5.3.43:test
[INFO]    \- org.xmlunit:xmlunit-core:jar:2.9.1:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.424 s
[INFO] Finished at: 2025-07-11T14:23:00+09:00
[INFO] ------------------------------------------------------------------------
Found a mistake? Update the entry.
Share this article: