You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roland Asmann <Ro...@cfc.at> on 2006/05/11 18:35:09 UTC

maven-source-plugin 2.0.1

Hi,

I've noticed that the new version of this plugin forks a new lifecycle... Can anybody clarify why this has been done?
My builds are getting very slow because of this, since I have a pretty large source-code generator in the generate-
sources phase...
Are there any other changes compared to 2.0? If not, I think I'll move back to that one...

Thanks,

Roland


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


Re: maven-source-plugin 2.0.1

Posted by Roland Asmann <Ro...@cfc.at>.
I tried removing the plugin from the POM and adding the '-DperformRelease=true' to the command-line...

Output:

[INFO] ----------------------------------------------------------------------------
[INFO] Building Hermes Person - Shared module
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target
[INFO] Deleting directory /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/classes
[INFO] Deleting directory /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/test-classes
[INFO] [antrun:run {execution: sources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          generate sources          --------------------------------

generateSources:
    [mkdir] Created dir: /home/asr/Projects/Hermes/workspace-hermes/hermes-person-shared/target/generated-sources/main/java
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] Registering compile source root /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/generated-sources/main/java
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [antrun:run {execution: resources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          process resources         --------------------------------

processResources:
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] [compiler:compile]
Compiling 13 source files to /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1.jar
[INFO] Preparing javadoc:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [antrun:run {execution: sources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          generate sources          --------------------------------

generateSources:
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] Registering compile source root /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/generated-sources/main/java
[INFO] [javadoc:jar {execution: attach-javadocs}]
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/logging/TraceLogEntry.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/logging/MessageLogEntry.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/ExecutionContext.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/factory/ExecutionContextInvocationPropagationProxyFactoryBean.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/factory/XFireProxyFactoryBean.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/factory/ModelFactoryBean.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/model/annotations/ManyRelation.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/model/annotations/ValueHolder.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/model/annotations/OneRelation.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/model/annotations/TableRef.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/parameter/DefaultBeanEntityManager.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/parameter/IBeanEntityManager.java...
Loading source file /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/src/main/java/at/cfc/hermes/person/ExecutionContextRegistry.java...
Constructing Javadoc information...
Standard Doclet version 1.5.0_06
Building tree for all the packages and classes...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//ExecutionContext.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//ExecutionContextRegistry.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//ManyRelation.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//OneRelation.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//TableRef.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//ValueHolder.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//ExecutionContextInvocationPropagationProxyFactoryBean.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//ModelFactoryBean.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//XFireProxyFactoryBean.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//MessageLogEntry.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//TraceLogEntry.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//DefaultBeanEntityManager.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//IBeanEntityManager.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/overview-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//package-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//package-summary.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//package-tree.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//package-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//package-summary.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//package-tree.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//package-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//package-summary.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//package-tree.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//package-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//package-summary.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//package-tree.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//package-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//package-summary.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//package-tree.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/constant-values.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/serialized-form.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//class-use/TraceLogEntry.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//class-use/MessageLogEntry.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//class-use/ExecutionContext.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//class-use/ExecutionContextInvocationPropagationProxyFactoryBean.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//class-use/XFireProxyFactoryBean.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//class-use/ModelFactoryBean.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//class-use/ManyRelation.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//class-use/ValueHolder.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//class-use/OneRelation.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//class-use/TableRef.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//class-use/DefaultBeanEntityManager.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//class-use/IBeanEntityManager.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//class-use/ExecutionContextRegistry.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person//package-use.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/factory//package-use.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/logging//package-use.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/model/annotations//package-use.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/at/cfc/hermes/person/parameter//package-use.html...
Building index for all the packages and classes...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/overview-tree.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/index-all.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/deprecated-list.html...
Building index for all classes...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/allclasses-frame.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/allclasses-noframe.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/index.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/overview-summary.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/help-doc.html...
Generating /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/site/apidocs/stylesheet.css...
3 warnings
[INFO] Building jar: /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1-javadoc.jar
[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] [antrun:run {execution: sources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          generate sources          --------------------------------

generateSources:
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] Registering compile source root /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/generated-sources/main/java
[INFO] [source:jar {execution: attach-sources}]
[INFO] Building jar: /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1-sources.jar
[INFO] [install:install]
[INFO] Installing /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1.jar to /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0.0.1/hermes-person-shared-0.0.1.jar
[INFO] Installing /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1-javadoc.jar to /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0.0.1/hermes-person-shared-0.0.1-javadoc.jar
[INFO] Installing /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1-sources.jar to /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0.0.1/hermes-person-shared-0.0.1-sources.jar


As can be clearly seen, now the life-cycle is forked TWICE! So my sources are generated a second and even a third time!
Could somebody please look into this, because it's slowing down my builds to the extreme!
And the worst part is that the generator in this module isn't even the slowest one I have running... :'(

Roland




On Monday 15 May 2006 18:21, Roland Asmann wrote:
> Sorry for the late reply, have been ill for a couple of days...
>
> ATM the source-plugin is not explicitly mapped to a phase, which implcitly
> maps it to the 'package'-phase.
> When I run 'mvn clean install', everything runs fine until I get to the
> package- phase. Here my package is build and source:jar splits of a new
> life-cycle, running everything except the packaging again.
>
> Here's the fragment of my POM:
>
> <plugin>
> 	<artifactId>maven-source-plugin</artifactId>
> 	<inherited>true</inherited>
> 	<executions>
> 		<execution>
> 			<id>jar</id>
> 			<goals>
> 				<goal>jar</goal>
> 			</goals>
> 		</execution>
> 	</executions>
> </plugin>
>
> which gives me the following output:
>
> [INFO]
> ---------------------------------------------------------------------------
>- [INFO] Building Hermes Person - Shared module
> [INFO]    task-segment: [clean, install]
> [INFO]
> ---------------------------------------------------------------------------
>- [INFO] [clean:clean]
> [INFO] Deleting directory
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target [INFO] Deleting directory
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/classes [INFO] Deleting directory
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/test-classes [INFO] [antrun:run {execution: sources}]
> [INFO] Executing tasks
>      [echo] *********************** start ant build.xml user.name: asr
> ******************************** [echo] -----------------------         
> generate sources          --------------------------------
>
> generateSources:
>     [mkdir] Created dir:
> /home/asr/Projects/Hermes/workspace-hermes/hermes-person-shared/target/gene
>rated-sources/main/java [echo] ************************ end ant build.xml
> user.name: asr ********************************* [INFO] Executed tasks
> [INFO] Registering compile source root
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/generated-sources/main/java [INFO]
> [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [antrun:run {execution: resources}]
> [INFO] Executing tasks
>      [echo] *********************** start ant build.xml user.name: asr
> ******************************** [echo] -----------------------         
> process resources         --------------------------------
>
> processResources:
>      [echo] ************************ end ant build.xml user.name: asr
> ********************************* [INFO] Executed tasks
> [INFO] [compiler:compile]
> Compiling 13 source files to
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/classes [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [INFO] Building jar:
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/hermes-person-shared-0.0.1.jar [INFO] Preparing
> source:jar
> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
> invocation. [INFO] [antrun:run {execution: sources}]
> [INFO] Executing tasks
>      [echo] *********************** start ant build.xml user.name: asr
> ******************************** [echo] -----------------------         
> generate sources          --------------------------------
>
> generateSources:
>      [echo] ************************ end ant build.xml user.name: asr
> ********************************* [INFO] Executed tasks
> [INFO] Registering compile source root
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/generated-sources/main/java [INFO] [source:jar
> {execution: jar}]
> [INFO] Building jar:
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/hermes-person-shared-0.0.1-sources.jar [INFO]
> [install:install]
> [INFO] Installing
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/hermes-person-shared-0.0.1.jar to
> /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0
>.0.1/hermes-person-shared-0.0.1.jar [INFO] Installing
> /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../herme
>s-person-shared/target/hermes-person-shared-0.0.1-sources.jar to
> /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0
>.0.1/hermes-person-shared-0.0.1-sources.jar
>
> This did not happen when using the old 2.0 plugin, which just packaged my
> sources in the same life-cycle!
> I'm not sure about the -DperformRelease though: I do not explicitly add it
> to my command-line, but maybe it's true per default??
>
> Roland
>
> On Thursday 11 May 2006 20:18, Kenney Westerhof wrote:
> > On Thu, 11 May 2006, Roland Asmann wrote:
> > > The way I see it, it runs through the generate-sources phase no matter
> > > what! The 2.0.1 is per default bound to the package phase, and I just
> > > run 'mvn clean install', which triggers everything up to 'package'
> > > twice...
> >
> > Ok, but package implies that generate-sources is run anyway. It shouldn't
> > run things twice, though. Are you using maven 2.0.4?
> >
> > Btw, IIRC the sources plugin skips execution if you're not doing a
> > release (-DperformRelease=true). So even without the source plugin you
> > end up generating the sources, but you know that.
> >
> > So, are you telling me that if you use maven-sources-plugin 2.0 an 'mvn
> > clean install' only generates the sources once, and if you use 2.0.1,
> > they get generated twice?
> >
> > When is the sources-plugin run anyway? Did you bind it to a phase in the
> > pom, or are you specifing -DperformRelease=true, or..?
> >
> > -- Kenney
> >
> > > Roland
> > >
> > > On Thursday 11 May 2006 19:48, Kenney Westerhof wrote:
> > > > On Thu, 11 May 2006, Roland Asmann wrote:
> > > >
> > > > The source plugin needs to run the generate-sources phase, else it
> > > > might miss something in creating a jar. This was indeed fixed in
> > > > 2.0.1.
> > > >
> > > > If you do 'mvn clean source:jar' on a source-generating project, the
> > > > jar won't contain the generated sources. Usually the sources are only
> > > > generated when you deploy, so if you run 'mvn source:jar deploy' it
> > > > won't generate the sources twice. Neither will it do that if you bind
> > > > it to package.
> > > >
> > > > -- Kenney
> > > >
> > > > > Hi,
> > > > >
> > > > > I've noticed that the new version of this plugin forks a new
> > > > > lifecycle... Can anybody clarify why this has been done? My builds
> > > > > are getting very slow because of this, since I have a pretty large
> > > > > source-code generator in the generate- sources phase...
> > > > > Are there any other changes compared to 2.0? If not, I think I'll
> > > > > move back to that one...
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Roland
> > > > >
> > > > >
> > > > > -------------------------------------------------------------------
> > > > >-- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For
> > > > > additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > > --
> > > > Kenney Westerhof
> > > > http://www.neonics.com
> > > > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> >
> > --
> > Kenney Westerhof
> > http://www.neonics.com
> > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> >
> > ---------------------------------------------------------------------
> > 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: maven-source-plugin 2.0.1

Posted by Roland Asmann <Ro...@cfc.at>.
Sorry for the late reply, have been ill for a couple of days...

ATM the source-plugin is not explicitly mapped to a phase, which implcitly
maps it to the 'package'-phase.
When I run 'mvn clean install', everything runs fine until I get to the package-
phase. Here my package is build and source:jar splits of a new life-cycle,
running everything except the packaging again.

Here's the fragment of my POM:

<plugin>
	<artifactId>maven-source-plugin</artifactId>
	<inherited>true</inherited>
	<executions>
		<execution>
			<id>jar</id>
			<goals>
				<goal>jar</goal>
			</goals>
		</execution>
	</executions>
</plugin>

which gives me the following output:

[INFO] ----------------------------------------------------------------------------
[INFO] Building Hermes Person - Shared module
[INFO]    task-segment: [clean, install]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target
[INFO] Deleting directory /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/classes
[INFO] Deleting directory /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/test-classes
[INFO] [antrun:run {execution: sources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          generate sources          --------------------------------

generateSources:
    [mkdir] Created dir: /home/asr/Projects/Hermes/workspace-hermes/hermes-person-shared/target/generated-sources/main/java
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] Registering compile source root /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/generated-sources/main/java
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [antrun:run {execution: resources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          process resources         --------------------------------

processResources:
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] [compiler:compile]
Compiling 13 source files to /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1.jar
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [antrun:run {execution: sources}]
[INFO] Executing tasks
     [echo] *********************** start ant build.xml user.name: asr ********************************
     [echo] -----------------------          generate sources          --------------------------------

generateSources:
     [echo] ************************ end ant build.xml user.name: asr *********************************
[INFO] Executed tasks
[INFO] Registering compile source root /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/generated-sources/main/java
[INFO] [source:jar {execution: jar}]
[INFO] Building jar: /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1-sources.jar
[INFO] [install:install]
[INFO] Installing /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1.jar to /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0.0.1/hermes-person-shared-0.0.1.jar
[INFO] Installing /home/asr/Projects/Hermes/workspace-hermes/hermes/../hermes-person/../hermes-person-shared/target/hermes-person-shared-0.0.1-sources.jar to /home/asr/.m2/repository/at/cfc/hermes/hermes-person/hermes-person-shared/0.0.1/hermes-person-shared-0.0.1-sources.jar

This did not happen when using the old 2.0 plugin, which just packaged my
sources in the same life-cycle!
I'm not sure about the -DperformRelease though: I do not explicitly add it to
my command-line, but maybe it's true per default??

Roland



On Thursday 11 May 2006 20:18, Kenney Westerhof wrote:
> On Thu, 11 May 2006, Roland Asmann wrote:
> > The way I see it, it runs through the generate-sources phase no matter
> > what! The 2.0.1 is per default bound to the package phase, and I just run
> > 'mvn clean install', which triggers everything up to 'package' twice...
>
> Ok, but package implies that generate-sources is run anyway. It shouldn't
> run things twice, though. Are you using maven 2.0.4?
>
> Btw, IIRC the sources plugin skips execution if you're not doing a release
> (-DperformRelease=true). So even without the source plugin you end up
> generating the sources, but you know that.
>
> So, are you telling me that if you use maven-sources-plugin 2.0 an 'mvn
> clean install' only generates the sources once, and if you use 2.0.1,
> they get generated twice?
>
> When is the sources-plugin run anyway? Did you bind it to a phase in the
> pom, or are you specifing -DperformRelease=true, or..?
>
> -- Kenney
>
> > Roland
> >
> > On Thursday 11 May 2006 19:48, Kenney Westerhof wrote:
> > > On Thu, 11 May 2006, Roland Asmann wrote:
> > >
> > > The source plugin needs to run the generate-sources phase, else it
> > > might miss something in creating a jar. This was indeed fixed in 2.0.1.
> > >
> > > If you do 'mvn clean source:jar' on a source-generating project, the
> > > jar won't contain the generated sources. Usually the sources are only
> > > generated when you deploy, so if you run 'mvn source:jar deploy' it
> > > won't generate the sources twice. Neither will it do that if you bind
> > > it to package.
> > >
> > > -- Kenney
> > >
> > > > Hi,
> > > >
> > > > I've noticed that the new version of this plugin forks a new
> > > > lifecycle... Can anybody clarify why this has been done? My builds
> > > > are getting very slow because of this, since I have a pretty large
> > > > source-code generator in the generate- sources phase...
> > > > Are there any other changes compared to 2.0? If not, I think I'll
> > > > move back to that one...
> > > >
> > > > Thanks,
> > > >
> > > > Roland
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > > --
> > > Kenney Westerhof
> > > http://www.neonics.com
> > > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> > >
> > > ---------------------------------------------------------------------
> > > 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
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------------------
> 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: maven-source-plugin 2.0.1

Posted by Kenney Westerhof <ke...@apache.org>.
On Thu, 11 May 2006, Roland Asmann wrote:

> The way I see it, it runs through the generate-sources phase no matter what!
> The 2.0.1 is per default bound to the package phase, and I just run 'mvn clean
> install', which triggers everything up to 'package' twice...

Ok, but package implies that generate-sources is run anyway. It shouldn't
run things twice, though. Are you using maven 2.0.4?

Btw, IIRC the sources plugin skips execution if you're not doing a release
(-DperformRelease=true). So even without the source plugin you end up
generating the sources, but you know that.

So, are you telling me that if you use maven-sources-plugin 2.0 an 'mvn
clean install' only generates the sources once, and if you use 2.0.1,
they get generated twice?

When is the sources-plugin run anyway? Did you bind it to a phase in the
pom, or are you specifing -DperformRelease=true, or..?

-- Kenney

>
> Roland
>
>
> On Thursday 11 May 2006 19:48, Kenney Westerhof wrote:
> > On Thu, 11 May 2006, Roland Asmann wrote:
> >
> > The source plugin needs to run the generate-sources phase, else it might
> > miss something in creating a jar. This was indeed fixed in 2.0.1.
> >
> > If you do 'mvn clean source:jar' on a source-generating project, the jar
> > won't contain the generated sources. Usually the sources are only
> > generated when you deploy, so if you run 'mvn source:jar deploy' it won't
> > generate the sources twice. Neither will it do that if you bind it to
> > package.
> >
> > -- Kenney
> >
> > > Hi,
> > >
> > > I've noticed that the new version of this plugin forks a new lifecycle...
> > > Can anybody clarify why this has been done? My builds are getting very
> > > slow because of this, since I have a pretty large source-code generator
> > > in the generate- sources phase...
> > > Are there any other changes compared to 2.0? If not, I think I'll move
> > > back to that one...
> > >
> > > Thanks,
> > >
> > > Roland
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> > --
> > Kenney Westerhof
> > http://www.neonics.com
> > GPG public key: http://www.gods.nl/~forge/kenneyw.key
> >
> > ---------------------------------------------------------------------
> > 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
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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


Re: maven-source-plugin 2.0.1

Posted by Roland Asmann <Ro...@cfc.at>.
The way I see it, it runs through the generate-sources phase no matter what!
The 2.0.1 is per default bound to the package phase, and I just run 'mvn clean
install', which triggers everything up to 'package' twice...

Roland


On Thursday 11 May 2006 19:48, Kenney Westerhof wrote:
> On Thu, 11 May 2006, Roland Asmann wrote:
>
> The source plugin needs to run the generate-sources phase, else it might
> miss something in creating a jar. This was indeed fixed in 2.0.1.
>
> If you do 'mvn clean source:jar' on a source-generating project, the jar
> won't contain the generated sources. Usually the sources are only
> generated when you deploy, so if you run 'mvn source:jar deploy' it won't
> generate the sources twice. Neither will it do that if you bind it to
> package.
>
> -- Kenney
>
> > Hi,
> >
> > I've noticed that the new version of this plugin forks a new lifecycle...
> > Can anybody clarify why this has been done? My builds are getting very
> > slow because of this, since I have a pretty large source-code generator
> > in the generate- sources phase...
> > Are there any other changes compared to 2.0? If not, I think I'll move
> > back to that one...
> >
> > Thanks,
> >
> > Roland
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
>
> --
> Kenney Westerhof
> http://www.neonics.com
> GPG public key: http://www.gods.nl/~forge/kenneyw.key
>
> ---------------------------------------------------------------------
> 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: maven-source-plugin 2.0.1

Posted by Kenney Westerhof <ke...@apache.org>.
On Thu, 11 May 2006, Roland Asmann wrote:

The source plugin needs to run the generate-sources phase, else it might
miss something in creating a jar. This was indeed fixed in 2.0.1.

If you do 'mvn clean source:jar' on a source-generating project, the jar
won't contain the generated sources. Usually the sources are only
generated when you deploy, so if you run 'mvn source:jar deploy' it won't
generate the sources twice. Neither will it do that if you bind it to
package.

-- Kenney

> Hi,
>
> I've noticed that the new version of this plugin forks a new lifecycle... Can anybody clarify why this has been done?
> My builds are getting very slow because of this, since I have a pretty large source-code generator in the generate-
> sources phase...
> Are there any other changes compared to 2.0? If not, I think I'll move back to that one...
>
> Thanks,
>
> Roland
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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