diff --git a/documentation/jetty-asciidoctor-extensions/src/main/java/org/eclipse/jetty/docs/JettyIncludeExtension.java b/documentation/jetty-asciidoctor-extensions/src/main/java/org/eclipse/jetty/docs/JettyIncludeExtension.java index 86f03539332..35d7abb9d16 100644 --- a/documentation/jetty-asciidoctor-extensions/src/main/java/org/eclipse/jetty/docs/JettyIncludeExtension.java +++ b/documentation/jetty-asciidoctor-extensions/src/main/java/org/eclipse/jetty/docs/JettyIncludeExtension.java @@ -89,9 +89,10 @@ public class JettyIncludeExtension implements ExtensionRegistry { try { + String jettyVersion = (String)document.getAttribute("project-version"); // Document attributes are converted by Asciidoctor to lowercase. Path jettyDocsPath = Path.of((String)document.getAttribute("project-basedir")); - Path jettyHome = jettyDocsPath.resolve("../../jetty-home/target/jetty-home").normalize(); + Path jettyHome = jettyDocsPath.resolve("target/jetty-home-" + jettyVersion).normalize(); JettyHomeTester jetty = JettyHomeTester.Builder.newInstance() .jettyHome(jettyHome) diff --git a/documentation/jetty-documentation/pom.xml b/documentation/jetty-documentation/pom.xml index 2033ef2ce55..a115d98ecb8 100644 --- a/documentation/jetty-documentation/pom.xml +++ b/documentation/jetty-documentation/pom.xml @@ -138,6 +138,30 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-jetty-home + generate-resources + + unpack + + + + + org.eclipse.jetty + jetty-home + ${project.version} + zip + + + ${project.build.directory}/ + + + + maven-assembly-plugin @@ -248,5 +272,12 @@ org.eclipse.jetty.websocket websocket-jetty-server + + org.eclipse.jetty + jetty-home + ${project.version} + zip + true + diff --git a/jetty-home/pom.xml b/jetty-home/pom.xml index 6be78d12adc..675e5f9723e 100644 --- a/jetty-home/pom.xml +++ b/jetty-home/pom.xml @@ -13,7 +13,6 @@ ${basedir}/target/jetty-home ${basedir}/target/jetty-home-sources - ${basedir}/target/jetty-home-with-docs 1.0.4 true @@ -507,44 +506,6 @@ ${assembly-directory} - - unpack-documentation - generate-resources - - unpack - - - - - org.eclipse.jetty.documentation - jetty-documentation - ${project.version} - html - zip - - - ${docs-assembly-directory}/docs - - - - unpack-javadoc-aggregate - generate-resources - - unpack - - - - - org.eclipse.jetty - javadoc - ${project.version} - javadoc - jar - - - ${docs-assembly-directory}/javadoc - - @@ -600,19 +561,6 @@ true - - docs - package - - single - - - - src/main/assembly/jetty-with-docs-assembly.xml - - true - - @@ -924,14 +872,6 @@ jar true - - org.eclipse.jetty.documentation - jetty-documentation - ${project.version} - html - zip - true - org.eclipse.jetty javadoc diff --git a/jetty-home/src/main/assembly/jetty-with-docs-assembly.xml b/jetty-home/src/main/assembly/jetty-with-docs-assembly.xml deleted file mode 100644 index c38740b3427..00000000000 --- a/jetty-home/src/main/assembly/jetty-with-docs-assembly.xml +++ /dev/null @@ -1,46 +0,0 @@ - - with-docs - - tar.gz - zip - - - - ${assembly-directory} - - - ** - - - **/META-INF/** - *-config.jar - - bin/*.sh - - - 0444 - 0755 - - - ${assembly-directory} - - - bin/*.sh - - - 0555 - - - ${docs-assembly-directory} - - - ** - - - - diff --git a/jetty-home/src/main/assembly/site-component.xml b/jetty-home/src/main/assembly/site-component.xml deleted file mode 100644 index 694addb43a2..00000000000 --- a/jetty-home/src/main/assembly/site-component.xml +++ /dev/null @@ -1,18 +0,0 @@ - - site-component - - jar - - - - ${basedir}/target/dist-src - jetty-home-${version}-site-component - - target/site/** - README** - VERSION** - LICENSES/** - - - - \ No newline at end of file