You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jim Collings <jl...@gmail.com> on 2009/12/10 15:25:29 UTC

How to prevent deployment on release

The objective is to prevent maven's attempt at site deployment.
Everything else, though, I want. Problem is that when I use the xml
below, it ONLY installs.

So I added goals with install:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>...someversion...</version>
                <configuration>
                    <connectionUrl>...appropriate connection
stuff...</connectionUrl>
                    <tagBase>...appropriate connection stuff...</tagBase>
                    <goals>
                    install
                    </goals>
                </configuration>
 </plugin>


Clue?

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


Re: How to prevent deployment on release

Posted by Jim Collings <jl...@gmail.com>.
Aw crud.
Thanks for your help guys but this turned out to be a case of
developer headspace and timing. ;-)

I forgot that I had to call maven:prepare first. My assumption at the
time was that it would be called by maven:perform if it was required.
Not the case though.

Works great now.

Jim C.

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


Re: How to prevent deployment on release

Posted by "Adam Leggett (UPCO)" <ad...@upco.co.uk>.
Not massively complicated, have a look at the responses to this query
about a similar issue. In this case a need to prevent deploying the
sources jar as part of a release.

http://stackoverflow.com/questions/437085/mvn-releaseperform-without-source-ending-up-in-artifactory

On Thu, 2009-12-10 at 10:08 -0500, Jim Collings wrote:
> How complicated is that to do?  We don't generally use profiles around
> here so I've little experience with them.
> 
> On Thu, Dec 10, 2009 at 9:48 AM, Adam Leggett (UPCO)
> <ad...@upco.co.uk> wrote:
> > I believe its the default release profile that triggers the site
> > deployment stuff. There is an option for setting custom ones on the
> > perform mojo:
> >
> > http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#releaseProfiles
> >
> >
> > On Thu, 2009-12-10 at 09:25 -0500, Jim Collings wrote:
> >> The objective is to prevent maven's attempt at site deployment.
> >> Everything else, though, I want. Problem is that when I use the xml
> >> below, it ONLY installs.
> >>
> >> So I added goals with install:
> >>
> >> <plugin>
> >>                 <groupId>org.apache.maven.plugins</groupId>
> >>                 <artifactId>maven-release-plugin</artifactId>
> >>                 <version>...someversion...</version>
> >>                 <configuration>
> >>                     <connectionUrl>...appropriate connection
> >> stuff...</connectionUrl>
> >>                     <tagBase>...appropriate connection stuff...</tagBase>
> >>                     <goals>
> >>                     install
> >>                     </goals>
> >>                 </configuration>
> >>  </plugin>
> >>
> >>
> >> Clue?
> >>
> >> ---------------------------------------------------------------------
> >> 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
> 


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


Re: How to prevent deployment on release

Posted by Jim Collings <jl...@gmail.com>.
How complicated is that to do?  We don't generally use profiles around
here so I've little experience with them.

On Thu, Dec 10, 2009 at 9:48 AM, Adam Leggett (UPCO)
<ad...@upco.co.uk> wrote:
> I believe its the default release profile that triggers the site
> deployment stuff. There is an option for setting custom ones on the
> perform mojo:
>
> http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#releaseProfiles
>
>
> On Thu, 2009-12-10 at 09:25 -0500, Jim Collings wrote:
>> The objective is to prevent maven's attempt at site deployment.
>> Everything else, though, I want. Problem is that when I use the xml
>> below, it ONLY installs.
>>
>> So I added goals with install:
>>
>> <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-release-plugin</artifactId>
>>                 <version>...someversion...</version>
>>                 <configuration>
>>                     <connectionUrl>...appropriate connection
>> stuff...</connectionUrl>
>>                     <tagBase>...appropriate connection stuff...</tagBase>
>>                     <goals>
>>                     install
>>                     </goals>
>>                 </configuration>
>>  </plugin>
>>
>>
>> Clue?
>>
>> ---------------------------------------------------------------------
>> 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 prevent deployment on release

Posted by "Adam Leggett (UPCO)" <ad...@upco.co.uk>.
I believe its the default release profile that triggers the site
deployment stuff. There is an option for setting custom ones on the
perform mojo:

http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#releaseProfiles


On Thu, 2009-12-10 at 09:25 -0500, Jim Collings wrote:
> The objective is to prevent maven's attempt at site deployment.
> Everything else, though, I want. Problem is that when I use the xml
> below, it ONLY installs.
> 
> So I added goals with install:
> 
> <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-release-plugin</artifactId>
>                 <version>...someversion...</version>
>                 <configuration>
>                     <connectionUrl>...appropriate connection
> stuff...</connectionUrl>
>                     <tagBase>...appropriate connection stuff...</tagBase>
>                     <goals>
>                     install
>                     </goals>
>                 </configuration>
>  </plugin>
> 
> 
> Clue?
> 
> ---------------------------------------------------------------------
> 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 prevent deployment on release

Posted by Jim Collings <jl...@gmail.com>.
I believe the only difference here is that this is a property and I am
using xml but I imagine it is the same thing.

On Thu, Dec 10, 2009 at 9:50 AM, Olivier Lamy <ol...@apache.org> wrote:
> You can configure used goals with this :
> http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals
>
> 2009/12/10 Jim Collings <jl...@gmail.com>:
>> The objective is to prevent maven's attempt at site deployment.
>> Everything else, though, I want. Problem is that when I use the xml
>> below, it ONLY installs.
>>
>> So I added goals with install:
>>
>> <plugin>
>>                <groupId>org.apache.maven.plugins</groupId>
>>                <artifactId>maven-release-plugin</artifactId>
>>                <version>...someversion...</version>
>>                <configuration>
>>                    <connectionUrl>...appropriate connection
>> stuff...</connectionUrl>
>>                    <tagBase>...appropriate connection stuff...</tagBase>
>>                    <goals>
>>                    install
>>                    </goals>
>>                </configuration>
>>  </plugin>
>>
>>
>> Clue?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
>
> --
> Olivier
>
> ---------------------------------------------------------------------
> 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 prevent deployment on release

Posted by Olivier Lamy <ol...@apache.org>.
You can configure used goals with this :
http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals

2009/12/10 Jim Collings <jl...@gmail.com>:
> The objective is to prevent maven's attempt at site deployment.
> Everything else, though, I want. Problem is that when I use the xml
> below, it ONLY installs.
>
> So I added goals with install:
>
> <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-release-plugin</artifactId>
>                <version>...someversion...</version>
>                <configuration>
>                    <connectionUrl>...appropriate connection
> stuff...</connectionUrl>
>                    <tagBase>...appropriate connection stuff...</tagBase>
>                    <goals>
>                    install
>                    </goals>
>                </configuration>
>  </plugin>
>
>
> Clue?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Olivier

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