1

What i should write if i am using Glasss Fish in Goal Text Field when i am building maven project in eclipse , just like i am writing tomcat:run when using tomcat server ?

Dummy Code :

 FileWriter fstream = new FileWriter("F:\\vector_documents\\DevTest.txt", true);
        BufferedWriter fbw = new BufferedWriter(fstream);
        for (int i = 1; i <= 5; i++) {
            fbw.write(""+ colList.get(i).get(0)+"");
            fbw.write("^");
            fbw.write(""+ colList.get(i).get(1)+"");
            fbw.write("^");
            fbw.write(""+ colList.get(i).get(2)+"");
            fbw.write("^");
            fbw.write(""+ colList.get(i).get(3)+"");
            fbw.write("^");
            fbw.write(""+ colList.get(i).get(4)+"");
            fbw.newLine();
faho
  • 14,470
  • 2
  • 37
  • 47

2 Answers2

0

This will depend on which maven plugin you configured for Glassfish integration.

If you are using org.glassfish:maven-embedded-glassfish-plugin to provide an embedded Glassfish server it would be:

mvn clean package embedded-glassfish:run

The plugins gives you few other options as per docs.

Karol Dowbecki
  • 43,645
  • 9
  • 78
  • 111
  • Finally I resolved my issue by following steps : 1. Right Click on project ,2. Go to Run As , 3.Maven Clean then ,4. Maven installed and then re restart glassfish server . – Devendra Singraul May 22 '18 at 10:49
0

Finally I resolved my issue by following steps :

  1. Right Click on project,

  2. Go to Run As,

3.Maven Clean,

4.Maven installed,

5.Re restart glassfish server