title: How to configure NAR Maven projects?
body: <p>I am trying to <em>Mavenize</em> a C++ project with nar-maven, on Windows with MSVC. It is a shared library.<br/> 
  I already tested successfully nar-maven on sample projects with this <a href="https://github.com/duns/maven-archetype-nar-lib" rel="nofollow">archetype</a>.<br/></p>
  
  <p>So now, I need to use the <a href="http://maven-nar.github.io/index.html" rel="nofollow">nar-maven-plugin</a> for a bigger project. In order to compile successfully, I need to add some arguments (includes, libs, preprocessor definitions...). And this is where I am stuck. Here is a sample of my current pom file :
  </p>
  
  <pre><code>&lt;project&gt;
  
    ...
  
    &lt;properties&gt;
      &lt;skipTests&gt;true&lt;/skipTests&gt;
    &lt;/properties&gt;  
  
    &lt;build&gt;
      &lt;defaultGoal&gt;integration-test&lt;/defaultGoal&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;com.github.maven-nar&lt;/groupId&gt;
          &lt;artifactId&gt;nar-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;3.5.0&lt;/version&gt;
          &lt;extensions&gt;true&lt;/extensions&gt;
          &lt;configuration&gt;
            &lt;options&gt;
                &lt;option&gt;/D_WINDOWS&lt;/option&gt;
                &lt;option&gt;/D_WINDLL&lt;/option&gt;
                &lt;option&gt;...&lt;/option&gt;
            &lt;/options&gt;
            &lt;libraries&gt;
              &lt;library&gt;
                &lt;type&gt;shared&lt;/type&gt;
              &lt;/library&gt;
            &lt;/libraries&gt;
            &lt;tests&gt;
              &lt;test&gt;
                &lt;name&gt;libblawin&lt;/name&gt;
                &lt;link&gt;shared&lt;/link&gt;
              &lt;/test&gt;
            &lt;/tests&gt;
  
          &lt;/configuration&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  
    &lt;dependencies&gt;
      ...
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Whatever parameter I add (options tag, includes tag...) within the configuration tag, it is not taken in account by maven. Indeed, when I look for the command line used to compile a source file (using the -X option with mvn) the options added in the pom.xml are not included.<br/>
  The command line used by maven :</p>
  
  <pre><code>Executing 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl' with arguments:
  ''
  '/c'
  '/nologo'
  '/EHsc'
  '/DNDEBUG'
  '/MD'
  '/GR'
  '/FdD:\NAR-projects\srt\target\nar\obj\amd64-Windows-msvc\'
  '/DWIN32'
  '/ID:\NAR-projects\srt\target\nar\obj\amd64-Windows-msvc'
  '/ID:\NAR-projects\srt\target\nar\obj\amd64-Windows-msvc'
  '/ID:\NAR-projects\srt\src\main\include'
  '/IC:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include'
  '/IC:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include'
  '/IC:\Program Files (x86)\Windows Kits\8.1\Include\shared'
  '/IC:\Program Files (x86)\Windows Kits\8.1\Include\um'
  '/IC:\Program Files (x86)\Windows Kits\8.1\Include\winrt'
  '/FoD:\NAR-projects\srt\target\nar\obj\amd64-Windows-msvc\libraryExtern.1d1757c3.obj'
  'include/interapp/libraryExtern.cpp'
  </code></pre>
  
  <p>Anyway, I think that I am doing something wrong, and I hope you can help. I need to find a way to configure my project as I want.</p>