NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Maven Netbeans RCP Webstart App (NB69)

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
ah_mostin



Joined: 11 Jul 2010
Posts: 9

PostPosted: Sun Jul 11, 2010 1:41 am    Post subject: Maven Netbeans RCP Webstart App (NB69) Reply with quote

This is probably a real newbie question but I'm looking to build a Webstart Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to build and package the JNLP App as a zip file but I'm stumped on the how to create the war file with JNLPServlet etc that Netbeans generates through the UI.

Can anyone point me in the right direction or even better show me a sample project which I can copy ?
Back to top
Edvin Syse
Posted via mailing list.





PostPosted: Sun Jul 11, 2010 3:35 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

On 11.07.2010 01:41, ah_mostin wrote:
Quote:
This is probably a real newbie question but I'm looking to build a Webstart Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to build and package the JNLP App as a zip file but I'm stumped on the how to create the war file with JNLPServlet etc that Netbeans generates through the UI.

Can anyone point me in the right direction or even better show me a sample project which I can copy ?

Maybe the nbm-maven-plugin doesn't generate it for you. Anyway, I think you should be able to use the one that comes with your
SDK. More information here:

http://download.oracle.com/docs/cd/E17409_01/javase/6/docs/technotes/guides/javaws/developersguide/downloadservletguide.html

--
Edvin Syse
Back to top
ah_mostin



Joined: 11 Jul 2010
Posts: 9

PostPosted: Sun Jul 11, 2010 4:46 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

Edvin,
thanks for the reply & link, at this stage I'm just confused on how to config the maven pom goal to take the output from nbm:webstart-app and bundle that into a war file along with the JNLPServlet etc.

No artifact is installed in the local rep for the zip file which I can refer to in another Maven Module for build the WAR.
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Mon Jul 12, 2010 7:23 am    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

you create a new project (war packaging) and depend on the jnlp zip (is it deployed as artifact with classifier? if not use - http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html) in the war project you will have to unzip the jnlp stuff using http://maven.apache.org/plugins/maven-dependency-plugin/unpack-mojo.html


Milos  

On Sun, Jul 11, 2010 at 6:47 PM, ah_mostin <address-removed ([email]address-removed[/email])> wrote:
Quote:
Edvin,
  thanks for the reply & link, at this stage I'm just confused on how to config the maven pom goal to take the output from nbm:webstart-app and bundle that into a war file along with the JNLPServlet etc.

No artifact is installed in the local rep for the zip file which I can refer to in another Maven Module for build the WAR.




Back to top
Gabriele Kahlout
Posted via mailing list.





PostPosted: Thu Aug 05, 2010 12:34 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

Hello,
Is your code publicly available? I'm having trouble using
nbm:webstart-app, and your code would be a good demonstration.

2010/7/11, ah_mostin <address-removed>:
Quote:
This is probably a real newbie question but I'm looking to build a Webstart
Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to build
and package the JNLP App as a zip file but I'm stumped on the how to create
the war file with JNLPServlet etc that Netbeans generates through the UI.

Can anyone point me in the right direction or even better show me a sample
project which I can copy ?







--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
Back to top
Mikael Tollefsen
Posted via mailing list.





PostPosted: Thu Aug 05, 2010 4:19 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

I made an example NetBeans RCP/JavaEE6 project available on

http://github.com/mikael2/Sample-JEE6-Maven-project

2010/8/5 Gabriele Kahlout <address-removed ([email]address-removed[/email])>
Quote:
Hello,
Is your code publicly available? I'm having trouble using
nbm:webstart-app, and your code would be a good demonstration.

2010/7/11, ah_mostin <address-removed ([email]address-removed[/email])>:

Quote:
This is probably a real newbie question but I'm looking to build a Webstart
Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to build
and package the JNLP App as a zip file but I'm stumped on the how to create
the war file with JNLPServlet etc that Netbeans generates through the UI.

Can anyone point me in the right direction or even better show me a sample
project which I can copy ?









--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).



--
mvh,
Mikael Tollefsen
Back to top
Mikael Tollefsen
Posted via mailing list.





PostPosted: Thu Aug 05, 2010 4:26 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

2010/8/5 Gabriele Kahlout <address-removed ([email]address-removed[/email])>
Quote:
Hello,
Is your code publicly available? I'm having trouble using
nbm:webstart-app, and your code would be a good demonstration.

2010/7/11, ah_mostin <address-removed ([email]address-removed[/email])>:

Quote:
This is probably a real newbie question but I'm looking to build a Webstart
Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to build
and package the JNLP App as a zip file but I'm stumped on the how to create
the war file with JNLPServlet etc that Netbeans generates through the UI.

Can anyone point me in the right direction or even better show me a sample
project which I can copy ?









--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).



--
mvh,
Mikael Tollefsen
Back to top
Gabriele Kahlout
Posted via mailing list.





PostPosted: Thu Aug 05, 2010 5:34 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

Thank you. How do I run the project?
I've download the git code, and opened the project in netbeans ide. I
then clicked on run at NetBeansRCP Application but it would give me:

[ERROR]BUILD ERROR
------------------------------------------------------------------------
Failed to resolve artifact.

Missing:
----------
1) com.exie:external-wrapper:nbm:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.exie
-DartifactId=external-wrapper -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.exie
-DartifactId=external-wrapper -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.exie:application:nbm-application:1.0-SNAPSHOT
2) com.exie:external-wrapper:nbm:1.0-SNAPSHOT

