NetBeans Forums

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

netbeans + maven : what dependencies to add to gain editor capabilities like files line number?

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



Joined: 13 Nov 2011
Posts: 8

PostPosted: Sun Nov 13, 2011 6:59 pm    Post subject: netbeans + maven : what dependencies to add to gain editor capabilities like files line number? Reply with quote

When creating a mavenized netbeans application,
you start with a app stripped of many functionalities.

I have been looking around for a while now,
but still can't find how to add a basic editor capability :
i would like the editor to display line numbers !

Could somebody provides me of few hints on :
1) what dependencies do i need to declare to gain this specific functionality.
2) any pointers about the editor architecture and how to use it.

3) Additionally, how to find out all the dependencies you need when you want to implement an existing feature? Typically it seems that when you use the standard netbeans dependency management, you have a nice view of what dependencies are required for each functionality in Properties > Library plus a resolving mechanism. How do you find the same information while working with a mavenized app ?

Thanks.
Back to top
bernie_bontemps



Joined: 13 Nov 2011
Posts: 8

PostPosted: Mon Nov 14, 2011 9:34 pm    Post subject: Reply with quote

As a alternative, i have try to download the ide cluster from the bits.netbeans.org repository by adding this dependency to my pom

<dependency>
<groupId>org.netbeans.cluster</groupId>
<artifactId>ide</artifactId>
<version>RELEASE69</version>
</dependency>

Maven failed to find some jars though it is looking at bits.netbeans.org/maven2

Failed to execute goal on project ide: Could not resolve dependencies for project bla:bla:nbm:1.0-SNAPSHOT: Could not find artifact org.netbeans.cluster:ide:jar:RELEASE701 in netbeans (http://bits.netbeans.org/maven2) -> [Help 1]

Anybody?
Back to top
Milos Kleint
Posted via mailing list.





PostPosted: Tue Nov 15, 2011 7:38 am    Post subject: [platform-dev] Re: netbeans + maven : what dependencies to add to gain editor capabilities like files line number? Reply with quote

On Mon, Nov 14, 2011 at 10:34 PM, bernie_bontemps
<address-removed> wrote:
Quote:
As a alternative, i have try to download the ide cluster from the bits.netbeans.org repository  by adding this dependency to my pom

       <dependency>
           <groupId>org.netbeans.cluster</groupId>
           <artifactId>ide</artifactId>
           <version>RELEASE69</version>
       </dependency>

Maven failed to find some jars though it is looking at bits.netbeans.org/maven2

you need to add <type>pom</type> as all cluster artifacts are just pom
files with a list of modules in the given cluster.

typically you want to add clusters to your app and only exclude the
modules you don't want..

Milos

Quote:

Failed to execute goal on project ide: Could not resolve dependencies for project bla:bla:nbm:1.0-SNAPSHOT: Could not find artifact org.netbeans.cluster:ide:jar:RELEASE701 in netbeans (http://bits.netbeans.org/maven2) -> [Help 1]

Anybody?




Back to top
bernie_bontemps



Joined: 13 Nov 2011
Posts: 8

PostPosted: Wed Nov 16, 2011 8:28 pm    Post subject: Reply with quote

Thanks for the reply.

The default <type> in Maven is jar, thus if you use the
graphic interface to add dependencies, the build will fail.
You will ave to edit the pom manually and set the dependency "type"
attribute to "pom".

To get the editor, i ended up adding all editor dependencies i could find
and then exclude the one i did not need...
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