have you tried to set 'attached' to false in the configuration section? [1]

From a quick look at the sources, it should then at least skip attaching the 
archive to the repository.

But maybe we should introduce a 'skip' property like many other plugin have.

Since I remember a discussion with lots of pros and cons with Benjamin a long 
time ago, we should probably think about 'skipping' or 'disabling' plugins in a 
derived pom as a general lifecycle feature for maven-3?
But I'm maybe not really up to date on this topic.

LieGrue,
strub

[1]  http://maven.apache.org/plugins/maven-source-plugin/jar-mojo.html#attach

--- On Fri, 7/31/09, Benson Margulies <[email protected]> wrote:

> From: Benson Margulies <[email protected]>
> Subject: Re: How do I turn off the maven-source-plugin altogether?
> To: "Maven Users List" <[email protected]>
> Date: Friday, July 31, 2009, 4:36 AM
> The super-pom turns out to document:
> 
>  <plugin>
>            
> <inherited>true</inherited>
>            
> <groupId>org.apache.maven.plugins</groupId>
>            
> <artifactId>maven-source-plugin</artifactId>
> 
>            
> <executions>
>              
> <execution>
>                
> <id>attach-sources</id>
>                
> <goals>
>                
>   <goal>jar</goal>
>                
> </goals>
>              
> </execution>
>            
> </executions>
>           </plugin>
> 
> 
> Which is the source of his charming situation. I need to
> rebind it to
> a nonexistent phase, I guess.
> 
> 
> On Thu, Jul 30, 2009 at 10:09 PM, Wayne Fay<[email protected]>
> wrote:
> >> The maven-source-plugin is running in my lifecycle
> even though I never
> >> mention it in a pom. Is there a way to chase it
> out?
> >
> > Is it mentioned in a parent or grandparent pom? Are
> you using a
> > profile that brings it in -- perhaps one that is
> activeByDefault? Did
> > you check mvn help:effective-pom?
> >
> > What command are you running that results in m-s-p
> being executed? It
> > is bound to some profiles that automatically come down
> with Maven, so
> > you might be running into one of those, perhaps.
> >
> > Wayne
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 




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

Reply via email to