You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Markku Saarela <ma...@iki.fi> on 2006/12/09 13:35:04 UTC

[m2]maven-source-plugin 2.0.1 infinitive source jar build

Hi,

I have maven-source-plugin configured in pom to goal jar and when i run 
mvn package command twice without clean the second time caused 
infinitive source jar file build. File size grows to GB's and execution 
must abort. This caused release plugin to hangs the same point. Any ideas?

rgds,

Markku

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


Re: [m2]maven-source-plugin 2.0.1 infinitive source jar build

Posted by Wayne Fay <wa...@gmail.com>.
I'd probably add some debugging text to the maven-source-plugin so I
knew what was being added to the jar while it was being built.

Did you open the JAR to see what was inside? Sounds like its adding
your entire C:\ to the Jar file...

Wayne

On 12/10/06, Markku Saarela <ma...@iki.fi> wrote:
> Yes, but i can't see anything weird. I terminate this job after jar file
> size had grown to 4 GB.
>
> [INFO] Preparing source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation.
> [INFO] No goals needed for project - skipping
> [DEBUG]
> org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0.1:runtime
> (selected for runtim
> e)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime
> (selected for runtime
> )
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected
> for runtime)
> [DEBUG]     classworlds:classworlds:jar:1.1-alpha-2:runtime (selected
> for runtime)
> [DEBUG]     junit:junit:jar:3.8.1:runtime (selected for runtime)
> [DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - nearer f
> ound: 1.0-alpha-9)
> [DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected
> for runtime)
> [DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - nearer
>  found: 1.0-alpha-9)
> [DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime
> (selected for runtime)
> [DEBUG]
> org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime
> (selected for runtim
> e)
> [DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - nearer
>  found: 1.0-alpha-9)
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected
> for runtime)
> [DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - nearer f
> ound: 1.0-alpha-9)
> [DEBUG]
> org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0-beta-1:runtime
> (selected for
> runtime)
> [DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed -
> nearer found: 1.0.4)
> [DEBUG]     org.apache.maven:maven-core:jar:2.0:runtime (selected for
> runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - nearer
>  found: 1.0-alpha-9)
> [DEBUG]
> org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:runtime
> (selected for runti
> me)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - near
> er found: 1.0-alpha-9)
> [DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.0:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - near
> er found: 1.0-alpha-9)
> [DEBUG]       org.apache.maven:maven-monitor:jar:2.0:runtime (selected
> for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime
> (selected for run
> time)
> [DEBUG]       org.apache.maven:maven-settings:jar:2.0:runtime (selected
> for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - near
> er found: 1.0-alpha-9)
> [DEBUG]
> org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5:runtime
> (selected for ru
> ntime)
> [DEBUG]       org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5:runtime
> (selected for runtime)
> [DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.0:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - near
> er found: 1.0-alpha-9)
> [DEBUG]       commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
> [DEBUG]       org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5:runtime
> (selected for runtime)
> [DEBUG]         com.jcraft:jsch:jar:0.1.23:runtime (selected for runtime)
> [DEBUG]
> org.apache.maven.reporting:maven-reporting-api:jar:2.0:runtime (selected
> for runtime)
> [DEBUG]         doxia:doxia-sink-api:jar:1.0-alpha-4:runtime (selected
> for runtime)
> [DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0:runtime
> (selected for runtime)
> [DEBUG]
> org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime
> (removed - near
> er found: 1.0-alpha-9)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-source-plugin:2.0.1:jar' -->
> [DEBUG]   (f) attach = true
> [DEBUG]   (s) executedProject =
> org.apache.maven.project.MavenProject@ce811ffb
> [DEBUG]   (f) finalName = maven-fop-plugin-1.3-SNAPSHOT
> [DEBUG]   (f) outputDirectory = C:\temp\jivaloroot\maven-fop-plugin\target
> [DEBUG]   (s) packaging = maven-plugin
> [DEBUG]   (s) project = org.apache.maven.project.MavenProject@ce811ffb
> [DEBUG] -- end configuration --
> [INFO] [source:jar {execution: default}]
> [INFO] Building jar:
> C:\temp\jivaloroot\maven-fop-plugin\target\maven-fop-plugin-1.3-SNAPSHOT-source
> s.jar
> Terminate batch job (Y/N)? y
>
>
> Wayne Fay wrote:
> > Sounds like a bug. Have you run with mvn -X to see debugging info?
> >
> > Wayne
> >
> > On 12/9/06, Markku Saarela <ma...@iki.fi> wrote:
> >> Hi,
> >>
> >> I have maven-source-plugin configured in pom to goal jar and when i run
> >> mvn package command twice without clean the second time caused
> >> infinitive source jar file build. File size grows to GB's and execution
> >> must abort. This caused release plugin to hangs the same point. Any
> >> ideas?
> >>
> >> rgds,
> >>
> >> Markku
> >>
> >> ---------------------------------------------------------------------
> >> 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: [m2]maven-source-plugin 2.0.1 infinitive source jar build

Posted by Matthias Wessendorf <ma...@apache.org>.
I still get this with the 202 plugin.
I running mvn release:perform -Prelease,staging, where the release
profile uses that mavne-source-plugin

I am trying Jochen's work around now.

-Matthias

On 12/11/06, Markku Saarela <ma...@iki.fi> wrote:
> Yes that was the reason. I had LICENCE and NOTICE files in basedir. So
> waiting 2.0.2 version of the plugin :-) .
>
> Markku
>
> Jochen Wiedmann wrote:
> > On 12/10/06, Markku Saarela <ma...@iki.fi> wrote:
> >
> >> Yes, but i can't see anything weird. I terminate this job after jar file
> >> size had grown to 4 GB.
> >>
> >> [INFO] Preparing source:jar
> >
> > Most possibly caused by the MSOURCES-6 bug: I bet you have specified a
> > resource with ${basedir} or "." as the base directory.
> >
> > For a possible workaround, see
> >
> >
> > http://repo1.maven.org/maven2/org/apache/commons/commons-parent/1/commons-parent-1.pom
> >
> >
> > (it uses the antrun plugin to achieve the same purpose).
> >
> >
> > Jochen
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

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


Re: [m2]maven-source-plugin 2.0.1 infinitive source jar build

Posted by Markku Saarela <ma...@iki.fi>.
Yes that was the reason. I had LICENCE and NOTICE files in basedir. So 
waiting 2.0.2 version of the plugin :-) .

