Here's what I have in my pom.xml. Works fine :
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Cheers.

2008/11/10 tim tim <[EMAIL PROTECTED]>

> hello all,
>
> i have problems using the maven-source-plugin.
> the problem is that when i call
>
> > mvn install
>
> the project is build and deployed into my local repository, but the
> sources are not.
>
> i am following the instructions  "Installing the sources along with
> your artifact"
> on
>
>  http://maven.apache.org/plugins/maven-source-plugin/usage.html
>
> and hence the build section of my pom looks like this:
>  <build>
>            <pluginManagement>
>                    <plugins>
>                            <plugin>
>
>  <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-eclipse-plugin</artifactId>
>                                    <version>2.4</version>
>                                    <configuration>
>
>  <downloadSources>true</downloadSources>
>
>  <downloadJavadocs>true</downloadJavadocs>
>                                    </configuration>
>                            </plugin>
>                            <plugin>
>
>  <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-dependency-plugin</artifactId>
>                            </plugin>
>
>                            <plugin>
>
>  <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-source-plugin</artifactId>
>                                    <executions>
>                                            <execution>
>                                                    <id>attach-sources</id>
>                                                    <phase>verify</phase>
>                                                    <goals>
>                                                            <goal>jar</goal>
>                                                    </goals>
>                                            </execution>
>                                    </executions>
>                            </plugin>
>                    </plugins>
>            </pluginManagement>
>
>    </build>
>
> thanks a lot, tim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to