Re: Maven && NetBeans && outputWindow && colours
Maven colors logging output by default when possible (`--color=auto`, see https://maven.apache.org/ref/3.8.7/maven-embedder/cli.html), so Maven code (including plugins) should log errors via the logging API used by Maven (SLF4J, see https://maven.apache.org/maven-logging.html) instead of `System.err`. Or are you looking to colorize errors from your application when it is run by Maven, instead of errors logged by Maven or one of its plugins? Nils. > Op 3 mei 2024 om 12:25 heeft Arbol One het volgende > geschreven: > > Debian 12 > NetBeans 21 > Apache Maven 3.8.7 > > Hello. > > When using the Ant tool System.err.println() displays data in red, however, > when using Maven, the same expression does not produce a coloured output. > I'd very much like the ..err.. output be in red colour. So, what can I do to > make Maven display ..err.. outputs in red? > > > -- > */ArbolOne.ca/* Using Fire Fox and Thunderbird. ArbolOne is composed of > students and volunteers dedicated to providing free services to charitable > organizations. ArbolOne on Java Development is in progress [ í ]
Re: maven+netbeans+cpp newbie question
Hi Stephan, Netbeans doesn't work well with Maven and C++ project. We use the nar maven plugin to compile C++ project. Actually, we build from CLI but I use Netbeans for Java too. I think Netbeans doesn't know about "nar" package. So some editor features don't work anymore. For example, the src directory isn't display in project view. I don't know about the other native plugin. Regards, Vincent Hardion Le 26 nov. 2009 à 09:53, stephane ancelot a écrit : Hi, I have got a problem ! I have to use netbeans in multiproject environment. multiproject means I have to generate a package that is composed of many C/C++ applications executable. however, it looks like netbeans does not support well multiproject environment. So, may be using maven will solve this problem ? I would like to know if I can use maven with netbeans in this context, my project structure would be similar to : project1/ project2/ somelib1/ somelibx/ What are necessary customisations in order doing this ? I tried making a pom.xml with native settings, importing it in netbeans but it creates some java files. Inside the IDE , when I add new files to the project, I would like it to be transparent for the user. I do not want him to hack some pom files ...Is it working ? Best Regards Steph - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven+netbeans+cpp newbie question
On Thu, Nov 26, 2009 at 9:53 AM, stephane ancelot wrote: > Hi, > > I have got a problem ! > > I have to use netbeans in multiproject environment. multiproject means I > have to generate a package that is composed of many C/C++ applications > executable. > > however, it looks like netbeans does not support well multiproject > environment. > > So, may be using maven will solve this problem ? > depends. check first whether after using maven you still get most/all of the c++ editor features you get in the C++ projects. The support could be bound exclusively to these and be absent in maven projects.. > > I would like to know if I can use maven with netbeans in this context, my > project structure would be similar to : > > project1/ > project2/ > somelib1/ > somelibx/ > > > What are necessary customisations in order doing this ? > I tried making a pom.xml with native settings, importing it in netbeans > but it creates some java files. > you will need to find maven plugins specific to c++ developement and see from there how the maven project is to be customized. > > Inside the IDE , when I add new files to the project, I would like it to > be transparent for the user. > I do not want him to hack some pom files ...Is it working ? > It should as far as I can tell. Milos > > Best Regards > Steph > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: Maven Netbeans IDE Integration issue
Hey, it's switching to the IDE's own embedder (if I recall correctly) in 6.0 M10 only if the netbeans-run-jar plugin is invoked on Run Project action. If it's not, (after you change that setting in the project dialog), it shall invoked the command line version. BTW: I've got a fix for the setSince() NoSuchMethod exception for 6.0 beta1. Well, rather a workaround. I've added that method to the bytecode in the embedder binaries I use. Milos On 8/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Milos, > > Even if you set the entire IDE global preference to use external maven, if > you click the execute ot debug button of the IDE it switches to the > internal plugin I get this warning too. > WARNING: Automatically falling back to embedded Maven despite project > setup. > > The symbol error I mentioned was - Method not found error of Maven 2.0.4 > Netbeans 5.5 > You provided the solution - upgrade to Netbeans 6 MS 10 . > > Just for your reference > > = > Re: Maven Compile error - java.lang.NoSuchMethodError: > org.apache.maven.plugin.descriptor.MojoDescriptor.setSince(Ljava/lang/String; > > > > it should be on the default netbeans AU. (it is for M10, the daily > builds have a bug that prevents maven support from showing up.) The > version there is a bit older though. > Better add a new AU with this url > http://mevenide.codehaus.org/nbm_release2/NBM_AutoUpdate_6_0.xml > that gets you the latest binaries. > Once installed, go to Tools/Options dialog, select Miscelaneous/Maven2 > and set the location of maven binaries. > > > The main problem with Netbeans 6 is no support for clearcase > I will be happy if you can provide maven plugin to execute external maven > in Netbeans 5.5. I use Netbeans 6 for compilation and Netbeans 5.5 for > development. :-(. may its time for me to shift to someother IDE. > > > Thanks & Regards, > Jayaram > > > > > > "Milos Kleint" <[EMAIL PROTECTED]> > 31/08/2007 18:56 > Please respond to > "Maven Users List" > > > To > "Maven Users List" > cc > > Subject > Re: Maven Netbeans IDE Integration issue > > > > > > > On 8/31/07, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am using Netbeans 6 M 10 with maven 2.0.7 configured for external > build. > > Normal compile and build uses the external IDE. But if I try to run or > > debug my application then it shows the message > > > > > > > > WARNING: Project Run execution within Netbeans requires running the > build > > within the same VM as the IDE. > > WARNING: Automatically falling back to embedded Maven despite project > > setup. > > > > In this case the IDE recompiles with embedded maven (I think version > > 2.0.4) which has some symbol dependency issue. My application > > crashes > > what is a "symbol dependency issue"? > > The plugin runs within the IDE because it attempts to capture the > application's own output separate from the output of the build. You > can definitely override that in the project properties dialog and > setup the project to run using the exec-maven-plugin and it's exec > goal. > or even the java goal (but only together with the external maven > execution, otherwise you run in the same VM as the IDE). > > Regards > > Milos > > > > > Thanks & Regards, > > Jayaram > > > > This communication is for informational purposes only. It is not > > intended as an offer or solicitation for the purchase or sale of > > any financial instrument or as an official confirmation of any > > transaction. All market prices, data and other information are not > > warranted as to completeness or accuracy and are subject to change > > without notice. Any comments or statements made herein do not > > necessarily reflect those of JPMorgan Chase & Co., its subsidiaries > > and affiliates. This transmission may contain information that is > > privileged, confidential, legally privileged, and/or exempt from > > disclosure under applicable law. If you are not the intended > > recipient, you are hereby notified that any disclosure, copying, > > distribution, or use of the information contained herein (including > > any reliance thereon) is STRICTLY PROHIBITED. Although this > > transmission and any attachments are believed to be free of any > > virus or other defect that might affect any computer system into > > which it is received a
Re: Maven Netbeans IDE Integration issue
Hi Milos, Even if you set the entire IDE global preference to use external maven, if you click the execute ot debug button of the IDE it switches to the internal plugin I get this warning too. WARNING: Automatically falling back to embedded Maven despite project setup. The symbol error I mentioned was - Method not found error of Maven 2.0.4 Netbeans 5.5 You provided the solution - upgrade to Netbeans 6 MS 10 . Just for your reference = Re: Maven Compile error - java.lang.NoSuchMethodError: org.apache.maven.plugin.descriptor.MojoDescriptor.setSince(Ljava/lang/String; it should be on the default netbeans AU. (it is for M10, the daily builds have a bug that prevents maven support from showing up.) The version there is a bit older though. Better add a new AU with this url http://mevenide.codehaus.org/nbm_release2/NBM_AutoUpdate_6_0.xml that gets you the latest binaries. Once installed, go to Tools/Options dialog, select Miscelaneous/Maven2 and set the location of maven binaries. The main problem with Netbeans 6 is no support for clearcase I will be happy if you can provide maven plugin to execute external maven in Netbeans 5.5. I use Netbeans 6 for compilation and Netbeans 5.5 for development. :-(. may its time for me to shift to someother IDE. Thanks & Regards, Jayaram "Milos Kleint" <[EMAIL PROTECTED]> 31/08/2007 18:56 Please respond to "Maven Users List" To "Maven Users List" cc Subject Re: Maven Netbeans IDE Integration issue On 8/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I am using Netbeans 6 M 10 with maven 2.0.7 configured for external build. > Normal compile and build uses the external IDE. But if I try to run or > debug my application then it shows the message > > > > WARNING: Project Run execution within Netbeans requires running the build > within the same VM as the IDE. > WARNING: Automatically falling back to embedded Maven despite project > setup. > > In this case the IDE recompiles with embedded maven (I think version > 2.0.4) which has some symbol dependency issue. My application > crashes what is a "symbol dependency issue"? The plugin runs within the IDE because it attempts to capture the application's own output separate from the output of the build. You can definitely override that in the project properties dialog and setup the project to run using the exec-maven-plugin and it's exec goal. or even the java goal (but only together with the external maven execution, otherwise you run in the same VM as the IDE). Regards Milos > > Thanks & Regards, > Jayaram > > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction. All market prices, data and other information are not > warranted as to completeness or accuracy and are subject to change > without notice. Any comments or statements made herein do not > necessarily reflect those of JPMorgan Chase & Co., its subsidiaries > and affiliates. This transmission may contain information that is > privileged, confidential, legally privileged, and/or exempt from > disclosure under applicable law. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution, or use of the information contained herein (including > any reliance thereon) is STRICTLY PROHIBITED. Although this > transmission and any attachments are believed to be free of any > virus or other defect that might affect any computer system into > which it is received and opened, it is the responsibility of the > recipient to ensure that it is virus free and no responsibility is > accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, > as applicable, for any loss or damage arising in any way from its > use. If you received this transmission in error, please immediately > contact the sender and destroy the material in its entirety, > whether in electronic or hard copy format. Thank you. > Please refer to http://www.jpmorgan.com/pages/disclosures for > disclosures relating to UK legal entities. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice.
Re: Maven Netbeans IDE Integration issue
On 8/31/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I am using Netbeans 6 M 10 with maven 2.0.7 configured for external build. > Normal compile and build uses the external IDE. But if I try to run or > debug my application then it shows the message > > > > WARNING: Project Run execution within Netbeans requires running the build > within the same VM as the IDE. > WARNING: Automatically falling back to embedded Maven despite project > setup. > > In this case the IDE recompiles with embedded maven (I think version > 2.0.4) which has some symbol dependency issue. My application > crashes what is a "symbol dependency issue"? The plugin runs within the IDE because it attempts to capture the application's own output separate from the output of the build. You can definitely override that in the project properties dialog and setup the project to run using the exec-maven-plugin and it's exec goal. or even the java goal (but only together with the external maven execution, otherwise you run in the same VM as the IDE). Regards Milos > > Thanks & Regards, > Jayaram > > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction. All market prices, data and other information are not > warranted as to completeness or accuracy and are subject to change > without notice. Any comments or statements made herein do not > necessarily reflect those of JPMorgan Chase & Co., its subsidiaries > and affiliates. This transmission may contain information that is > privileged, confidential, legally privileged, and/or exempt from > disclosure under applicable law. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution, or use of the information contained herein (including > any reliance thereon) is STRICTLY PROHIBITED. Although this > transmission and any attachments are believed to be free of any > virus or other defect that might affect any computer system into > which it is received and opened, it is the responsibility of the > recipient to ensure that it is virus free and no responsibility is > accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, > as applicable, for any loss or damage arising in any way from its > use. If you received this transmission in error, please immediately > contact the sender and destroy the material in its entirety, > whether in electronic or hard copy format. Thank you. > Please refer to http://www.jpmorgan.com/pages/disclosures for > disclosures relating to UK legal entities. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven Netbeans Build issues - JDK 1.6.0.02
Which repo are you having problems with? First you say repo1.maven.org. Then you say jibx.sf.net. Wayne On 8/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi All, > > The maven plugin is unable to connect to the website > http://repo1.maven.org/maven2/ from netbeans IDE. I have the correct proxy > details configured in the settings.xml file in $HOME/.m2/ folder. Netbeans > update works properly. But maven build gives the message WARN]Unable to > get resource from repository jibx.sf.net (http://jibx.sf.net/maven2) > > How can I fix the same? > > Thanks & Regards, > Jayaram Ganapathy > [EMAIL PROTECTED] > Phone: 0141 228 0277 > > > > This communication is for informational purposes only. It is not > intended as an offer or solicitation for the purchase or sale of > any financial instrument or as an official confirmation of any > transaction. All market prices, data and other information are not > warranted as to completeness or accuracy and are subject to change > without notice. Any comments or statements made herein do not > necessarily reflect those of JPMorgan Chase & Co., its subsidiaries > and affiliates. This transmission may contain information that is > privileged, confidential, legally privileged, and/or exempt from > disclosure under applicable law. If you are not the intended > recipient, you are hereby notified that any disclosure, copying, > distribution, or use of the information contained herein (including > any reliance thereon) is STRICTLY PROHIBITED. Although this > transmission and any attachments are believed to be free of any > virus or other defect that might affect any computer system into > which it is received and opened, it is the responsibility of the > recipient to ensure that it is virus free and no responsibility is > accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, > as applicable, for any loss or damage arising in any way from its > use. If you received this transmission in error, please immediately > contact the sender and destroy the material in its entirety, > whether in electronic or hard copy format. Thank you. > Please refer to http://www.jpmorgan.com/pages/disclosures for > disclosures relating to UK legal entities. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven & Netbeans
This is an ugly hack, but could you build a Maven "POM" project and then do a set of ant tasks to link the standard phases to goals in the NetBeans-produced build? - Original Message - From: "Milos Kleint" <[EMAIL PROTECTED]> To: "Maven Users List" Sent: Wednesday, July 11, 2007 3:35 AM Subject: Re: Maven & Netbeans Ryan Cuprak wrote: Hello, I was just curious if it is possible to take an existing project in Netbeans and 'maven-ize' without starting from one of the archetypes and pasting my existing code into that project (as well as trying to figure out the dependencies and reverse engineer the project settings)? I have been tinkering with JSF as well as a Visual JSF web-application created using the Netbeans wizards. not to my knowledge. something similar was filed agains the mevenide project but I closed it as wontfix as it's out of scope for the project. http://jira.codehaus.org/browse/MEVENIDE-446 It could be technically possible as the netbeans project build scripts have a reasonably consistent structure and the nbproject/project.xml file is somewhat comparable to pom.xml. Milos Thanks, -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven & Netbeans
Ryan Cuprak wrote: Hello, I was just curious if it is possible to take an existing project in Netbeans and 'maven-ize' without starting from one of the archetypes and pasting my existing code into that project (as well as trying to figure out the dependencies and reverse engineer the project settings)? I have been tinkering with JSF as well as a Visual JSF web-application created using the Netbeans wizards. not to my knowledge. something similar was filed agains the mevenide project but I closed it as wontfix as it's out of scope for the project. http://jira.codehaus.org/browse/MEVENIDE-446 It could be technically possible as the netbeans project build scripts have a reasonably consistent structure and the nbproject/project.xml file is somewhat comparable to pom.xml. Milos Thanks, -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]