Markku

Jochen Wiedmann wrote:
> On 12/10/06, Markku Saarela <ma...@iki.fi> wrote:
>
>> Yes, but i can't see anything weird. I terminate this job after jar file
>> size had grown to 4 GB.
>>
>> [INFO] Preparing source:jar
>
> Most possibly caused by the MSOURCES-6 bug: I bet you have specified a
> resource with ${basedir} or "." as the base directory.
>
> For a possible workaround, see
>
>    
> http://repo1.maven.org/maven2/org/apache/commons/commons-parent/1/commons-parent-1.pom 
>
>
> (it uses the antrun plugin to achieve the same purpose).
>
>
> Jochen
>
>


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


Re: [m2]maven-source-plugin 2.0.1 infinitive source jar build

Posted by Jochen Wiedmann <jo...@gmail.com>.
On 12/10/06, Markku Saarela <ma...@iki.fi> wrote:

> Yes, but i can't see anything weird. I terminate this job after jar file
> size had grown to 4 GB.
>
> [INFO] Preparing source:jar

Most possibly caused by the MSOURCES-6 bug: I bet you have specified a
resource with ${basedir} or "." as the base directory.

For a possible workaround, see

    http://repo1.maven.org/maven2/org/apache/commons/commons-parent/1/commons-parent-1.pom

(it uses the antrun plugin to achieve the same purpose).


Jochen


-- 
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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


Re: [m2]maven-source-plugin 2.0.1 infinitive source jar build

Posted by Markku Saarela <ma...@iki.fi>.
Yes, but i can't see anything weird. I terminate this job after jar file 
size had grown to 4 GB.

[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive 
invocation.
[WARNING] Removing: jar from forked lifecycle, to prevent recursive 
invocation.
[INFO] No goals needed for project - skipping
[DEBUG] 
org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0.1:runtime 
(selected for runtim
e)
[DEBUG]   
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime 
(selected for runtime
)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected 
for runtime)
[DEBUG]     classworlds:classworlds:jar:1.1-alpha-2:runtime (selected 
for runtime)
[DEBUG]     junit:junit:jar:3.8.1:runtime (selected for runtime)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (selected for 
runtime)
[DEBUG]     
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - nearer f
ound: 1.0-alpha-9)
[DEBUG]     org.apache.maven:maven-artifact:jar:2.0:runtime (selected 
for runtime)
[DEBUG]     org.apache.maven:maven-model:jar:2.0:runtime (selected for 
runtime)
[DEBUG]     org.apache.maven:maven-artifact-manager:jar:2.0:runtime 
(selected for runtime)
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - nearer
 found: 1.0-alpha-9)
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0:runtime 
(selected for runtime)
[DEBUG]       
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime 
(selected for runtim
e)
[DEBUG]     org.apache.maven:maven-profile:jar:2.0:runtime (selected for 
runtime)
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - nearer
 found: 1.0-alpha-9)
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected 
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3:runtime 
(selected for runtime)
[DEBUG]     
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - nearer f
ound: 1.0-alpha-9)
[DEBUG]   
org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0-beta-1:runtime 
(selected for
runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed - 
nearer found: 1.0.4)
[DEBUG]     org.apache.maven:maven-core:jar:2.0:runtime (selected for 
runtime)
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - nearer
 found: 1.0-alpha-9)
[DEBUG]       
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:runtime 
(selected for runti
me)
[DEBUG]         
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - near
er found: 1.0-alpha-9)
[DEBUG]       org.apache.maven:maven-error-diagnostics:jar:2.0:runtime 
(selected for runtime)
[DEBUG]         
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - near
er found: 1.0-alpha-9)
[DEBUG]       org.apache.maven:maven-monitor:jar:2.0:runtime (selected 
for runtime)
[DEBUG]       
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime 
(selected for run
time)
[DEBUG]       org.apache.maven:maven-settings:jar:2.0:runtime (selected 
for runtime)
[DEBUG]         
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - near
er found: 1.0-alpha-9)
[DEBUG]       
org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5:runtime 
(selected for ru
ntime)
[DEBUG]       org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5:runtime 
(selected for runtime)
[DEBUG]       org.apache.maven:maven-plugin-descriptor:jar:2.0:runtime 
(selected for runtime)
[DEBUG]         
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - near
er found: 1.0-alpha-9)
[DEBUG]       commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
[DEBUG]       org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5:runtime 
(selected for runtime)
[DEBUG]         com.jcraft:jsch:jar:0.1.23:runtime (selected for runtime)
[DEBUG]       
org.apache.maven.reporting:maven-reporting-api:jar:2.0:runtime (selected 
for runtime)
[DEBUG]         doxia:doxia-sink-api:jar:1.0-alpha-4:runtime (selected 
for runtime)
[DEBUG]       org.apache.maven:maven-plugin-registry:jar:2.0:runtime 
(selected for runtime)
[DEBUG]         
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime 
(removed - near
er found: 1.0-alpha-9)
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-source-plugin:2.0.1:jar' -->
[DEBUG]   (f) attach = true
[DEBUG]   (s) executedProject = 
org.apache.maven.project.MavenProject@ce811ffb
[DEBUG]   (f) finalName = maven-fop-plugin-1.3-SNAPSHOT
[DEBUG]   (f) outputDirectory = C:\temp\jivaloroot\maven-fop-plugin\target
[DEBUG]   (s) packaging = maven-plugin
[DEBUG]   (s) project = org.apache.maven.project.MavenProject@ce811ffb
[DEBUG] -- end configuration --
[INFO] [source:jar {execution: default}]
[INFO] Building jar: 
C:\temp\jivaloroot\maven-fop-plugin\target\maven-fop-plugin-1.3-SNAPSHOT-source
s.jar
Terminate batch job (Y/N)? y


Wayne Fay wrote:
> Sounds like a bug. Have you run with mvn -X to see debugging info?
>
> Wayne
>
> On 12/9/06, Markku Saarela <ma...@iki.fi> wrote:
>> Hi,
>>
>> I have maven-source-plugin configured in pom to goal jar and when i run
>> mvn package command twice without clean the second time caused
>> infinitive source jar file build. File size grows to GB's and execution
>> must abort. This caused release plugin to hangs the same point. Any 
>> ideas?
>>
>> rgds,
>>
>> Markku
>>
>> ---------------------------------------------------------------------
>> 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: [m2]maven-source-plugin 2.0.1 infinitive source jar build

Posted by Wayne Fay <wa...@gmail.com>.
Sounds like a bug. Have you run with mvn -X to see debugging info?

Wayne

On 12/9/06, Markku Saarela <ma...@iki.fi> wrote:
> Hi,
>
> I have maven-source-plugin configured in pom to goal jar and when i run
> mvn package command twice without clean the second time caused
> infinitive source jar file build. File size grows to GB's and execution
> must abort. This caused release plugin to hangs the same point. Any ideas?
>
> rgds,
>
> Markku
>
> ---------------------------------------------------------------------
> 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