Hi Josh,

I did more testing (after a clean installation and deleting cache, etc.)
and I had a problem trying to create a Maven Enterprise Application
project,
it seems that the three modules and the parent project are been created as
WAR. Once I modify the pom on every module the project was compiled
and packaged successfully.


Regards.

El lun., 3 jun. 2019 a las 23:13, Josh Juneau (<juneau...@gmail.com>)
escribió:

> Thanks Jose, I appreciate the feedback.  I'll take a look at the duplicate
> GlassFish options.
>
> Josh Juneau
> juneau...@gmail.com
> http://jj-blogger.blogspot.com
> https://www.apress.com/us/search?query=Juneau
> <https://www.apress.com/index.php/author/author/view/id/1866>
>
>
>
> On Mon, Jun 3, 2019 at 3:50 PM Jose Ch <pepnes...@gmail.com> wrote:
>
> > Hi Josh,
> >
> > I re-test a creation of a JEE8 Maven Web App and it was a success, great
> > work!.
> >
> > I found that when you add a new server instance the Glassfish Server
> > option appears twice(Capture-3.png). I will now test my projects and will
> > inform how it goes.
> >
> >
> > Regards.
> > José.
> >
> > El dom., 2 jun. 2019 a las 9:24, Josh Juneau (<juneau...@gmail.com>)
> > escribió:
> >
> >> Hi Jose/All,
> >>
> >> I updated the Java EE 8 Maven Archetype groupId, as there were some
> >> Sonatype issues with the original.  In order to test, please grab the
> >> latest copy of the sources located in the GitHub repository (
> >> https://github.com/juneau001/netbeans-javaee8-inprogress) and rebuild.
> >> Specifically, the source files that were changed to repair the archetype
> >> groupId are located within the
> >>
> >>
> enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/wizard/archetype
> >> package.
> >>
> >> Please re-test and let me know if there are any issues creating a new
> Java
> >> EE 8 Web Project.
> >>
> >> Thanks for all of your assistance.
> >> Josh Juneau
> >> juneau...@gmail.com
> >> http://jj-blogger.blogspot.com
> >> https://www.apress.com/us/search?query=Juneau
> >> <https://www.apress.com/index.php/author/author/view/id/1866>
> >>
> >>
> >>
> >> On Fri, May 31, 2019 at 2:07 PM Josh Juneau <juneau...@gmail.com>
> wrote:
> >>
> >> > Thanks for the feedback Jose...let me take a look into this.  It looks
> >> > like the Java EE 8 maven archetype may need to be updated.
> >> >
> >> >
> >> > Josh Juneau
> >> > juneau...@gmail.com
> >> > http://jj-blogger.blogspot.com
> >> > https://www.apress.com/us/search?query=Juneau
> >> > <https://www.apress.com/index.php/author/author/view/id/1866>
> >> >
> >> >
> >> >
> >> > On Fri, May 31, 2019 at 1:55 PM Jose Ch <pepnes...@gmail.com> wrote:
> >> >
> >> >> Hi Josh,
> >> >>
> >> >> I followed the instructions and had an error while Netbeans try to
> >> create
> >> >> a Maven Java Web JEE8 application:
> >> >>
> >> >> Scanning for projects...
> >> >>
> >> >> ------------------< org.apache.maven:standalone-pom
> >> >-------------------
> >> >> Building Maven Stub Project (No POM) 1
> >> >> --------------------------------[ pom
> >> ]---------------------------------
> >> >>
> >> >> >>> maven-archetype-plugin:2.4:generate (default-cli) >
> >> generate-sources
> >> >> @ standalone-pom >>>
> >> >>
> >> >> <<< maven-archetype-plugin:2.4:generate (default-cli) <
> >> generate-sources
> >> >> @ standalone-pom <<<
> >> >>
> >> >>
> >> >> --- maven-archetype-plugin:2.4:generate (default-cli) @
> standalone-pom
> >> ---
> >> >> Generating project in Batch mode
> >> >> Archetype defined by properties
> >> >> Downloading from webapp-javaee8-repo:
> >> >>
> >>
> https://repo.maven.apache.org/maven2/org/apache/netbeans/webapp-javaee8/1.0/webapp-javaee8-1.0.jar
> >> >>
> >> ------------------------------------------------------------------------
> >> >> BUILD FAILURE
> >> >>
> >> ------------------------------------------------------------------------
> >> >> Total time:  1.797 s
> >> >> Finished at: 2019-05-31T13:27:59-05:00
> >> >>
> >> ------------------------------------------------------------------------
> >> >> Failed to execute goal
> >> >> org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
> >> (default-cli)
> >> >> on project standalone-pom: The desired archetype does not exist
> >> >> (org.apache.netbeans:webapp-javaee8:1.0) -> [Help 1]
> >> >>
> >> >> To see the full stack trace of the errors, re-run Maven with the -e
> >> >> switch.
> >> >> Re-run Maven using the -X switch to enable full debug logging.
> >> >>
> >> >> For more information about the errors and possible solutions, please
> >> read
> >> >> the following articles:
> >> >> [Help 1]
> >> >>
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> >> >>
> >> >>
> >> >> I appended some screenshots.
> >> >>
> >> >> Jose.
> >> >>
> >> >> El jue., 30 may. 2019 a las 23:23, Josh Juneau (<juneau...@gmail.com
> >)
> >> >> escribió:
> >> >>
> >> >>> Thanks for all of the great feedback on the Java EE 8  support for
> >> Apache
> >> >>> NetBeans thus far.  I have updated the README to direct individuals
> to
> >> >>> install the "Oracle JS Parser" and "nbjavac" after building and
> >> running
> >> >>> the
> >> >>> IDE using a new userdir.  Once completed, the IDE should allow one
> to
> >> add
> >> >>> GlassFish 5, GlassFish 5.0.1, or GlassFish 5.1 server.  The IDE will
> >> also
> >> >>> allow one to create a new Java EE 8 project or convert an existing
> >> >>> project
> >> >>> to Java EE 8.
> >> >>>
> >> >>> Let me know if you have any questions.  I will work on putting
> >> together a
> >> >>> PR to get these features added to Apache NetBeans proper.
> >> >>>
> >> >>> Thanks
> >> >>>
> >> >>> Josh Juneau
> >> >>> juneau...@gmail.com
> >> >>> http://jj-blogger.blogspot.com
> >> >>> https://www.apress.com/us/search?query=Juneau
> >> >>> <https://www.apress.com/index.php/author/author/view/id/1866>
> >> >>>
> >> >>>
> >> >>>
> >> >>> On Wed, May 29, 2019 at 9:46 PM Josh Juneau <juneau...@gmail.com>
> >> wrote:
> >> >>>
> >> >>> > I have completed the modifications required to add Java EE 8,
> >> >>> GlassFish 5,
> >> >>> > GlassFish 5.0.1, and Eclipse GlassFish 5.1  support to Apache
> >> NetBeans
> >> >>> > 11.0.  I have checked the sources into my own repository, located
> on
> >> >>> GitHub
> >> >>> > at the following URL:
> >> >>> >
> >> >>> > GitHub Repository:
> >> >>> > https://github.com/juneau001/netbeans-javaee8-inprogress
> >> >>> >
> >> >>> > Please take a look and take it for a test spin using the
> >> instructions
> >> >>> > provided on GitHub.  I have copied the instructions below as well.
> >> >>> Once we
> >> >>> > are satisfied that the Java EE 8 support is complete, then I will
> >> >>> create
> >> >>> > the necessary PRs to add the functionality to Apache NetBeans 11.0
> >> >>> >
> >> >>> > Thanks for your testing and feedback!  Looking forward to adding
> >> this
> >> >>> > support to Apache NetBeans
> >> >>> >
> >> >>> > ------------------------------------------------------
> >> >>> >
> >> >>> > Apache NetBeans Java EE 8 Support Repository (In Progress)
> >> >>> >
> >> >>> > This repository consists of the modified modules required to
> enable
> >> >>> Java
> >> >>> > EE 8 support in Apache NetBeans 11.0. The sources in this
> repository
> >> >>> are in
> >> >>> > progress and there may still be bugs or some missing
> functionality.
> >> >>> Once
> >> >>> > approved, these sources will be used to create a pull request for
> >> the
> >> >>> > inclusion of Java EE 8 support in Apache NetBeans proper.
> >> >>> >
> >> >>> > To use these sources, follow these steps:
> >> >>> >
> >> >>> >    1.
> >> >>> >
> >> >>> >    Download the Apache NetBeans 11.0 sources, which can be found
> at
> >> the
> >> >>> >    following link:
> >> >>> https://netbeans.apache.org/download/nb110/nb110.html
> >> >>> >    2.
> >> >>> >
> >> >>> >    Once the Apache NetBeans 11.0 sources have been downloaded and
> >> >>> >    extracted to a directory on your machine, clone this repository
> >> to
> >> >>> your
> >> >>> >    machine.
> >> >>> >    3.
> >> >>> >
> >> >>> >    Overwrite the "enterprise" directory of the Apache NetBeans
> 11.0
> >> >>> >    sources with the entire contents of the "enterprise" directory
> in
> >> >>> this
> >> >>> >    repository.
> >> >>> >    4.
> >> >>> >
> >> >>> >    Copy the cluster.properties file, which resides within the
> >> nbbuild
> >> >>> >    directory of this repository, into the nbbuild directory of the
> >> >>> Apache
> >> >>> >    NetBeans 11.0 sources.
> >> >>> >    5.
> >> >>> >
> >> >>> >    Build the Apache NetBeans 11.0 sources using the directions
> >> >>> contained
> >> >>> >    in the Apache NetBeans README.
> >> >>> >    6.
> >> >>> >
> >> >>> >    Once Apache NetBeans 11.0 has been built, navigate into the
> >> >>> >    nbbuild/netbeans/etc directory and open the netbeans.conf file.
> >> Set
> >> >>> the
> >> >>> >    netbeans_jdkhome property within the file equal to the path of
> >> the
> >> >>> JDK you
> >> >>> >    plan to target for Java EE deployment.
> >> >>> >
> >> >>> > Example Using Zulu JDK 8:
> >> >>> >
> >> >>>
> >> netbeans_jdkhome=/Java_Dev/OpenJDK/zulu8.36.0.1-ca-jdk8.0.202-macosx_x64
> >> >>> >
> >> >>> >    1. Run Apache NetBeans and use a new userdir, as follows, from
> >> >>> within
> >> >>> >    the nbbuild/netbeans directory:
> >> >>> >
> >> >>> > ./bin/netbeans --userdir "/path/to/userdir/name"
> >> >>> >
> >> >>> >    - Note: You will be prompted to install Oracle JS Parser and
> >> nbjavac
> >> >>> >    the first time you attempt to add a server or create a new Java
> >> EE
> >> >>> project
> >> >>> >
> >> >>> > ** In this early release, you may have to kill the netbeans
> process
> >> >>> after
> >> >>> > installing Oracle JS Parser and nbjavac. After you have killed the
> >> >>> process,
> >> >>> > you can restart Apache NetBeans and begin to use for Java EE 8
> >> >>> development.
> >> >>> >
> >> >>> > Josh Juneau
> >> >>> > juneau...@gmail.com
> >> >>> > http://jj-blogger.blogspot.com
> >> >>> > https://www.apress.com/us/search?query=Juneau
> >> >>> > <https://www.apress.com/index.php/author/author/view/id/1866>
> >> >>> >
> >> >>> >
> >> >>>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> >> >> For additional commands, e-mail: dev-h...@netbeans.apache.org
> >> >>
> >> >> For further information about the NetBeans mailing lists, visit:
> >> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >> >>
> >> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
> > For additional commands, e-mail: dev-h...@netbeans.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
>
cd /home/pepness/NetBeansProjects/mavenproject4; JAVA_HOME=/opt/jvm/openJ9-12 /home/pepness/Apps/Development/netbeans/java/maven/bin/mvn -DarchetypeGroupId=io.github.juneau001 -DarchetypeArtifactId=webapp-javaee8 -DarchetypeVersion=1.0.0 -DarchetypeRepository=https://repo.maven.apache.org/maven2 -DgroupId=com.mycompany -DartifactId=mavenproject4-ejb -Dversion=1.0-SNAPSHOT -Dbasedir=/home/pepness/NetBeansProjects/mavenproject4 -Darchetype.interactive=false --batch-mode org.apache.maven.plugins:maven-archetype-plugin:2.4:generate
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building mavenproject4-1.0-SNAPSHOT 1.0-SNAPSHOT
------------------------------------------------------------------------

>>> maven-archetype-plugin:2.4:generate (default-cli) > generate-sources @ mavenproject4 >>>

--- maven-dependency-plugin:2.6:copy (default) @ mavenproject4 ---

<<< maven-archetype-plugin:2.4:generate (default-cli) < generate-sources @ mavenproject4 <<<

--- maven-archetype-plugin:2.4:generate (default-cli) @ mavenproject4 ---
Generating project in Batch mode
Archetype defined by properties
----------------------------------------------------------------------------
Using following parameters for creating project from Archetype: webapp-javaee8:1.0.0
----------------------------------------------------------------------------
Parameter: groupId, Value: com.mycompany
Parameter: artifactId, Value: mavenproject4-ejb
Parameter: version, Value: 1.0-SNAPSHOT
Parameter: package, Value: com.mycompany
Parameter: packageInPathFormat, Value: com/mycompany
Parameter: package, Value: com.mycompany
Parameter: groupId, Value: com.mycompany
Parameter: artifactId, Value: mavenproject4-ejb
Parameter: version, Value: 1.0-SNAPSHOT
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/home/pepness/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.388 s
Finished at: 2019-06-03T18:54:06-05:00
Final Memory: 16M/23M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project mavenproject4: org.apache.maven.archetype.exception.InvalidPackaging: Unable to add module to the current project as it is not of packaging type 'pom' -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to