You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by yerra babji <yb...@gmail.com> on 2012/01/03 11:31:20 UTC
Javadoc creation is giving errors
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
Re: Javadoc creation is giving errors
Posted by yerra babji <yb...@gmail.com>.
Our package structure is little different. we have src/com/<>/<>/<>/ . . . .
and ours is multi-module adf project.
On Tue, Jan 3, 2012 at 7:05 PM, Benson Margulies <bi...@gmail.com>wrote:
> Why <sourcepath>src</sourcepath>? Aren't your sources in src/main/java?
>
> On Tue, Jan 3, 2012 at 5:31 AM, yerra babji <yb...@gmail.com>
> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Javadoc creation is giving errors
Posted by Benson Margulies <bi...@gmail.com>.
Why <sourcepath>src</sourcepath>? Aren't your sources in src/main/java?
On Tue, Jan 3, 2012 at 5:31 AM, yerra babji <yb...@gmail.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org