You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by David Hoffer <dh...@gmail.com> on 2009/04/10 14:26:36 UTC

How to generate javadoc jar only during deploy?

My project currently creates javadocs during the install goal, see pom
below.  How can I configure this to run only if deploy goal is run instead?

Alternatively, is there a way this can be externalized so that individual
developers can turn this feature off when they do an install?

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.5</version>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
</plugin>

Re: How to generate javadoc jar only during deploy?

Posted by David Hoffer <dh...@gmail.com>.
I just got a report from our CI guy that this change breaks the deploy.

That is, the javadoc jar doesn't get deployed anymore.  What's up?

-Dave

On Mon, Apr 13, 2009 at 8:09 AM, David Hoffer <dh...@gmail.com> wrote:

> Thanks much, I think you intended to say <phase>deploy</phase>.
>
> -Dave
>
>
> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
> stephen.alan.connolly@gmail.com> wrote:
>
>> 2009/4/10 David Hoffer <dh...@gmail.com>
>>
>> > My project currently creates javadocs during the install goal, see pom
>> > below.  How can I configure this to run only if deploy goal is run
>> instead?
>> >
>> > Alternatively, is there a way this can be externalized so that
>> individual
>> > developers can turn this feature off when they do an install?
>> >
>> > <plugin>
>> >                <groupId>org.apache.maven.plugins</groupId>
>> >                <artifactId>maven-javadoc-plugin</artifactId>
>> >                <version>2.5</version>
>> >                <executions>
>> >                    <execution>
>> >                        <id>attach-javadocs</id>
>>
>> <phase>install</phase>
>>
>> >
>> >                        <goals>
>> >                            <goal>jar</goal>
>> >                        </goals>
>> >                    </execution>
>> >                </executions>
>> > </plugin>
>> >
>>
>
>

Re: How to generate javadoc jar only during deploy?

Posted by David Hoffer <dh...@gmail.com>.
It does add some time to the build but I wouldn't consider it a burden, our
CI server is very fast so its no big deal for us.  Yes, we publish
everything, binary artifacts, source jars, javadoc jars to Artifactory our
internal corporate maven server.

Individual developers then hit that server for their builds, we wanted the
javadoc & source jars so IDE's automatically get these configured with the
binaries.

-Dave

On Mon, Apr 13, 2009 at 6:14 PM, Steve Ariantaj
<st...@tvworks.com>wrote:

