Skip to content

Commit

Permalink
Using jetty-parent to reduce number of dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
joakime committed May 3, 2024
1 parent ec73c8c commit 5d49bed
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 462 deletions.
221 changes: 108 additions & 113 deletions apache-el/pom.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.mortbay.jasper</groupId>
<artifactId>jasper-jsp</artifactId>
<version>10.0.27-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>apache-el</artifactId>
<packaging>jar</packaging>
<name>MortBay :: Apache EL :: API and Implementation</name>

<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>${tomcat.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${servlet.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.14</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<sourceDirectory>${project.build.directory}/sources</sourceDirectory>
<plugins>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Automatic-Module-Name>org.mortbay.apache.el</Automatic-Module-Name>
<Bundle-Name>Mortbay Apache EL API and Implementation</Bundle-Name>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
<Bundle-Classpath>.</Bundle-Classpath>
<Bundle-Version>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</Bundle-Version>
<Specification-Version>3.0</Specification-Version>
<Implementation-Version>${tomcat.version}</Implementation-Version>
<_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
<Export-Package>!jakarta.servlet.*,
jakarta.el;version="4.0.0",
org.apache.el;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.lang;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.stream;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.parser;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.util;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"</Export-Package>
<Import-Package>jakarta.servlet.jsp;version="3.0",
jakarta.servlet.jsp.el;version="3.0",
jakarta.servlet.jsp.tagext;version="3.0"</Import-Package>
<_nouses>true</_nouses>
<_contract />
</instructions>
</configuration>
<executions>
<execution>
<id>bundle-manifest</id>
<goals>
<goal>manifest</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-source</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<excludeArtifactIds>jakarta.servlet-api,ecj,ant,ant-launcher</excludeArtifactIds>
<classifier>sources</classifier>
Expand All @@ -33,42 +92,58 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<id>sources-jar</id>
<goals>
<goal>add-source</goal>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<sources>
<source>${project.build.directory}/sources</source>
</sources>
<classifier>sources</classifier>
<classesDirectory>${project.build.directory}/sources</classesDirectory>
<forceCreation>true</forceCreation>
<useDefaultManifestFile>false</useDefaultManifestFile>
<excludes>
<exclude>*.java</exclude>
</excludes>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.mortbay.apache.el.sources</Automatic-Module-Name>
<Bundle-Name>Mortbay Apache EL API and Implementation Sources</Bundle-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
<execution>
<id>set-osgi-version</id>
<phase>validate</phase>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>8</source>
<additionalDependencies>
<additionalDependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bnd</artifactId>
<version>5.2.0</version>
</additionalDependency>
</additionalDependencies>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<phase>package</phase>
<configuration>
<createSourcesJar>false</createSourcesJar>
<shadeSourcesContent>false</shadeSourcesContent>
Expand Down Expand Up @@ -101,113 +176,33 @@
</plugin>

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<id>set-osgi-version</id>
<goals>
<goal>manifest</goal>
<goal>parse-version</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
<configuration>
<instructions>
<Automatic-Module-Name>org.mortbay.apache.el</Automatic-Module-Name>
<Bundle-Name>Mortbay Apache EL API and Implementation</Bundle-Name>
<Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment>
<Bundle-Classpath>.</Bundle-Classpath>
<Bundle-Version>
${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}
</Bundle-Version>
<Specification-Version>3.0</Specification-Version>
<Implementation-Version>${tomcat.version}</Implementation-Version>
<_versionpolicy>[$(version;==;$(@)),$(version;+;$(@)))</_versionpolicy>
<Export-Package>!jakarta.servlet.*,
jakarta.el;version="4.0.0",
org.apache.el;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.lang;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.stream;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.parser;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}",
org.apache.el.util;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
</Export-Package>
<Import-Package>
jakarta.servlet.jsp;version="3.0",
jakarta.servlet.jsp.el;version="3.0",
jakarta.servlet.jsp.tagext;version="3.0"
</Import-Package>
<_nouses>true</_nouses>
<_contract />
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>sources-jar</id>
<phase>package</phase>
<id>add-source</id>
<goals>
<goal>jar</goal>
<goal>add-source</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<classifier>sources</classifier>
<classesDirectory>${project.build.directory}/sources</classesDirectory>
<forceCreation>true</forceCreation>
<useDefaultManifestFile>false</useDefaultManifestFile>
<excludes>
<exclude>*.java</exclude>
</excludes>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.mortbay.apache.el.sources</Automatic-Module-Name>
<Bundle-Name>Mortbay Apache EL API and Implementation Sources</Bundle-Name>
</manifestEntries>
</archive>
<sources>
<source>${project.build.directory}/sources</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>8</source>
<additionalDependencies>
<additionalDependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bnd</artifactId>
<version>5.2.0</version>
</additionalDependency>
</additionalDependencies>
</configuration>
</plugin>

</plugins>
<sourceDirectory>${project.build.directory}/sources</sourceDirectory>
</build>

<dependencies>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${servlet.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jasper</artifactId>
<version>${tomcat.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.14</version>
<scope>provided</scope>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit 5d49bed

Please sign in to comment.