You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ossi petz <os...@hallo.ms> on 2007/10/04 16:54:55 UTC
exclude .svn folders with maven-source-plugin
hallo
i dont know exaclty when this started to happen:
i added the maven source plugin to the build section.
i noticed the created sources.jar contains the '.svn' folders from the
source directory.
is there a way to exclude them?
thanks a lot :)
ossi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: exclude .svn folders with maven-source-plugin
Posted by ossi petz <os...@hallo.ms>.
hallo
it seems to have a connection to some resource settings:
the parent pom defines resources, since we put hibernate.hbm files and
webstart keyfiles into the source folder:
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<!-- The java directory may also contain resources (hbm.xml etc.) -->
<directory>src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
when i add the lines below to a submodule the .svn folders do not end up
in the sources jar.
<build>
<resources>
<resource>
<!-- Standard resources must be listed due to customized resources. -->
<directory>src/main/resources</directory>
</resource>
</resources>
the submodule with the -svn folder has in its pom:
when i dont include these resources settings in the buid section the
.svn folders are included.
well. it seems to happen for a reaseon. so thanks for listening :)
Wayne Fay schrieb:
> They are excluded by default. You must be doing something special.
>
> Send the relevant portion of your pom and perhaps someone will have
> specific advice.
>
> Wayne
>
> On 10/4/07, ossi petz <os...@hallo.ms> wrote:
>> hallo
>>
>> i dont know exaclty when this started to happen:
>> i added the maven source plugin to the build section.
>>
>> i noticed the created sources.jar contains the '.svn' folders from the
>> source directory.
>>
>> is there a way to exclude them?
>>
>>
>> thanks a lot :)
>>
>> ossi
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: exclude .svn folders with maven-source-plugin
Posted by ossi petz <os...@hallo.ms>.
hallo
well the plugin configuration os copied from an example:
<plugin>
<artifactId>maven-source-plugin</artifactId>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
the situation is even more weird. the project contains several modules.
some sub-modules contain the .svn folder, some dont (and there is no
difference between the poms beside the dependency part).
well maybe someon can give me a hint? i ll try to figure out the difference.
regards
ossi
Wayne Fay schrieb:
> They are excluded by default. You must be doing something special.
>
> Send the relevant portion of your pom and perhaps someone will have
> specific advice.
>
> Wayne
>
> On 10/4/07, ossi petz <os...@hallo.ms> wrote:
>> hallo
>>
>> i dont know exaclty when this started to happen:
>> i added the maven source plugin to the build section.
>>
>> i noticed the created sources.jar contains the '.svn' folders from the
>> source directory.
>>
>> is there a way to exclude them?
>>
>>
>> thanks a lot :)
>>
>> ossi
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: exclude .svn folders with maven-source-plugin
Posted by Wayne Fay <wa...@gmail.com>.
They are excluded by default. You must be doing something special.
Send the relevant portion of your pom and perhaps someone will have
specific advice.
Wayne
On 10/4/07, ossi petz <os...@hallo.ms> wrote:
> hallo
>
> i dont know exaclty when this started to happen:
> i added the maven source plugin to the build section.
>
> i noticed the created sources.jar contains the '.svn' folders from the
> source directory.
>
> is there a way to exclude them?
>
>
> thanks a lot :)
>
> ossi
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org