>
> Hi David,
> Does this add any time to your overall deploy.
> And do you then post the javadocs to a more public site, or it's just
> for your own usage?
>
> Thanks.
> STeve
>
> -----Original Message-----
> From: David Hoffer [mailto:dhoffer6@gmail.com]
> Sent: Monday, April 13, 2009 5:11 PM
> To: Maven Users List
> Subject: Re: How to generate javadoc jar only during deploy?
>
> That works perfectly, thank you very much!
>
> -Dave
>
> On Mon, Apr 13, 2009 at 11:29 AM, B Smith-Mannschott
> <bs...@gmail.com>wrote:
>
> > Move the configuration into a profile. Only runs when the profile is
> > activated explicitly
> >
> > <project>
> >    ... mumble ...
> >    <profiles>
> >        <profile>
> >            <id>generate-javadocs</id>
> >            ...mumble...
> >
> >            <plugin>
> >               <groupId>org.apache.maven.plugins</groupId>
> >               <artifactId>maven-javadoc-plugin</artifactId>
> >               <version>2.5</version>
> >               <executions>
> >                   <execution>
> >                       <id>attach-javadocs</id>
> >                        <goals>
> >                           <goal>jar</goal>
> >                       </goals>
> >                   </execution>
> >               </executions>
> >           </plugin>
> >
> >            ... mumble ...
> > </profile>
> > </profiles>
> > </project>
> >
> > $ mvn -Pgenerate-javadocs deploy   <---- instally/deploy with javadocs
> > $ mvn deploy <------ install/deploy without javadocs
> >
> >
> > // ben
> >
> > On Mon, Apr 13, 2009 at 18:16, David Hoffer <dh...@gmail.com>
> wrote:
> > > Attaching to the install phase doesn't accomplish what I was looking
> for.
> > > This still generates javadocs for install goal it just doesn't
> publish it
> > to
> > > the local repo.
> > >
> > > I suppose its better than no change but the problem is that this
> still
> > > causes javadocs to be generated and then the IDE sees these and has
> to
> > > reindex, etc, its a slow process and we really don't need new
> javadocs
> > for
> > > every developer build.
> > >
> > > -Dave
> > >
> > > On Mon, Apr 13, 2009 at 9:52 AM, David Hoffer <dh...@gmail.com>
> > wrote:
> > >
> > >> Okay, i will try install phase.
> > >>
> > >> thanks,
> > >> -Dave
> > >>
> > >>
> > >> On Mon, Apr 13, 2009 at 9:42 AM, Stephen Connolly <
> > >> stephen.alan.connolly@gmail.com> wrote:
> > >>
> > >>> nope as attaching to the deploy phase means that it gets to run
> after
> > the
> > >>> lifecycle plugins (ie after deploy:deploy) therefore you need to
> attach
> > it
> > >>> to an earlier phase (and the latest earlier phase available is
> install)
> > >>>
> > >>> Sent from my [rhymes with myPod] ;-)
> > >>>
> > >>>
> > >>> On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:
> > >>>
> > >>>  Thanks much, I think you intended to say <phase>deploy</phase>.
> > >>>>
> > >>>> -Dave
> > >>>>
> > >>>> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
> > >>>> stephen.alan.connolly@gmail.com> wrote:
> > >>>>
> > >>>>  2009/4/10 David Hoffer <dh...@gmail.com>
> > >>>>>
> > >>>>>  My project currently creates javadocs during the install goal,
> see
> > pom
> > >>>>>> below.  How can I configure this to run only if deploy goal is
> run
> > >>>>>>
> > >>>>> instead?
> > >>>>>
> > >>>>>>
> > >>>>>> Alternatively, is there a way this can be externalized so that
> > >>>>>> individual
> > >>>>>> developers can turn this feature off when they do an install?
> > >>>>>>
> > >>>>>> <plugin>
> > >>>>>>              <groupId>org.apache.maven.plugins</groupId>
> > >>>>>>              <artifactId>maven-javadoc-plugin</artifactId>
> > >>>>>>              <version>2.5</version>
> > >>>>>>              <executions>
> > >>>>>>                  <execution>
> > >>>>>>                      <id>attach-javadocs</id>
> > >>>>>>
> > >>>>>
> > >>>>> <phase>install</phase>
> > >>>>>
> > >>>>>
> > >>>>>>                      <goals>
> > >>>>>>                          <goal>jar</goal>
> > >>>>>>                      </goals>
> > >>>>>>                  </execution>
> > >>>>>>              </executions>
> > >>>>>> </plugin>
> > >>>>>>
> > >>>>>>
> > >>>>>
> > >>>
> ---------------------------------------------------------------------
> > >>> 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
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: How to generate javadoc jar only during deploy?

Posted by Steve Ariantaj <st...@tvworks.com>.
Hi David,
Does this add any time to your overall deploy. 
And do you then post the javadocs to a more public site, or it's just
for your own usage?

Thanks.
STeve

-----Original Message-----
From: David Hoffer [mailto:dhoffer6@gmail.com] 
Sent: Monday, April 13, 2009 5:11 PM
To: Maven Users List
Subject: Re: How to generate javadoc jar only during deploy?

That works perfectly, thank you very much!

-Dave

On Mon, Apr 13, 2009 at 11:29 AM, B Smith-Mannschott
<bs...@gmail.com>wrote:

