can't get two things done

16 views
Skip to first unread message

JC

unread,
Jul 12, 2013, 1:20:44 PM7/12/13
to maven-svn-revisi...@googlegroups.com
Hello all
I was more than happy to find about this plugin, but I ran into a few issues:
- I thought the depth actually means something, but running mvn --debug I see it always traverses the whole directory structure... but I'd want only the first level
- I can't get it to write the properties file, it simply does nothing. I have the src/main/resources/revision.txt file with the recommended contents, and here's the pom - I  would really appreciate if you can point me why it is happening...
Thank you!

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
                <artifactId>svn-revision-number-maven-plugin</artifactId>
                <version>1.13</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>revision</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <includes>
                        <include>src/main/java/**/*.java</include>
                    </includes>
                    <entries>
                        <entry>
                            <depth>1</depth>
                            <prefix>prefix</prefix>
                        </entry>
                    </entries>
                </configuration>
            </plugin>
Reply all
Reply to author
Forward
0 new messages