<commit_before>= WildFly Swarm
:awestruct-layout: project

What is WildFly Swarm?
----------------------

*WildFly Swarm* is a new sidecar project to WildFly which helps
you create self-contained Java microservices based upon the
normal WildFly application-server.

How do I use WildFly Swarm?
---------------------------

Currently, the easiest way to use WildFly Swarm is through
your Maven build.  We do aim to add support for other build-systems
in the near future.

Decide whichever portions of WildFly you need, and add matching
dependencies to your `pom.xml`:

[source,xml]
<dependency>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>wildfly-swarm-undertow</artifactId>
<dependency>

Of course, some dependencies imply others, since Maven transitively
resolves them.

This, for instance, implies `wildfly-swarm-undertow`, along with providing
your application with the JAX-RS APIs:

[source,xml]
----------------------------
<dependency>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>wildfly-swarm-jaxrs</artifactId>
<dependency>
----------------------------

To make your project aware of WildFly Swarm capabilities, configure
the plugin:

[source,xml]
----------------------------
<plugin>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>wildfly-swarm-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>package</goal>
      </goals>
    </execution>
  </executions>
</plugin>
----------------------------


How do I run my application?
----------------------------

You can run your application from your IDE by specifying either
your own `main()` class, or simply executing `org.wildfly.swarm.Swarm`.
This will boot the default container with all the parts specified
within your `pom.xml` and deploy your simple `.war` file.<commit_msg>wildfly swarm web page - closing the tag dependency at pom.xml because whoever copies and paste it gets a error<commit_after>= WildFly Swarm
:awestruct-layout: project

What is WildFly Swarm?
----------------------

*WildFly Swarm* is a new sidecar project to WildFly which helps
you create self-contained Java microservices based upon the
normal WildFly application-server.

How do I use WildFly Swarm?
---------------------------

Currently, the easiest way to use WildFly Swarm is through
your Maven build.  We do aim to add support for other build-systems
in the near future.

Decide whichever portions of WildFly you need, and add matching
dependencies to your `pom.xml`:

[source,xml]
<dependency>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>wildfly-swarm-undertow</artifactId>
</dependency>

Of course, some dependencies imply others, since Maven transitively
resolves them.

This, for instance, implies `wildfly-swarm-undertow`, along with providing
your application with the JAX-RS APIs:

[source,xml]
----------------------------
<dependency>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>wildfly-swarm-jaxrs</artifactId>
</dependency>
----------------------------

To make your project aware of WildFly Swarm capabilities, configure
the plugin:

[source,xml]
----------------------------
<plugin>
  <groupId>org.wildfly.swarm</groupId>
  <artifactId>wildfly-swarm-plugin</artifactId>
  <executions>
    <execution>
      <goals>
        <goal>package</goal>
      </goals>
    </execution>
  </executions>
</plugin>
----------------------------


How do I run my application?
----------------------------

You can run your application from your IDE by specifying either
your own `main()` class, or simply executing `org.wildfly.swarm.Swarm`.
This will boot the default container with all the parts specified
within your `pom.xml` and deploy your simple `.war` file.
{'fraction_non_alphanumeric': 0.17969598262757872, 'fraction_numerical': 0.0, 'mean_word_length': 2.7678936605316973, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 11}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3551713', 'n_tokens_mistral': 1114, 'n_tokens_neox': 991, 'n_words': 379}