> Move the configuration into a profile. Only runs when the profile is
> activated explicitly
>
> <project>
>    ... mumble ...
>    <profiles>
>        <profile>
>            <id>generate-javadocs</id>
>            ...mumble...
>
>            <plugin>
>               <groupId>org.apache.maven.plugins</groupId>
>               <artifactId>maven-javadoc-plugin</artifactId>
>               <version>2.5</version>
>               <executions>
>                   <execution>
>                       <id>attach-javadocs</id>
>                        <goals>
>                           <goal>jar</goal>
>                       </goals>
>                   </execution>
>               </executions>
>           </plugin>
>
>            ... mumble ...
> </profile>
> </profiles>
> </project>
>
> $ mvn -Pgenerate-javadocs deploy   <---- instally/deploy with javadocs
> $ mvn deploy <------ install/deploy without javadocs
>
>
> // ben
>
> On Mon, Apr 13, 2009 at 18:16, David Hoffer <dh...@gmail.com>
wrote:
> > Attaching to the install phase doesn't accomplish what I was looking
for.
> > This still generates javadocs for install goal it just doesn't
publish it
> to
> > the local repo.
> >
> > I suppose its better than no change but the problem is that this
still
> > causes javadocs to be generated and then the IDE sees these and has
to
> > reindex, etc, its a slow process and we really don't need new
javadocs
> for
> > every developer build.
> >
> > -Dave
> >
> > On Mon, Apr 13, 2009 at 9:52 AM, David Hoffer <dh...@gmail.com>
> wrote:
> >
> >> Okay, i will try install phase.
> >>
> >> thanks,
> >> -Dave
> >>
> >>
> >> On Mon, Apr 13, 2009 at 9:42 AM, Stephen Connolly <
> >> stephen.alan.connolly@gmail.com> wrote:
> >>
> >>> nope as attaching to the deploy phase means that it gets to run
after
> the
> >>> lifecycle plugins (ie after deploy:deploy) therefore you need to
attach
> it
> >>> to an earlier phase (and the latest earlier phase available is
install)
> >>>
> >>> Sent from my [rhymes with myPod] ;-)
> >>>
> >>>
> >>> On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:
> >>>
> >>>  Thanks much, I think you intended to say <phase>deploy</phase>.
> >>>>
> >>>> -Dave
> >>>>
> >>>> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
> >>>> stephen.alan.connolly@gmail.com> wrote:
> >>>>
> >>>>  2009/4/10 David Hoffer <dh...@gmail.com>
> >>>>>
> >>>>>  My project currently creates javadocs during the install goal,
see
> pom
> >>>>>> below.  How can I configure this to run only if deploy goal is
run
> >>>>>>
> >>>>> instead?
> >>>>>
> >>>>>>
> >>>>>> Alternatively, is there a way this can be externalized so that
> >>>>>> individual
> >>>>>> developers can turn this feature off when they do an install?
> >>>>>>
> >>>>>> <plugin>
> >>>>>>              <groupId>org.apache.maven.plugins</groupId>
> >>>>>>              <artifactId>maven-javadoc-plugin</artifactId>
> >>>>>>              <version>2.5</version>
> >>>>>>              <executions>
> >>>>>>                  <execution>
> >>>>>>                      <id>attach-javadocs</id>
> >>>>>>
> >>>>>
> >>>>> <phase>install</phase>
> >>>>>
> >>>>>
> >>>>>>                      <goals>
> >>>>>>                          <goal>jar</goal>
> >>>>>>                      </goals>
> >>>>>>                  </execution>
> >>>>>>              </executions>
> >>>>>> </plugin>
> >>>>>>
> >>>>>>
> >>>>>
> >>>
---------------------------------------------------------------------
> >>> 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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate javadoc jar only during deploy?

Posted by David Hoffer <dh...@gmail.com>.
That works perfectly, thank you very much!

-Dave

On Mon, Apr 13, 2009 at 11:29 AM, B Smith-Mannschott
<bs...@gmail.com>wrote:

> Move the configuration into a profile. Only runs when the profile is
> activated explicitly
>
> <project>
>    ... mumble ...
>    <profiles>
>        <profile>
>            <id>generate-javadocs</id>
>            ...mumble...
>
>            <plugin>
>               <groupId>org.apache.maven.plugins</groupId>
>               <artifactId>maven-javadoc-plugin</artifactId>
>               <version>2.5</version>
>               <executions>
>                   <execution>
>                       <id>attach-javadocs</id>
>                        <goals>
>                           <goal>jar</goal>
>                       </goals>
>                   </execution>
>               </executions>
>           </plugin>
>
>            ... mumble ...
> </profile>
> </profiles>
> </project>
>
> $ mvn -Pgenerate-javadocs deploy   <---- instally/deploy with javadocs
> $ mvn deploy <------ install/deploy without javadocs
>
>
> // ben
>
> On Mon, Apr 13, 2009 at 18:16, David Hoffer <dh...@gmail.com> wrote:
> > Attaching to the install phase doesn't accomplish what I was looking for.
> > This still generates javadocs for install goal it just doesn't publish it
> to
> > the local repo.
> >
> > I suppose its better than no change but the problem is that this still
> > causes javadocs to be generated and then the IDE sees these and has to
> > reindex, etc, its a slow process and we really don't need new javadocs
> for
> > every developer build.
> >
> > -Dave
> >
> > On Mon, Apr 13, 2009 at 9:52 AM, David Hoffer <dh...@gmail.com>
> wrote:
> >
> >> Okay, i will try install phase.
> >>
> >> thanks,
> >> -Dave
> >>
> >>
> >> On Mon, Apr 13, 2009 at 9:42 AM, Stephen Connolly <
> >> stephen.alan.connolly@gmail.com> wrote:
> >>
> >>> nope as attaching to the deploy phase means that it gets to run after
> the
> >>> lifecycle plugins (ie after deploy:deploy) therefore you need to attach
> it
> >>> to an earlier phase (and the latest earlier phase available is install)
> >>>
> >>> Sent from my [rhymes with myPod] ;-)
> >>>
> >>>
> >>> On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:
> >>>
> >>>  Thanks much, I think you intended to say <phase>deploy</phase>.
> >>>>
> >>>> -Dave
> >>>>
> >>>> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
> >>>> stephen.alan.connolly@gmail.com> wrote:
> >>>>
> >>>>  2009/4/10 David Hoffer <dh...@gmail.com>
> >>>>>
> >>>>>  My project currently creates javadocs during the install goal, see
> pom
> >>>>>> below.  How can I configure this to run only if deploy goal is run
> >>>>>>
> >>>>> instead?
> >>>>>
> >>>>>>
> >>>>>> Alternatively, is there a way this can be externalized so that
> >>>>>> individual
> >>>>>> developers can turn this feature off when they do an install?
> >>>>>>
> >>>>>> <plugin>
> >>>>>>              <groupId>org.apache.maven.plugins</groupId>
> >>>>>>              <artifactId>maven-javadoc-plugin</artifactId>
> >>>>>>              <version>2.5</version>
> >>>>>>              <executions>
> >>>>>>                  <execution>
> >>>>>>                      <id>attach-javadocs</id>
> >>>>>>
> >>>>>
> >>>>> <phase>install</phase>
> >>>>>
> >>>>>
> >>>>>>                      <goals>
> >>>>>>                          <goal>jar</goal>
> >>>>>>                      </goals>
> >>>>>>                  </execution>
> >>>>>>              </executions>
> >>>>>> </plugin>
> >>>>>>
> >>>>>>
> >>>>>
> >>> ---------------------------------------------------------------------
> >>> 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: How to generate javadoc jar only during deploy?

Posted by B Smith-Mannschott <bs...@gmail.com>.
Move the configuration into a profile. Only runs when the profile is
activated explicitly

<project>
    ... mumble ...
    <profiles>
        <profile>
            <id>generate-javadocs</id>
            ...mumble...

            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-javadoc-plugin</artifactId>
               <version>2.5</version>
               <executions>
                   <execution>
                       <id>attach-javadocs</id>
                       <goals>
                           <goal>jar</goal>
                       </goals>
                   </execution>
               </executions>
           </plugin>

           ... mumble ...
</profile>
</profiles>
</project>

$ mvn -Pgenerate-javadocs deploy   <---- instally/deploy with javadocs
$ mvn deploy <------ install/deploy without javadocs


// ben

On Mon, Apr 13, 2009 at 18:16, David Hoffer <dh...@gmail.com> wrote:
> Attaching to the install phase doesn't accomplish what I was looking for.
> This still generates javadocs for install goal it just doesn't publish it to
> the local repo.
>
> I suppose its better than no change but the problem is that this still
> causes javadocs to be generated and then the IDE sees these and has to
> reindex, etc, its a slow process and we really don't need new javadocs for
> every developer build.
>
> -Dave
>
> On Mon, Apr 13, 2009 at 9:52 AM, David Hoffer <dh...@gmail.com> wrote:
>
>> Okay, i will try install phase.
>>
>> thanks,
>> -Dave
>>
>>
>> On Mon, Apr 13, 2009 at 9:42 AM, Stephen Connolly <
>> stephen.alan.connolly@gmail.com> wrote:
>>
>>> nope as attaching to the deploy phase means that it gets to run after the
>>> lifecycle plugins (ie after deploy:deploy) therefore you need to attach it
>>> to an earlier phase (and the latest earlier phase available is install)
>>>
>>> Sent from my [rhymes with myPod] ;-)
>>>
>>>
>>> On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:
>>>
>>>  Thanks much, I think you intended to say <phase>deploy</phase>.
>>>>
>>>> -Dave
>>>>
>>>> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
>>>> stephen.alan.connolly@gmail.com> wrote:
>>>>
>>>>  2009/4/10 David Hoffer <dh...@gmail.com>
>>>>>
>>>>>  My project currently creates javadocs during the install goal, see pom
>>>>>> below.  How can I configure this to run only if deploy goal is run
>>>>>>
>>>>> instead?
>>>>>
>>>>>>
>>>>>> Alternatively, is there a way this can be externalized so that
>>>>>> individual
>>>>>> developers can turn this feature off when they do an install?
>>>>>>
>>>>>> <plugin>
>>>>>>              <groupId>org.apache.maven.plugins</groupId>
>>>>>>              <artifactId>maven-javadoc-plugin</artifactId>
>>>>>>              <version>2.5</version>
>>>>>>              <executions>
>>>>>>                  <execution>
>>>>>>                      <id>attach-javadocs</id>
>>>>>>
>>>>>
>>>>> <phase>install</phase>
>>>>>
>>>>>
>>>>>>                      <goals>
>>>>>>                          <goal>jar</goal>
>>>>>>                      </goals>
>>>>>>                  </execution>
>>>>>>              </executions>
>>>>>> </plugin>
>>>>>>
>>>>>>
>>>>>
>>> ---------------------------------------------------------------------
>>> 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: How to generate javadoc jar only during deploy?

Posted by David Hoffer <dh...@gmail.com>.
Attaching to the install phase doesn't accomplish what I was looking for.
This still generates javadocs for install goal it just doesn't publish it to
the local repo.

I suppose its better than no change but the problem is that this still
causes javadocs to be generated and then the IDE sees these and has to
reindex, etc, its a slow process and we really don't need new javadocs for
every developer build.

-Dave

On Mon, Apr 13, 2009 at 9:52 AM, David Hoffer <dh...@gmail.com> wrote:

> Okay, i will try install phase.
>
> thanks,
> -Dave
>
>
> On Mon, Apr 13, 2009 at 9:42 AM, Stephen Connolly <
> stephen.alan.connolly@gmail.com> wrote:
>
>> nope as attaching to the deploy phase means that it gets to run after the
>> lifecycle plugins (ie after deploy:deploy) therefore you need to attach it
>> to an earlier phase (and the latest earlier phase available is install)
>>
>> Sent from my [rhymes with myPod] ;-)
>>
>>
>> On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:
>>
>>  Thanks much, I think you intended to say <phase>deploy</phase>.
>>>
>>> -Dave
>>>
>>> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
>>> stephen.alan.connolly@gmail.com> wrote:
>>>
>>>  2009/4/10 David Hoffer <dh...@gmail.com>
>>>>
>>>>  My project currently creates javadocs during the install goal, see pom
>>>>> below.  How can I configure this to run only if deploy goal is run
>>>>>
>>>> instead?
>>>>
>>>>>
>>>>> Alternatively, is there a way this can be externalized so that
>>>>> individual
>>>>> developers can turn this feature off when they do an install?
>>>>>
>>>>> <plugin>
>>>>>              <groupId>org.apache.maven.plugins</groupId>
>>>>>              <artifactId>maven-javadoc-plugin</artifactId>
>>>>>              <version>2.5</version>
>>>>>              <executions>
>>>>>                  <execution>
>>>>>                      <id>attach-javadocs</id>
>>>>>
>>>>
>>>> <phase>install</phase>
>>>>
>>>>
>>>>>                      <goals>
>>>>>                          <goal>jar</goal>
>>>>>                      </goals>
>>>>>                  </execution>
>>>>>              </executions>
>>>>> </plugin>
>>>>>
>>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

Re: How to generate javadoc jar only during deploy?

Posted by David Hoffer <dh...@gmail.com>.
Okay, i will try install phase.

thanks,
-Dave

On Mon, Apr 13, 2009 at 9:42 AM, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:

