@@ -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}
@@ -1255,7 +1255,7 @@ Add the following `plugin` element to your POM file:
12551255 <plugins>
12561256 ...
12571257 <plugin>
1258- <groupId>org.glassfish</groupId>
1258+ <groupId>org.glassfish.embedded </groupId>
12591259 <artifactId>maven-embedded-glassfish-plugin</artifactId>
12601260 <version>version</version>
12611261 </plugin>
@@ -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 `5 .1`. 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>
@@ -1380,9 +1380,9 @@ Add the following `repository` element to your POM file:
13801380----
13811381<pluginRepositories>
13821382 <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>
1383+ <id>jakarta-oss-staging </id>
1384+ <name>Jakarta OSS Staging Repository for Maven</name>
1385+ <url>https ://jakarta.oss.sonatype.org/content/repositories/staging </url>
13861386 </pluginRepository>
13871387</pluginRepositories>
13881388----
@@ -1404,16 +1404,16 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
14041404http://maven.apache.org/maven-v4_0_0.xsd">
14051405
14061406 <modelVersion>4.0.0</modelVersion>
1407- <groupId>org.glassfish </groupId>
1407+ <groupId>org.example </groupId>
14081408 <artifactId>maven-glassfish-plugin-tester</artifactId>
1409- <version>3.1 </version>
1410- <name>Maven test </name>
1409+ <version>1.0.0-SNAPSHOT </version>
1410+ <name>Maven Embedded Glassfish Plugin Example </name>
14111411 <build>
14121412 <plugins>
14131413 <plugin>
1414- <groupId>org.glassfish</groupId>
1414+ <groupId>org.glassfish.embedded </groupId>
14151415 <artifactId>maven-embedded-glassfish-plugin</artifactId>
1416- <version>3 .1</version>
1416+ <version>5 .1</version>
14171417 <configuration>
14181418 <app>target/test.war</app>
14191419 <port>8080</port>
@@ -1433,9 +1433,9 @@ http://maven.apache.org/maven-v4_0_0.xsd">
14331433 </build>
14341434 <pluginRepositories>
14351435 <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>
1436+ <id>jakarta-oss-staging </id>
1437+ <name>Jakarta OSS Staging Repository for Maven</name>
1438+ <url>https ://jakarta.oss.sonatype.org/content/repositories/staging </url>
14391439 </pluginRepository>
14401440 </pluginRepositories>
14411441</project>
@@ -1796,7 +1796,7 @@ command.
17961796
17971797|commandParameters |None |A map of the command parameters. See the
17981798`org.glassfish.embeddable.admin.CommandParameters` class at
1799- `http ://glassfish.java.net/nonav/docs/v3/ api/`.
1799+ `https ://www.javadoc.io/doc/org. glassfish.main.common/glassfish-api/latest/org/glassfish/ api/admin/CommandParameters.html `.
18001800
18011801|commandLine |None |The full `asadmin` syntax of the command.
18021802|===
@@ -1973,40 +1973,40 @@ Line breaks in the following element are for readability purposes only
19731973<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
19741974http://maven.apache.org/maven-v4_0_0.xsd">
19751975 <modelVersion>4.0.0</modelVersion>
1976- <groupId>org.glassfish </groupId>
1976+ <groupId>org.example </groupId>
19771977 <artifactId>my-ejb-app-tester</artifactId>
1978- <version>3.1 </version>
1979- <name>Maven test </name>
1978+ <version>1.0.0-SNAPSHOT </version>
1979+ <name>EJB Embeddable API Example </name>
19801980 <dependencies>
19811981 <dependency>
1982- <groupId>org.glassfish.extras</groupId>
1982+ <groupId>org.glassfish.main. extras</groupId>
19831983 <artifactId>glassfish-embedded-static-shell</artifactId>
19841984 <version>${project.version}</version>
19851985 <scope>system</scope>
19861986 <systemPath>
1987- ${env.S1AS_HOME }/lib/embedded/glassfish-embedded-static-shell.jar
1987+ ${env.GLASSFISH_HOME }/lib/embedded/glassfish-embedded-static-shell.jar
19881988 </systemPath>
19891989 </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- -->
1990+ <!--
1991+ The jakarta.jakartaee -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 jakartaee -api needs to
1994+ be below the embedded GlassFish dependency. The jakartaee -api can actually be
1995+ omitted when the embedded GlassFish dependency is included, but to keep your
1996+ project Jakarta EE 10 rather than GlassFish specific , specification is important.
1997+ -->
19981998 <dependency>
1999- <groupId>javax </groupId>
2000- <artifactId>javaee -api</artifactId>
2001- <version>6 .0</version>
1999+ <groupId>jakarta.platform </groupId>
2000+ <artifactId>jakarta.jakartaee -api</artifactId>
2001+ <version>10.0 .0</version>
20022002 <scope>provided</scope>
20032003 </dependency>
20042004 </dependencies>
20052005 <pluginRepositories>
20062006 <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>
2007+ <id>jakarta-oss-staging </id>
2008+ <name>Jakarta OSS Staging Repository for Maven</name>
2009+ <url>https ://jakarta.oss.sonatype.org/content/repositories/staging </url>
20102010 </pluginRepository>
20112011 </pluginRepositories>
20122012</project>
@@ -2016,7 +2016,7 @@ If you are using `glassfish-embedded-static-shell.jar`, you can omit the
20162016`dependency` element with the `javaee-api` `artifactId` and the
20172017`pluginRepositories` element.
20182018
2019- Set the `S1AS_HOME ` environment variable to the installation root
2019+ Set the `GLASSFISH_HOME ` environment variable to the installation root
20202020directory before running the `mvn clean verify` command.
20212021
20222022[[changing-log-levels-in-embedded-glassfish-server]]
0 commit comments