2) com.exie:mjeedom:nbm:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.exie -DartifactId=mjeedom
-Dversion=1.0-SNAPSHOT -Dpackaging=nbm -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.exie -DartifactId=mjeedom
-Dversion=1.0-SNAPSHOT -Dpackaging=nbm -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.exie:application:nbm-application:1.0-SNAPSHOT
2) com.exie:mjeedom:nbm:1.0-SNAPSHOT

3) com.exie:scala-lib:nbm:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.exie
-DartifactId=scala-lib -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.exie -DartifactId=scala-lib
-Dversion=1.0-SNAPSHOT -Dpackaging=nbm -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.exie:application:nbm-application:1.0-SNAPSHOT
2) com.exie:scala-lib:nbm:1.0-SNAPSHOT

4) com.exie:branding:nbm:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.exie
-DartifactId=branding -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.exie -DartifactId=branding
-Dversion=1.0-SNAPSHOT -Dpackaging=nbm -Dfile=/path/to/file
-Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.exie:application:nbm-application:1.0-SNAPSHOT
2) com.exie:branding:nbm:1.0-SNAPSHOT

5) com.exie:domainview:nbm:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.exie
-DartifactId=domainview -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.exie
-DartifactId=domainview -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.exie:application:nbm-application:1.0-SNAPSHOT
2) com.exie:domainview:nbm:1.0-SNAPSHOT

6) com.exie:RemoteHandler:nbm:1.0-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.exie
-DartifactId=RemoteHandler -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.exie
-DartifactId=RemoteHandler -Dversion=1.0-SNAPSHOT -Dpackaging=nbm
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.exie:application:nbm-application:1.0-SNAPSHOT
2) com.exie:RemoteHandler:nbm:1.0-SNAPSHOT

----------
6 required artifacts are missing.

for artifact:
com.exie:application:nbm-application:1.0-SNAPSHOT

from the specified remote repositories:
scala-tools.org (http://scala-tools.org/repo-releases),
central (http://repo1.maven.org/maven2),
sonatype-flexgroup (http://repository.sonatype.org/content/groups/flexgroup),
caucho (http://caucho.com/m2),
java.net2 (http://download.java.net/maven/2),
netbeans (http://bits.netbeans.org/maven2)



------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 5 minutes 23 seconds
Finished at: Thu Aug 05 20:26:40 AST 2010
Final Memory: 8M/81M
------------------------------------------------------------------------



2010/8/5, Mikael Tollefsen <address-removed>:
Quote:
I made an example NetBeans RCP/JavaEE6 project available on

http://github.com/mikael2/Sample-JEE6-Maven-project

2010/8/5 Gabriele Kahlout <address-removed>

Quote:
Hello,
Is your code publicly available? I'm having trouble using
nbm:webstart-app, and your code would be a good demonstration.

2010/7/11, ah_mostin <address-removed>:
Quote:
This is probably a real newbie question but I'm looking to build a
Webstart
Quote:
Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to
build
and package the JNLP App as a zip file but I'm stumped on the how to
create
Quote:
the war file with JNLPServlet etc that Netbeans generates through the
UI.

Can anyone point me in the right direction or even better show me a
sample
Quote:
project which I can copy ?







--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).




--
mvh,
Mikael Tollefsen



--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
Back to top
gw152771
Posted via mailing list.





PostPosted: Thu Aug 05, 2010 9:25 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

On 08/05/2010 03:16 PM, Mikael Tollefsen wrote:
Quote:
I made an example NetBeans RCP/JavaEE6 project available on

http://github.com/mikael2/Sample-JEE6-Maven-project


Wow, brilliant. I'm going to have a look at this ASAP.

Gj


Quote:

2010/8/5 Gabriele Kahlout <address-removed ([email]address-removed[/email])>
Quote:
Hello,
Is your code publicly available? I'm having trouble using
nbm:webstart-app, and your code would be a good demonstration.

2010/7/11, ah_mostin <address-removed ([email]address-removed[/email])>:
Quote:
This is probably a real newbie question but I'm looking to build a Webstart
Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to build
and package the JNLP App as a zip file but I'm stumped on the how to create
the war file with JNLPServlet etc that Netbeans generates through the UI.

Can anyone point me in the right direction or even better show me a sample
project which I can copy ?









--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).



--
mvh,
Mikael Tollefsen
Back to top
Gabriele Kahlout
Posted via mailing list.





PostPosted: Fri Aug 06, 2010 4:45 pm    Post subject: [platform-dev] Re: Maven Netbeans RCP Webstart App (NB69) Reply with quote

Also, where is the .jnlp I should be able to launch? The often called
launch.jnlp.

2010/8/5, Mikael Tollefsen <address-removed>:
Quote:
I made an example NetBeans RCP/JavaEE6 project available on

http://github.com/mikael2/Sample-JEE6-Maven-project

2010/8/5 Gabriele Kahlout <address-removed>

Quote:
Hello,
Is your code publicly available? I'm having trouble using
nbm:webstart-app, and your code would be a good demonstration.

2010/7/11, ah_mostin <address-removed>:
Quote:
This is probably a real newbie question but I'm looking to build a
Webstart
Quote:
Netbeans RCP app with Maven. I've used the nbm:webstart-app goal to
build
and package the JNLP App as a zip file but I'm stumped on the how to
create
Quote:
the war file with JNLPServlet etc that Netbeans generates through the
UI.

Can anyone point me in the right direction or even better show me a
sample
Quote:
project which I can copy ?







--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).




--
mvh,
Mikael Tollefsen



--
Regards,
K. Gabriele

--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer
OR with " ACK" appended to this subject within 48 hours. Otherwise, I
might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x,
this) ∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).

Also note that correspondence may be received only from specified a
priori senders, or if the subject of this email ends with a code, eg.
-LICHT01X, then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y.
In(y, subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo