MSBuild Maven Plugin Integration Tests - maven-msbuild-plugin-it

Integration Tests for the Maven Plugin

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

uk.org.raje.maven.plugins
ArtifactId

ArtifactId

msbuild-maven-plugin-it
Last Version

Last Version

0.2
Release Date

Release Date

Type

Type

jar
Description

Description

MSBuild Maven Plugin Integration Tests - maven-msbuild-plugin-it
Integration Tests for the Maven Plugin
Project URL

Project URL

https://github.com/andi12/maven-msbuild-plugin
Source Code Management

Source Code Management

https://github.com/andi12/msbuild-maven-plugin/tree/master/msbuild-maven-plugin-it

Download msbuild-maven-plugin-it

How to add to project

<!-- https://jarcasting.com/artifacts/uk.org.raje.maven.plugins/msbuild-maven-plugin-it/ -->
<dependency>
    <groupId>uk.org.raje.maven.plugins</groupId>
    <artifactId>msbuild-maven-plugin-it</artifactId>
    <version>0.2</version>
</dependency>
// https://jarcasting.com/artifacts/uk.org.raje.maven.plugins/msbuild-maven-plugin-it/
implementation 'uk.org.raje.maven.plugins:msbuild-maven-plugin-it:0.2'
// https://jarcasting.com/artifacts/uk.org.raje.maven.plugins/msbuild-maven-plugin-it/
implementation ("uk.org.raje.maven.plugins:msbuild-maven-plugin-it:0.2")
'uk.org.raje.maven.plugins:msbuild-maven-plugin-it:jar:0.2'
<dependency org="uk.org.raje.maven.plugins" name="msbuild-maven-plugin-it" rev="0.2">
  <artifact name="msbuild-maven-plugin-it" type="jar" />
</dependency>
@Grapes(
@Grab(group='uk.org.raje.maven.plugins', module='msbuild-maven-plugin-it', version='0.2')
)
libraryDependencies += "uk.org.raje.maven.plugins" % "msbuild-maven-plugin-it" % "0.2"
[uk.org.raje.maven.plugins/msbuild-maven-plugin-it "0.2"]

Dependencies

compile (1)

Group / Artifact Type Version
uk.org.raje.maven.plugins : msbuild-maven-plugin jar 0.2

test (1)

Group / Artifact Type Version
org.apache.maven.shared : maven-verifier jar 1.4

Project Modules

There are no modules declared in this project.

msbuild-maven-plugin

Maven 3 plugin for building Visual Studio solutions and projects with msbuild.

Requirements:

  • Originally tested with Visual Studio 2010 and 2012. Integration tests now updated for Visual Studio 2015.
  • .NET framework v4.0 (for msbuild)

In addition to building using msbuild the plugin also supports:

  • Creating a version resource from information in your POM
  • Running static analysis tools:
    • CppCheck (1.61)
    • Vera++ (1.2.1)
  • Generating, building and executing unit tests using CxxTest (4.2.1, don't use 4.3 due to Windows compilation issues)
  • Generating configuration files for the Sonar runner to ingest source, CppCheck, Vera and CxxTest results.

Usage

For detailed usage instruction see the project Wiki at: https://github.com/andi12/msbuild-maven-plugin/wiki

The plugin is available from Maven Central see http://search.maven.org/#search|ga|1|a%3A%22msbuild-maven-plugin%22

This simple example shows basic setup to build from a solution file. Place the following in the <build> <plugins> section of you POM and use our 'exe' packaging.

    <plugin>
        <groupId>uk.org.raje.maven.plugins</groupId>
        <artifactId>msbuild-maven-plugin</artifactId>
        <version>1.2.1</version>
        <extensions>true</extensions>
        <configuration>
            <projectFile>hello-world.vcxproj</projectFile>
            <platforms>
                <platform>
                    <name>Win32</name>
                    <configurations>
                        <configuration>
                            <name>Release</name>
                        </configuration>
                        <configuration>
                            <name>Debug</name>
                        </configuration>
                    </configurations>
                </platform>
            </platforms>
        </configuration>
    </plugin>

Changelog

This section provides a summary of significant changes in each release. For all details see the commitlog.

1.3.1 (1-Oct-2019)

  • Support .NET 2.0, don't set maxcpucount when configured value is 0

1.3.0 (29-Sep-2019)

  • Minor fixes for Java 8
  • Integration tests passing with Visual Studio 2015 (Community Edition)

1.2.1 (5-Nov-2013)

  • Add support for a set of exclude patterns to be specified for CppCheck and Vera
  • Change default Vera profile to 'default' from 'full'

1.2 (1-Nov-2013)

  • Add support for Vera++ code style checker
  • #8: CppCheck outputs results of --check-config to the Maven log
  • #21: CPPCHECK_PATH environment variable can be used to configure the location of CppCheck
  • #21: CXXTEST_HOME environment variable can be used to configure the home path for CxxTest
  • #20: Test report files from CxxTest output to target/test-results instead of target/surefire-reports
  • #18: Support for maven.test.failure.ignore which suppresses a build failure if tests fail.
  • #18: Support for skipTests property which skips test execution.

1.1 (10-Oct-2013)

  • #13: Sonar properties files now include links configured in the POM
  • #6: VersionInfoMojo allows input file to be configured
  • #5: VersionInfoMojo allows destination file to be specified

Versions

Version
0.2
0.1.0