Hi, I need some help in getting the artifact files in a MavenProject.
When working with the fxcop plugin Ive looked on how the other 0.16
plugins works. The DotnetTestMojo.getTestAssemblyName() method uses
project.getArtifact().getFile() to get the File for the artifact, but
that seems to only be working when I run "mvn test". If I run "mvn
org.apache.maven.dotnet.plugins:maven-dotnet-test-plugin:test" then I
get a NPE:
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.dotnet.plugin.nunit.DotnetTestMojo.getTestAssemblyName(DotnetTestMojo.java:158)
at
org.apache.maven.dotnet.plugin.nunit.DotnetTestMojo.execute(DotnetTestMojo.java:86)
So how should I get the artifacts for the project? Is there any way to
initialize all fields in the MavenProject object?
The 0.14 fxcop is concatenating artifactid and the packaging extension
(without the version string), but that doesnt feel right.
regards
//Erik