everit-org / eosgi-maven-plugin

A Maven plugin that runs Integration Tests inside OSGi containers and collects OSGi Bundle dependencies to be able to use them inside any IDE.
Apache License 2.0
4 stars 5 forks source link

NullPointerException when environment.id is null #16

Closed attila-kiss-it closed 10 years ago

attila-kiss-it commented 10 years ago

pom.xml fragement:

<plugin>
    <groupId>org.everit.osgi.dev</groupId>
    <artifactId>eosgi-maven-plugin</artifactId>
    <configuration>
        <environments>
            <environment>
                <id>${app.env.id}</id>

The "app.env.id" property is not defined and its value is null. It causes:

Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:360)
        at org.everit.osgi.dev.maven.DistMojo.execute(DistMojo.java:341)
balazs-zsoldos commented 10 years ago

Fixed in 2.0.5