Hi Łukasz.
Not much experience with Maven archetypes, but did attempt to try things out
using NetBeans 11 and a copy of the current snapshot repository that was built
locally (which should be close enough ?).
The Maven archetype generation appeared to work OK in all cases
("-DarchetypeVersion=2.5.21-SNAPSHOT"), but after generation there were a
couple of issues noted when trying to build the now generated modules:
1) struts2-archetype-portlet - The pom.xml generated by the archetype uses:
"<struts2.version>${supported.struts2.version}</struts2.version>" but
"supported.struts2.version" does not appear to be defined anywhere in the POM
hierarchy by default and caused a build failure for the module. Replacing
"${supported.struts2.version}" with a literal "2.5.20" built fine.
2) struts2-archetype-plugin - Since no explicit source/target exist in the
pom.xml Maven ends up using "-target 1.5 -source 1.5" in the build. It builds
fine with JDK 8, but fails when building with JDK 11. Forcing a
maven-compiler-plugin entry in pom.xml with source/target 1.7 fixed the issue
for JDK 11.
Hope that helps.
James.
On Sunday, November 17, 2019, 2:16:07 p.m. EST, Lukasz Lenart
<[email protected]> wrote:
Anyone had a chance to test those archetypes? Is it ready for Vote?
Regards
--
Łukasz
czw., 7 lis 2019 o 10:34 Lukasz Lenart <[email protected]> napisał(a):
>
> Hi,
>
> I have prepared a test build [1] of the Maven Archetypes but there is
> one issue which I don't know how to resolve. A maven-archetype.xml
> catalog is empty so it isn't possible to use the command [2] to test
> the archetypes. When installed locally, there is no problem with them.
>
> [1] https://repository.apache.org/content/repositories/orgapachestruts-1094/
> [2] maven archetype:generate
> -DarchetypeCatalog=https://repository.apache.org/content/repositories/orgapachestruts-1094/
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]