Using Eclipse without maven plugin (multiple module project)

Why aren’t you checking the project out in Eclipse?

BTW. I suggest using the STS version of Eclipse since all your plug-ins come preinstalled except for Subversion which is mostly included.

On 13/07/2010 11:31 AM, Bahadýr Konu wrote:

on

Can we define a plugin with different configuration in multi module pom project

There is a top level pom.xml which calls two sub modules as below: module1 module2

Where module2 is dependent on module1 The xjc plugin configuration in module1 pom.xml is as below: com.sun.tools.xjc.maven2 maven-jaxb-plugin generate false true true

The xjc configuration in module2′s pom.xml is as below: com.sun.tools.xjc.maven2 maven-jaxb-plugin com.mycompany.module1 module1 1.0 runtime generate schema.xsd bindings.xjb false true true -Xpdm

Now when I run mvn from top level directory then module2 build fails, I get the below error: [INFO] unrecognized parameter -Xpdm [INFO] ———————————————————————— [INFO] Trace unrecognized parameter -Xpdm at com.sun.tools.xjc.XJC2Task._doXJC(XJC2Task.java:446) at com.sun.tools.xjc.XJC2Task.doXJC(XJC2Task.java:434)

The reason for this error was because module1 dependency was not used while XJC plugin execution during module2 build. My question: why module2′s xjc plugin configuration did not come into effect? When I run mvn in module2 directory it works fine but from top level directory it fails. Any help, what I am missing at?

Run maven-jetty-plugin for webapp in other Maven module

Hi all,

i got a maven parent project with 2 child modules 1. The webapp project (webapp) 2. The maven module for integration test (test)

both modules runs without problem individually. but as i want to automate them together. i would like to configure the test project pom.xml such that in the pre-integration-test and post-integration-test life cycle. the webapp is started.

i try to use the exec-maven-plugin (in test project) to start the webapp project using the maven-jetty-plugin (in webapp project). unfortunately this does not work as the exec:exec goal will hang as mvn jetty:run command does not return. i guess i could solve this problem by adding a “&” at the end of the command but this will limited to only linux users.

Since the above approach doesn’t work. i wonder if i could add the maven-jetty-plugin in the test project to start the webpp in another maven module which is the webapp project in my case. i have checked the maven-jetty-plugin home page but i cannot figure out how to make it.

Any ideas are welcome and thanks for your help.

Regards, Kit

how to rebuild single kernel module

I need to make a quick change to a kernel module, I would like to just get the source and make the change and build.

How can I build ??? I did a google, but couldn’t find the debian way of building with linux-headers..

Alex

How to build a module without the installation of dependent modules?

I have a maven project like this:

my-project module-A module-B

two modules A and B are in the sibling folders with the parent my-project. Module B is a dependent of module A.

If I run “mvn test” in my-project folder, it works fine. But if I run “mvn test” in module-B folder, it asks me to install module A in the repository.

How can I build module B without the installation of module A?

I tried reactor command line options and reactor plugins but not lucky.

For example, in my-project folder, “mvn –projects ../module-A” returns an error saying cannot find “…./my-project/../module-A”.

“mvn reactor:make -Dmake.artifacts=module-B” didn’t work too.

Does somebody know the answer? Thanks a lot

Kernel update includes nouveau module that clobbers nVidia drivers

Since the last testing update I have rebooted and found myself being ensnarled in what seems to be a kernel issue, whereby a module “nouveau” by default seizes control of the graphics card which prevents the nVidia driver from loading.

Here’s some history [1]

However, for some nouveau doesn’t seem to work as one would hope [2]. The problem is that nVidia drivers don’t load and therefore xorg can’t find any screens and X doesn’t load.

The resolution to this problem seems to boil down to two solutions:

1. If you use grub2 then edit

/etc/default/grub

then add

nouveau.modeset=0

to the end of the line that reads

GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

(“quiet” seems a typical default option), so that that line now reads

GRUB_CMDLINE_LINUX_DEFAULT=”quiet nouveau.modeset=0″

run

update-grub2

and reboot. [3]

2. Add repository for experimental to apt sources, and in addition to the usual group you’d download to upgrade your kernel (i.e. module-assistant, nvidia-kernel-source, build-essential, etc.) also install

nvidia-glx nvidia-kernel-dkms

and pursue the usual update process and reboot. [4]

Option 1 didn’t work for me, but that might be because I am using lilo and not grub

So I removed nouveau directly and then went for option 2 and rebooted.

Then I stopped the *DM

/etc/init.d/*dm stop

and installed the NVIDIA-*-pkg*.run and restarted my *DM

/etc/init.d/*dm start

All seems to be fine now. How sustainable this is though, I don’t know

I pass this along and hope that this helps anyone who finds themselves similarly disposed.

AG

=========

[1] http://groups.google.com/group/linux.debian.user/msg/9ab8ecdc1149f898 http://www.nvnews.net/vbulletin/showthread.php?t=151694&page=2 [2] http://www.nvnews.net/vbulletin/showpost.php?p=2263528&postcount=1 [3] http://www.nvnews.net/vbulletin/showpost.php?p=2263801&postcount=8 and http://www.nvnews.net/vbulletin/showpost.php?p=2263812&postcount=12 [4] http://www.nvnews.net/vbulletin/showpost.php?s=751d48d7876bf377b3e02695fa186dde&p=2263851&postcount=14

multi module checkout

On 6/14/10 11:58 AM, House, Thomas wrote: An observation – I get the impression scm:checkout isn’t used very much and/or this is a CVS-specific problem, so it may just be that no one has run into this before.

Justin

(solved)Re: how to prevent a module from auto loading

Thank Alexander Batischev! I add the line to /etc/modprobe.d/blacklist Now it works!

On Wed, Jun 9, 2010 at 1:31 AM, Alexander Batischev wrote:

how to prevent a module from auto loading

I use etch When I plug a USB device, usbserial module is autoloaded in kernel 2.4 (or error messages appear in kernel 2.6) I want to load acm module My question is how to prevent usbserial from autoloading Thanks!

Copying jar in multi module project with assembly

Hi,

I have multi module project structure as shown below . In mod2 target directory I have created executable jar, say abc.jar . Now I want to include this jar in the archive of mod1.1 that I’m creating using assembly.xml. My question is how can I refer to this abc.jar which is a runtime artifact of mod2..?

myproject |__mod1 | |_mod1.1 |_mod2

Thanks.