Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MicroProfile/Config/ConfigHowToUse"

(Created page with "= How to use released artifacts = To use the Eclipse repository in your project, add the following into settings.xml: <repository> <id>eclipse.microprofile</id...")
 
m (How to use released artifacts)
 
Line 1: Line 1:
 
= How to use released artifacts =
 
= How to use released artifacts =
  
To use the Eclipse repository in your project, add the following into settings.xml:
+
To add the API artifact as a dependency:
 +
 
 +
    <dependency>
 +
      <groupId>org.eclipse.microprofile.config</groupId>
 +
      <artifactId>microprofile-config-api</artifactId>
 +
      <version>1.0-RC1</version>
 +
    </dependency>
 +
 
 +
For artifacts that aren't released to Maven Central, add the Eclipse repository in your project. Add the following into settings.xml:
  
 
     <repository>
 
     <repository>
Line 10: Line 18:
 
           <snapshots><enabled>true</enabled></snapshots>
 
           <snapshots><enabled>true</enabled></snapshots>
 
     </repository>
 
     </repository>
 
To add the API artifact as a dependency:
 
 
    <dependency>
 
      <groupId>org.eclipse.microprofile.config</groupId>
 
      <artifactId>microprofile-config-api</artifactId>
 
      <version>1.0-RC1</version>
 
    </dependency>
 

Latest revision as of 11:50, 27 July 2017

How to use released artifacts

To add the API artifact as a dependency:

   <dependency>
     <groupId>org.eclipse.microprofile.config</groupId>
     <artifactId>microprofile-config-api</artifactId>
     <version>1.0-RC1</version>
   </dependency>

For artifacts that aren't released to Maven Central, add the Eclipse repository in your project. Add the following into settings.xml:

   <repository>
         <id>eclipse.microprofile</id>
         <name>Eclipse MicroProfile Repository</name>
         <url>https://repo.eclipse.org/content/groups/microprofile/</url>
         <releases><enabled>true</enabled></releases>
         <snapshots><enabled>true</enabled></snapshots>
   </repository>

Back to the top