mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
105 stars 76 forks source link

xjc deleted project #161

Open GordianDziwis opened 4 years ago

GordianDziwis commented 4 years ago

Settings were:

  <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>jaxb2-maven-plugin</artifactId>
                <version>2.5.0</version>
                <executions>
                    <execution>
                        <id>xjc</id>
                        <goals>
                            <goal>xjc</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <packageName>com.example.myschema</packageName>
                    <outputDirectory>${basedir}</outputDirectory>
                    <sources>
                        <source>${basedir}/src/main/resources/schemas</source>
                    </sources>
                </configuration>
            </plugin>

Execution lead to deleting everything inclusive `.git/. It's my fault for setting the output Dir to the basdir. But should not there something to prevent me shooting my own foot?