I know you have the answer you want chris,

There was still some doubt in my mind about one thing and for anyone following the thread.

To use the big green button to run the javafx archetypes

right click  on projects. -> properties -> actions

select action "clean and build project" from drop down lost.

remove previous text from "execute  goals :".

insert new text to set  "execute  goals :"   to "clean install javafx:run"  -> OK.

so now you can use the IDE to run maven projects

in all the very many different ways in NetBeans.


for web application command line it is   "mvn  jetty:run"

with the following addition to pom.xml

            <packagings>
                <packaging>war</packaging>
            </packagings>

|<build> |
||<finalName>mywebapp</finalName>| <plugins> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.4.7.v20170914</version> <configuration> <webApp> <contextPath>/${build.finalName}</contextPath> </webApp> <stopKey>CTRL+C</stopKey> <stopPort>8999</stopPort> <scanIntervalSeconds>10</scanIntervalSeconds> <scanTargets> <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget> </scanTargets> </configuration> </plugin> </plugins> </build> |

On 02/01/2020 03:08, zahid wrote:

There are no components missing you need to set command line arguments.

I think a found an answer for you on how to run from NetBeans IDE.

select project  -> right click -> run maven   ->  set goal in dialogue window type  javafx:run -k OK

next time you  to go project -> run maven > jafax:run will automatically appear.



On 02/01/2020 01:23, Chris Olsen wrote:
Zahid and All --

Thank you!   I now have had some success, and things are looking up.  I think I 
need to study some existing working pom files, and this will be very helpful!

   -- Chris

----- Original Message -----
From: zahid<zahidr1...@gmail.com>
To: Geertjan Wielenga<geert...@apache.org>, Chris Olsen<col...@mchsi.com>
Cc: users<users@netbeans.apache.org>
Sent: Wed, 01 Jan 2020 18:48:45 -0500 (EST)
Subject: Re: Newbie to Maven problem -- JavaFX runtime components missing


if you want to run the example at

https://openjfx.io/openjfx-docs/maven

Below is the complete pom.xml file I just made it.
I have tested it.

you also need to create the directory structure maven expects.
see
https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
with windows same directory structure.
your pom.xml file in the top directory. i.e C:\helloapp.

You run the command  mvn clean javafx:run from C:\helloapp

C:\src\main\java\HelloFX.java



<?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>

      <groupId>org.openjfx</groupId>
      <artifactId>hellofx</artifactId>
      <version>1.0-SNAPSHOT</version>
      <packaging>jar</packaging>

      <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          <jfx.version>14-ea+6</jfx.version>
      </properties>


      <dependencies>
          <dependency>
              <groupId>org.openjfx</groupId>
              <artifactId>javafx-controls</artifactId>
              <version>${jfx.version}</version>
          </dependency>

          <dependency>
              <groupId>org.openjfx</groupId>
              <artifactId>javafx-fxml</artifactId>
              <version>${jfx.version}</version>
          </dependency>
          <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
              <version>2.1.7.RELEASE</version>
          </dependency>
      </dependencies>
      <build>
          <plugins>

              <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
                  <version>3.8.1</version>
                  <configuration>
                      <release>12</release>
                  </configuration>
              </plugin>

              <plugin>
                  <groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
                  <version>0.0.3</version>
                  <configuration>
                      <mainClass>HelloFX</mainClass>
                  </configuration>
              </plugin>

              <!--
              <plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
              </plugin>
              -->

          </plugins>
      </build>
</project>



On 01/01/2020 21:26, Geertjan Wielenga wrote:
https://openjfx.io/openjfx-docs/maven

Gj

On Wed, 1 Jan 2020 at 18:24, Geertjan Wielenga <geert...@apache.org <mailto:geert...@apache.org>> wrote:


     There’s a colon in there, at least.

     javafx:run

     If I remember correctly. Really take a look at that YouTube clip
     again.

     Gj

     On Wed, 1 Jan 2020 at 18:23, Geertjan Wielenga
     <geert...@apache.org  <mailto:geert...@apache.org>> wrote:

         Is that what you see in that YouTube clip? Can you take
         another look at it?

         Gj

         On Wed, 1 Jan 2020 at 18:17, Chris Olsen <col...@mchsi.com
         <mailto:col...@mchsi.com>> wrote:

             Hi, again  (and thanks again for lightning!) --

               >https://m.youtube.com/watch?v=8xaRwqcKPSI

               I did that (and remembered that I had watched this
             previously with the same result as follows).  I am now
             getting a message,...

               Unknown lifecycle phase "javafx"..  You must...or a goal
             in the format <plugin-prefix:<goal>or...

               The immediate neighborhood  of concern (so far as I can
             tell) in the nbactions.xml file is:

                   <goals>
                      <goal>clean</goal>
                      <goal>javafx</goal>
                      <goal>run</goal>
                   </goals>

                -- Chris


             
---------------------------------------------------------------------
             To unsubscribe, e-mail:
             users-unsubscr...@netbeans.apache.org
             <mailto:users-unsubscr...@netbeans.apache.org>
             For additional commands, e-mail:
             users-h...@netbeans.apache.org
             <mailto:users-h...@netbeans.apache.org>

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

--
www.backbutton.co.uk
       ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.

--
www.backbutton.co.uk
      ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.

Reply via email to