jaxb2-maven-plugin icon indicating copy to clipboard operation
jaxb2-maven-plugin copied to clipboard

xjc deleted project

Open GordianDziwis opened this issue 4 years ago • 0 comments

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?

GordianDziwis avatar May 19 '20 12:05 GordianDziwis