Hi to all,

my first question: Is someone else using the above plugin ?

I've started to examine the nar plugin, cause i have a large nunber of
modules (ca. 150) which comprise of C++ code...I'm already using the
rpm-maven-plugin which works very good...but under the hood i'm currently
using cmake ....but i would like to get rid of cmake...

now the next logical step is to search for a module which can do the compile
etc. stuff ....and that's nar's time...

I have tested some small examples where i have some problems:

With the following pom i can let nar compile my files and produce a .so file
from it...but the part for Testing does not work....
    <packaging>nar</packaging>
    <name>Module: example</name>
    <groupId>narexample</groupId>
    <artifactId>com.exmaple</artifactId>
    <version>0.1-SNAPSHOT</version>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-nar-plugin</artifactId>
                <version>2.1-SNAPSHOT</version>
                <extensions>true</extensions>
                <configuration>
                    <libraries>
                        <library>
                            <type>shared</type>
                        </library>
                    </libraries>
                    <tests>
                        <test>
                            <name>bruch_test</name>
                            <link>static</link>
                        </test>
                    </tests>
                </configuration>
            </plugin>
        </plugins>
    </build>

The problem is that the unit test (bruch_test) depends on an external
library (boost) incl. it's include files and on the other hand the
bruch_test.cxx couldn't find the include files for the class (bruch.cxx)
with it's include file (bruch.hxx)...

I have the following structure:

  +-- src
         +--- main
                 +--- c++  (bruch.cxx, bruch.hxx)
         +--- test
                 +--- c++ (bruch_test.cxx)


May be i oversight the docs where i can configure the include files for the
unit tests and in particular for external libraries and not to forget the
lib itself (-L option for the linker?))

After i do an mvn compile i get the following files:

$ find -type f 
./src/main/c++/bruch.cxx
./src/main/c++/bruch.hxx
./src/test/c++/bruch_test.cxx
./target/nar/aol/amd64-Linux-g++-shared/lib/amd64-Linux-g++/shared/history.xml
./target/nar/aol/amd64-Linux-g++-shared/lib/amd64-Linux-g++/shared/libcom.exmaple-0.1-SNAPSHOT.so
./target/nar/obj/amd64-Linux-g++/history.xml
./target/nar/obj/amd64-Linux-g++/bruch.o
./target/test-nar/obj/amd64-Linux-g++/history.xml
./Makefile
./pom.xml


And an other interesting step would be to run the unit tests (output?) and
code coverage would be great

I can create code coverage using lcov via a Makefile ...but the next step is
to create Maven Plugin to integrated lcov html page into the usual maven
cycle...

So may be others have experience with this plugin 

Thanks in advance.
Kind regards
Karl Heinz Marbaise
-- 
View this message in context: 
http://old.nabble.com/maven-nar-plugin-%28http%3A--duns.github.com-maven-nar-plugin%29-tp27543417p27543417.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to