Why <sourcepath>src</sourcepath>? Aren't your sources in src/main/java?

On Tue, Jan 3, 2012 at 5:31 AM, yerra babji <[email protected]> wrote:
> Hi,
>
> I have added the following plugin in my pom.xml file's  build
> configuration. When i execute the mvn package, Its getting failed during
> javadoc creation and complaining like "import **** package does not exist"
>
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-javadoc-plugin</artifactId>
>      <version>2.8</version>
>      <executions>
>              <execution>
>                     <phase>package</phase>
>                     <goals><goal>jar</goal></goals>
>                     <configuration>
>                        <sourcepath>src/</sourcepath>
>                     </configuration>
>             </execution>
>     </executions>
> </plugin>
>
> But after that if I run " mvn javadoc:jar " (without cleaning the target)
> Its running fine and creating javadoc.
>
> Could anyone please suggest me how to avoid this issue.
>
> Thanks in advance for your support.
>
> Regads,
> Babji

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to