@@ -30,7 +30,7 @@ The following topics are addressed here:
3030Embedded {productName} enables you to use
3131{productName} as a library or run applications from command line. Embedded {productName} also enables
3232you to run {productName} inside any Virtual Machine for the Java
33- platform (Java Virtual Machine or JVMmachine ).
33+ platform (Java Virtual Machine or JVM ).
3434
3535No installation or configuration of embedded {productName} is
3636required. The ability to run {productName}
@@ -381,7 +381,7 @@ Any argument that doesn't start with a hyphen (-), is treated as follows:
381381{productName} provides an application programming
382382interface (API) for developing applications in which {productName} is
383383embedded. For details, see the `org.glassfish.embeddable` packages at
384- `http ://embedded- glassfish.java.net/nonav/apidocs/ `.
384+ `https ://www.javadoc.io/doc/org. glassfish.main.common/simple-glassfish-api/latest/index.html `.
385385
386386The following topics are addressed here:
387387
@@ -1255,8 +1255,8 @@ Add the following `plugin` element to your POM file:
12551255 <plugins>
12561256 ...
12571257 <plugin>
1258- <groupId>org.glassfish</groupId>
1259- <artifactId>maven- embedded-glassfish-plugin</artifactId>
1258+ <groupId>org.glassfish.embedded </groupId>
1259+ <artifactId>embedded-glassfish-maven -plugin</artifactId>
12601260 <version>version</version>
12611261 </plugin>
12621262 ...
@@ -1265,7 +1265,7 @@ Add the following `plugin` element to your POM file:
12651265----
12661266version::
12671267 The version to use. The version of the final promoted build for this
1268- release is `3.1.1 `. The Maven plug-in is not bound to a specific version
1268+ release is `7.0 `. The Maven plug-in is not bound to a specific version
12691269 of {productName}. You can specify the version you want to use. If
12701270 no version is specified, a default version is used.
12711271
@@ -1360,7 +1360,7 @@ Add `execution` elements to your POM file:
13601360 <execution>
13611361 <phase>install</phase>
13621362 <goals>
1363- <goal>goal</goal>
1363+ <goal>goal</goal>
13641364 </goals>
13651365 </execution>
13661366 </executions>
@@ -1373,19 +1373,6 @@ Add `execution` elements to your POM file:
13731373goal::
13741374 The goal to use. See xref:#maven-goals-for-embedded-glassfish-server[Maven Goals for Embedded {productName}].
13751375
1376- 5. Configure the repository.
1377- Add the following `repository` element to your POM file:
1378- +
1379- [source,xml]
1380- ----
1381- <pluginRepositories>
1382- <pluginRepository>
1383- <id>maven2-repository.dev.java.net</id>
1384- <name>Java.net Repository for Maven</name>
1385- <url>http://download.java.net/maven/glassfish/</url>
1386- </pluginRepository>
1387- </pluginRepositories>
1388- ----
13891376
13901377[[gjkod]]
13911378Example 1-13 POM File for Configuring Maven to Use Embedded {productName}
@@ -1404,16 +1391,16 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
14041391http://maven.apache.org/maven-v4_0_0.xsd">
14051392
14061393 <modelVersion>4.0.0</modelVersion>
1407- <groupId>org.glassfish </groupId>
1394+ <groupId>org.example </groupId>
14081395 <artifactId>maven-glassfish-plugin-tester</artifactId>
1409- <version>3.1 </version>
1410- <name>Maven test </name>
1396+ <version>1.0.0-SNAPSHOT </version>
1397+ <name>Maven Embedded Glassfish Plugin Example </name>
14111398 <build>
14121399 <plugins>
14131400 <plugin>
1414- <groupId>org.glassfish</groupId>
1415- <artifactId>maven- embedded-glassfish-plugin</artifactId>
1416- <version>3.1 </version>
1401+ <groupId>org.glassfish.embedded </groupId>
1402+ <artifactId>embedded-glassfish-maven -plugin</artifactId>
1403+ <version>7.0 </version>
14171404 <configuration>
14181405 <app>target/test.war</app>
14191406 <port>8080</port>
@@ -1431,13 +1418,6 @@ http://maven.apache.org/maven-v4_0_0.xsd">
14311418 </plugin>
14321419 </plugins>
14331420 </build>
1434- <pluginRepositories>
1435- <pluginRepository>
1436- <id>maven2-repository.dev.java.net</id>
1437- <name>Java.net Repository for Maven</name>
1438- <url>http://download.java.net/maven/glassfish/</url>
1439- </pluginRepository>
1440- </pluginRepositories>
14411421</project>
14421422----
14431423
@@ -1796,7 +1776,7 @@ command.
17961776
17971777|commandParameters |None |A map of the command parameters. See the
17981778`org.glassfish.embeddable.admin.CommandParameters` class at
1799- `http ://glassfish.java.net/nonav/docs/v3/ api/`.
1779+ `https ://www.javadoc.io/doc/org. glassfish.main.common/glassfish-api/latest/org/glassfish/ api/admin/CommandParameters.html `.
18001780
18011781|commandLine |None |The full `asadmin` syntax of the command.
18021782|===
@@ -1973,51 +1953,38 @@ Line breaks in the following element are for readability purposes only
19731953<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
19741954http://maven.apache.org/maven-v4_0_0.xsd">
19751955 <modelVersion>4.0.0</modelVersion>
1976- <groupId>org.glassfish </groupId>
1977- <artifactId>my-ejb-app-tester </artifactId>
1978- <version>3.1 </version>
1979- <name>Maven test </name>
1956+ <groupId>org.example </groupId>
1957+ <artifactId>my-ejb-app-example </artifactId>
1958+ <version>1.0.0-SNAPSHOT </version>
1959+ <name>EJB Embeddable API Example </name>
19801960 <dependencies>
19811961 <dependency>
1982- <groupId>org.glassfish.extras</groupId>
1983- <artifactId>glassfish-embedded-static-shell </artifactId>
1962+ <groupId>org.glassfish.main. extras</groupId>
1963+ <artifactId>glassfish-embedded-all </artifactId>
19841964 <version>${project.version}</version>
1985- <scope>system</scope>
1986- <systemPath>
1987- ${env.S1AS_HOME}/lib/embedded/glassfish-embedded-static-shell.jar
1988- </systemPath>
19891965 </dependency>
1990- <!--
1991- The javaee -api is stripped of any code and is just used to compile your
1992- application. The scope provided in Maven means that it is used for compiling,
1993- but is also available when testing. For this reason, the javaee -api needs to
1994- be below the embedded Glassfish dependency. The javaee -api can actually be
1995- omitted when the embedded Glassfish dependency is included, but to keep your
1996- project Java- EE 6 rather than GlassFish 3 , specification is important.
1997- -->
1966+ <!--
1967+ The jakarta.jakartaee -api is stripped of any code and is just used to compile your
1968+ application. The scope provided in Maven means that it is used for compiling,
1969+ but is also available when testing. For this reason, the jakartaee -api needs to
1970+ be below the embedded GlassFish dependency. The jakartaee -api can actually be
1971+ omitted when the embedded GlassFish dependency is included, but to keep your
1972+ project Jakarta EE 10 rather than GlassFish specific , specification is important.
1973+ -->
19981974 <dependency>
1999- <groupId>javax </groupId>
2000- <artifactId>javaee -api</artifactId>
2001- <version>6 .0</version>
1975+ <groupId>jakarta.platform </groupId>
1976+ <artifactId>jakarta.jakartaee -api</artifactId>
1977+ <version>10.0 .0</version>
20021978 <scope>provided</scope>
20031979 </dependency>
20041980 </dependencies>
2005- <pluginRepositories>
2006- <pluginRepository>
2007- <id>maven2-repository.dev.java.net</id>
2008- <name>Java.net Repository for Maven</name>
2009- <url>http://download.java.net/maven/glassfish/</url>
2010- </pluginRepository>
2011- </pluginRepositories>
20121981</project>
20131982----
20141983
2015- If you are using `glassfish-embedded-static-shell.jar`, you can omit the
2016- `dependency` element with the `javaee-api` `artifactId` and the
2017- `pluginRepositories` element.
1984+ If you are using `glassfish-embedded-all.jar`, you can omit the
1985+ `dependency` element with the `jakarta.jakartaee-api` `artifactId`.
20181986
2019- Set the `S1AS_HOME` environment variable to the installation root
2020- directory before running the `mvn clean verify` command.
1987+ Then run `mvn clean verify` command.
20211988
20221989[[changing-log-levels-in-embedded-glassfish-server]]
20231990
@@ -2073,7 +2040,7 @@ This example shows the contents of a custom logging configuration file,
20732040
20742041[source]
20752042----
2076- handlers= java.util.logging.ConsoleHandler
2043+ handlers = java.util.logging.ConsoleHandler
20772044java.util.logging.ConsoleHandler.level = FINEST
20782045jakarta.enterprise.system.tools.deployment.level = FINEST
20792046jakarta.enterprise.system.level = FINEST
@@ -2113,15 +2080,15 @@ supports only these features of nonembedded {productName}:
21132080
21142081* The following web technologies of the Jakarta EE platform:
21152082
2116- ** Java Servlet API
2083+ ** Jakarta Servlet API
21172084
2118- ** Java Server Pages (JSP) technology
2085+ ** Jakarta Pages
21192086
2120- ** Java Server Faces technology
2121- * JDBC-technology connection pooling
2122- * Java Persistence API
2123- * Java Transaction API
2124- * Java Transaction Service
2087+ ** Jakarta Faces
2088+ * JDBC connection pooling
2089+ * Jakarta Persistence API
2090+ * Jakarta Transaction API
2091+ * Jakarta Transaction Service
21252092
21262093The `glassfish-embedded-all.jar` and
21272094`glassfish-embedded-static-shell.jar` files support all features of
0 commit comments