> nope as attaching to the deploy phase means that it gets to run after the
> lifecycle plugins (ie after deploy:deploy) therefore you need to attach it
> to an earlier phase (and the latest earlier phase available is install)
>
> Sent from my [rhymes with myPod] ;-)
>
>
> On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:
>
>  Thanks much, I think you intended to say <phase>deploy</phase>.
>>
>> -Dave
>>
>> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
>> stephen.alan.connolly@gmail.com> wrote:
>>
>>  2009/4/10 David Hoffer <dh...@gmail.com>
>>>
>>>  My project currently creates javadocs during the install goal, see pom
>>>> below.  How can I configure this to run only if deploy goal is run
>>>>
>>> instead?
>>>
>>>>
>>>> Alternatively, is there a way this can be externalized so that
>>>> individual
>>>> developers can turn this feature off when they do an install?
>>>>
>>>> <plugin>
>>>>              <groupId>org.apache.maven.plugins</groupId>
>>>>              <artifactId>maven-javadoc-plugin</artifactId>
>>>>              <version>2.5</version>
>>>>              <executions>
>>>>                  <execution>
>>>>                      <id>attach-javadocs</id>
>>>>
>>>
>>> <phase>install</phase>
>>>
>>>
>>>>                      <goals>
>>>>                          <goal>jar</goal>
>>>>                      </goals>
>>>>                  </execution>
>>>>              </executions>
>>>> </plugin>
>>>>
>>>>
>>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: How to generate javadoc jar only during deploy?

Posted by Stephen Connolly <st...@gmail.com>.
nope as attaching to the deploy phase means that it gets to run after  
the lifecycle plugins (ie after deploy:deploy) therefore you need to  
attach it to an earlier phase (and the latest earlier phase available  
is install)

Sent from my [rhymes with myPod] ;-)

On 13 Apr 2009, at 15:09, David Hoffer <dh...@gmail.com> wrote:

> Thanks much, I think you intended to say <phase>deploy</phase>.
>
> -Dave
>
> On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
> stephen.alan.connolly@gmail.com> wrote:
>
>> 2009/4/10 David Hoffer <dh...@gmail.com>
>>
>>> My project currently creates javadocs during the install goal, see  
>>> pom
>>> below.  How can I configure this to run only if deploy goal is run
>> instead?
>>>
>>> Alternatively, is there a way this can be externalized so that  
>>> individual
>>> developers can turn this feature off when they do an install?
>>>
>>> <plugin>
>>>               <groupId>org.apache.maven.plugins</groupId>
>>>               <artifactId>maven-javadoc-plugin</artifactId>
>>>               <version>2.5</version>
>>>               <executions>
>>>                   <execution>
>>>                       <id>attach-javadocs</id>
>>
>> <phase>install</phase>
>>
>>>
>>>                       <goals>
>>>                           <goal>jar</goal>
>>>                       </goals>
>>>                   </execution>
>>>               </executions>
>>> </plugin>
>>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to generate javadoc jar only during deploy?

Posted by David Hoffer <dh...@gmail.com>.
Thanks much, I think you intended to say <phase>deploy</phase>.

-Dave

On Sat, Apr 11, 2009 at 12:08 PM, Stephen Connolly <
stephen.alan.connolly@gmail.com> wrote:

> 2009/4/10 David Hoffer <dh...@gmail.com>
>
> > My project currently creates javadocs during the install goal, see pom
> > below.  How can I configure this to run only if deploy goal is run
> instead?
> >
> > Alternatively, is there a way this can be externalized so that individual
> > developers can turn this feature off when they do an install?
> >
> > <plugin>
> >                <groupId>org.apache.maven.plugins</groupId>
> >                <artifactId>maven-javadoc-plugin</artifactId>
> >                <version>2.5</version>
> >                <executions>
> >                    <execution>
> >                        <id>attach-javadocs</id>
>
> <phase>install</phase>
>
> >
> >                        <goals>
> >                            <goal>jar</goal>
> >                        </goals>
> >                    </execution>
> >                </executions>
> > </plugin>
> >
>

Re: How to generate javadoc jar only during deploy?

Posted by Stephen Connolly <st...@gmail.com>.
2009/4/10 David Hoffer <dh...@gmail.com>

> My project currently creates javadocs during the install goal, see pom
> below.  How can I configure this to run only if deploy goal is run instead?
>
> Alternatively, is there a way this can be externalized so that individual
> developers can turn this feature off when they do an install?
>
> <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-javadoc-plugin</artifactId>
>                <version>2.5</version>
>                <executions>
>                    <execution>
>                        <id>attach-javadocs</id>

<phase>install</phase>

>
>                        <goals>
>                            <goal>jar</goal>
>                        </goals>
>                    </execution>
>                </executions>
> </plugin>
>