You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2020/01/13 14:56:20 UTC
[tomcat-jakartaee-migration] branch master updated: Add a build
script. Experiment with Maven.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-jakartaee-migration.git
The following commit(s) were added to refs/heads/master by this push:
new 0419aa6 Add a build script. Experiment with Maven.
0419aa6 is described below
commit 0419aa64562cf7d1f014eebaaa3840a96b89acd4
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Jan 13 14:55:38 2020 +0000
Add a build script. Experiment with Maven.
---
.gitignore | 2 +-
pom.xml | 103 ++++++++++++++++++++++++++++++++++++++++++++
src/assembly/bin.xml | 33 ++++++++++++++
src/main/scripts/migrate.sh | 7 +++
4 files changed, 144 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 107422a..beef00d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
.classpath
.project
.settings
-bin
\ No newline at end of file
+target
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..d2e65e7
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<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.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>22</version>
+ </parent>
+
+ <groupId>org.apache.tomcat</groupId>
+ <artifactId>jakartaee-migration</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+
+ <description>
+ This tool is a work in progress.
+ The aim of the tool is to take a web application written for Java EE 8 that
+ runs on Apache Tomcat 9 and convert it automatically so it runs on Apache
+ Tomcat 10 which implements Jakarta EE 9.
+ </description>
+ <!-- TODO: Update this once the web site is updated. -->
+ <url>https://tomcat.apache.org</url>
+ <mailingLists>
+ <mailingList>
+ <name>Apache Tomcat Announce List</name>
+ <subscribe>announce-subscribe@tomcat.apache.org</subscribe>
+ <unsubscribe>announce-unsubscribe@tomcat.apache.org</unsubscribe>
+ <archive>https://lists.apache.org/list.html?announce@tomcat.apache.org</archive>
+ </mailingList>
+ <mailingList>
+ <name>Apache Tomcat Developer List</name>
+ <subscribe>dev-subscribe@tomcat.apache.org</subscribe>
+ <unsubscribe>dev-unsubscribe@tomcat.apache.org</unsubscribe>
+ <post>dev@tomcat.apache.org</post>
+ <archive>https://lists.apache.org/list.html?dev@tomcat.apache.org</archive>
+ </mailingList>
+ <mailingList>
+ <name>Apache Tomcat Users List</name>
+ <subscribe>users-subscribe@tomcat.apache.org</subscribe>
+ <unsubscribe>users-unsubscribe@tomcat.apache.org</unsubscribe>
+ <post>users@tomcat.apache.org</post>
+ <archive>https://lists.apache.org/list.html?users@tomcat.apache.org</archive>
+ </mailingList>
+ </mailingLists>
+
+ <properties>
+ <maven.compiler.source>8</maven.compiler.source>
+ <maven.compiler.target>8</maven.compiler.target>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.bcel</groupId>
+ <artifactId>bcel</artifactId>
+ <version>6.4.1</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ <resource>
+ <directory>src/main/scripot</directory>
+ <targetPath>bin</targetPath>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <!-- NOTE: We don't need a groupId specification because the group is
+ org.apache.maven.plugins ...which is assumed by default.
+ -->
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.2.0</version>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assembly/bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml
new file mode 100644
index 0000000..79f13c0
--- /dev/null
+++ b/src/assembly/bin.xml
@@ -0,0 +1,33 @@
+<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
+ <id>bin</id>
+ <formats>
+ <format>tar.gz</format>
+ <format>zip</format>
+ </formats>
+ <fileSets>
+ <fileSet>
+ <directory>${project.basedir}</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>README*</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directpry}/bin</directory>
+ <includes>
+ <include>*.sh</include>
+ </includes>
+ <fileMode>0755</fileMode>
+ </fileSet>
+ </fileSets>
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>lib</outputDirectory>
+ <useProjectArtifact></useProjectArtifact>
+ </dependencySet>
+ </dependencySets>
+</assembly>
\ No newline at end of file
diff --git a/src/main/scripts/migrate.sh b/src/main/scripts/migrate.sh
new file mode 100644
index 0000000..3d3004f
--- /dev/null
+++ b/src/main/scripts/migrate.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Assumes current layout of Maven's target directory
+cd ..
+
+# Assumes java is on the path
+java -cp lib/* org.apache.tomcat.jakartaee.Migration "$@"
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [tomcat-jakartaee-migration] branch master updated: Add a build
script. Experiment with Maven.
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Mark,
On 1/13/20 10:20 AM, Mark Thomas wrote:
> On 13/01/2020 15:04, Christopher Schultz wrote:
>> Mark,
>>
>> OMG hell must be freezing over...
>
> :)
>
> I'm slowly getting more familiar with Maven as all the Jakarta EE
> projects use it so I thought I would try it here as this should be
> a very simple project.
>
> It is early days but so far my impressions are:
>
> - For a simple project, it takes less configuration that Ant to do
> stuff.
+1
> - There appear to be lots of ways to do the same thing and I
> haven't yet found the docs that enable me to work out which way is
> right - or at least judge the pros and cons of each.
My experience with Maven has been minimal. To add my own impressions:
- - You must go all-in on Maven or you will be fighting everything all
the time.
- - If your dependencies don't have Maven artifacts, it's a PITA (which
is why we constantly get questions about Maven builds, artifacts, etc.)
- - Once you embrace the Dark Side, almost everything "just works"
- - When things don't "just work" it is nearly impossible to figure out wh
y
I don't know if it still exists, but all the Maven people I know say
"you can always use the ant-plug-in for Maven if you still want to use
ant for parts of your build, but you really should use a custom
plug-in for whatever you need".
So I guess the question is "has anyone written a Maven plug-in that
builds a Windows installer?"
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4cxvAACgkQHPApP6U8
pFidOg/+JUuf9IGvnJYXQ+xbr6GbG7GQ0JzxREKEZ55SJv1gbGIBqiP8L2rYKk1x
HqNZ0f41p/+Hm1R17dAiJgV+LnuuUJkRdNxbwooqkmIKhCKd+44KXd7YgM1QfrJR
yq5/jD9rZY2HDkp4jC/5FZYSwCYEJFCL1vfwMBuuj9mSXK9Z3Yr278E05T+QrCAL
tgH3aXMQ8thIHK+gw1lbUhiyuBIEgwKhL5y1jEuAPGmZmf64d1R9R9QyEl6DO8Rz
UPsNZp53OSHOnwX+keAiKmFQfdKyqcVHywDZd2QQ4KutYvuZ+LjtK6ZDGpTS7yIH
6VRpjWFzXqT3YObmwvxzfmQrTD5vWHrRF/DOoqMtrN0WsDHl+NwOtDyzUmrw07WA
/42TQGG8yzMNsPLYbmEr0Yf954C05ipHvZIePyBjBGA1gFLKDOcrbORjGB1WRX2O
lvvwCTSZYiU0GZjTShKfcAB6tQo0bB7CpEcTOYRJaAMhI14dNGz3I1l4VWcI8Uoq
ZyAAkIeuuUTDrMOXSls5F0zCyxOelPgCc5bNHVlTxSrSUo2omslscQ8uNMdWEC8y
KvOUgj7TkKF5H919kBz9HJez0AiOQCyepS61NtHe9ggpcCfPtRVwcUqbbl/e+38o
J2L7FD7Ysx6ZjfpVL6IVFn8OyIMbKxnGhpkvz5uwApD3gK9knsM=
=ixxg
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [tomcat-jakartaee-migration] branch master updated: Add a build
script. Experiment with Maven.
Posted by Mark Thomas <ma...@apache.org>.
On 13/01/2020 15:04, Christopher Schultz wrote:
> Mark,
>
> OMG hell must be freezing over...
:)
I'm slowly getting more familiar with Maven as all the Jakarta EE
projects use it so I thought I would try it here as this should be a
very simple project.
It is early days but so far my impressions are:
- For a simple project, it takes less configuration that Ant to do
stuff.
- There appear to be lots of ways to do the same thing and I haven't yet
found the docs that enable me to work out which way is right - or at
least judge the pros and cons of each.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: [tomcat-jakartaee-migration] branch master updated: Add a build
script. Experiment with Maven.
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Mark,
OMG hell must be freezing over...
On 1/13/20 9:56 AM, markt@apache.org wrote:
> This is an automated email from the ASF dual-hosted git
> repository.
>
> markt pushed a commit to branch master in repository
> https://gitbox.apache.org/repos/asf/tomcat-jakartaee-migration.git
>
>
> The following commit(s) were added to refs/heads/master by this
> push: new 0419aa6 Add a build script. Experiment with Maven.
> 0419aa6 is described below
>
> commit 0419aa64562cf7d1f014eebaaa3840a96b89acd4 Author: Mark Thomas
> <ma...@apache.org> AuthorDate: Mon Jan 13 14:55:38 2020 +0000
>
> Add a build script. Experiment with Maven. --- .gitignore
> | 2 +- pom.xml | 103
> ++++++++++++++++++++++++++++++++++++++++++++ src/assembly/bin.xml
> | 33 ++++++++++++++ src/main/scripts/migrate.sh | 7 +++ 4 files
> changed, 144 insertions(+), 1 deletion(-)
>
> diff --git a/.gitignore b/.gitignore index 107422a..beef00d 100644
> --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .classpath
> .project .settings -bin \ No newline at end of file +target diff
> --git a/pom.xml b/pom.xml new file mode 100644 index
> 0000000..d2e65e7 --- /dev/null +++ b/pom.xml @@ -0,0 +1,103 @@
> +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the
> Apache Software Foundation (ASF) under one or more + contributor
> license agreements. See the NOTICE file distributed with + this
> work for additional information regarding copyright ownership. +
> The ASF licenses this file to You under the Apache License, Version
> 2.0 + (the "License"); you may not use this file except in
> compliance with + the License. You may obtain a copy of the
> License at + + http://www.apache.org/licenses/LICENSE-2.0 + +
> Unless required by applicable law or agreed to in writing,
> software + distributed under the License is distributed on an "AS
> IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
> express or implied. + See the License for the specific language
> governing permissions and + limitations under the License. +-->
> +<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.apache</groupId> + <artifactId>apache</artifactId>
> + <version>22</version> + </parent> + +
> <groupId>org.apache.tomcat</groupId> +
> <artifactId>jakartaee-migration</artifactId> +
> <version>0.0.1-SNAPSHOT</version> + + <description> + This tool
> is a work in progress. + The aim of the tool is to take a web
> application written for Java EE 8 that + runs on Apache Tomcat 9
> and convert it automatically so it runs on Apache + Tomcat 10
> which implements Jakarta EE 9. + </description> + <!-- TODO:
> Update this once the web site is updated. --> +
> <url>https://tomcat.apache.org</url> + <mailingLists> +
> <mailingList> + <name>Apache Tomcat Announce List</name> +
> <subscribe>announce-subscribe@tomcat.apache.org</subscribe> +
> <unsubscribe>announce-unsubscribe@tomcat.apache.org</unsubscribe> +
> <archive>https://lists.apache.org/list.html?announce@tomcat.apache.org
</archive>
>
>
+ </mailingList>
> + <mailingList> + <name>Apache Tomcat Developer
> List</name> +
> <subscribe>dev-subscribe@tomcat.apache.org</subscribe> +
> <unsubscribe>dev-unsubscribe@tomcat.apache.org</unsubscribe> +
> <post>dev@tomcat.apache.org</post> +
> <archive>https://lists.apache.org/list.html?dev@tomcat.apache.org</arc
hive>
>
>
+ </mailingList>
> + <mailingList> + <name>Apache Tomcat Users List</name> +
> <subscribe>users-subscribe@tomcat.apache.org</subscribe> +
> <unsubscribe>users-unsubscribe@tomcat.apache.org</unsubscribe> +
> <post>users@tomcat.apache.org</post> +
> <archive>https://lists.apache.org/list.html?users@tomcat.apache.org</a
rchive>
>
>
+ </mailingList>
> + </mailingLists> + + <properties> +
> <maven.compiler.source>8</maven.compiler.source> +
> <maven.compiler.target>8</maven.compiler.target> + </properties> +
> + <dependencies> + <dependency> +
> <groupId>org.apache.bcel</groupId> +
> <artifactId>bcel</artifactId> + <version>6.4.1</version> +
> </dependency> + </dependencies> + + <build> + <resources> +
> <resource> + <directory>src/main/resources</directory> +
> <filtering>true</filtering> + </resource> + <resource> +
> <directory>src/main/scripot</directory> +
> <targetPath>bin</targetPath> + </resource> + </resources>
> + <plugins> + <plugin> + <!-- NOTE: We don't need a
> groupId specification because the group is +
> org.apache.maven.plugins ...which is assumed by default. +
> --> + <artifactId>maven-assembly-plugin</artifactId> +
> <version>3.2.0</version> + <configuration> +
> <descriptors> +
> <descriptor>src/assembly/bin.xml</descriptor> +
> </descriptors> + </configuration> + </plugin> +
> </plugins> + </build> + +</project> \ No newline at end of file
> diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml new file
> mode 100644 index 0000000..79f13c0 --- /dev/null +++
> b/src/assembly/bin.xml @@ -0,0 +1,33 @@ +<assembly
> xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" +
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" +
> xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0
> http://maven.apache.org/xsd/assembly-2.0.0.xsd"> + <id>bin</id> +
> <formats> + <format>tar.gz</format> + <format>zip</format> +
> </formats> + <fileSets> + <fileSet> +
> <directory>${project.basedir}</directory> +
> <outputDirectory></outputDirectory> + <includes> +
> <include>README*</include> + <include>LICENSE*</include> +
> <include>NOTICE*</include> + </includes> + </fileSet> +
> <fileSet> +
> <directory>${project.build.directpry}/bin</directory> +
> <includes> + <include>*.sh</include> + </includes> +
> <fileMode>0755</fileMode> + </fileSet> + </fileSets> +
> <dependencySets> + <dependencySet> +
> <outputDirectory>lib</outputDirectory> +
> <useProjectArtifact></useProjectArtifact> + </dependencySet> +
> </dependencySets> +</assembly> \ No newline at end of file diff
> --git a/src/main/scripts/migrate.sh b/src/main/scripts/migrate.sh
> new file mode 100644 index 0000000..3d3004f --- /dev/null +++
> b/src/main/scripts/migrate.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +#
> Assumes current layout of Maven's target directory +cd .. + +#
> Assumes java is on the path +java -cp lib/*
> org.apache.tomcat.jakartaee.Migration "$@"
>
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4chvoACgkQHPApP6U8
pFj+aw/+PP/gxye6fLJ5o/fsLWRpkVi/ToLD2chNou6YiDmGHXoBfKn1fOJ/gx0Q
jFDHeLpJyIPV3C2fCX2TPwe7Qzcw7fVqzvtv4nEOZHbyJJouhPkzxlPX/jt200QS
DV+68KG2hvaJKMynRJMqKLpGggT0MbtjEqfelZtxe1vtOwDrBGU5KneMtGLnJsek
+g7QUC9K7JWqoQVuDn57bkOZBu6DrjikxF5tFMUUgLJEs1RBaege3YBdWM6udzOQ
GMReSwxNfxhL0e9hgA6eD9YCAthhe9tMbDQTsNs2pqnl+rH/hbaXI9zqnlqFzg2d
B8b3S8g34d444PEWyH+wk5VC0wGjeNJYyjhsehIXkiA362On4Yr8I3wzw38B/uDM
tHqEolgZO8bKS5Uhe9C1hFJoYnKUqlUuItxV3BR7O8MfsFHoBrOaGrs+bgVQEZu2
c1kA1SPY8ey+WJVvvxEYtP0sXeYpF/nWwnNQwwmEtEX3W9U8r3ZHFclt0EHEvBK3
J05R/2g7V3M8N6wdP5H7HPwtVClxsJyWEm/0mq8zYZ/bFCdHhGdR9ssUUjDGt6Sm
e1jnADRtABACPaMdWiDr8cIAsM/4T2LddnZYavUkZJD9whj8mB2v1+u1sxO9YFFc
7ACnqyc5WxCG/fm2T8gLQ3mHEzq8aTBaB3NlaY+LQ6oSsXeUnIw=
=LI1l
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org