You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yann Le Du <le...@yahoo.com> on 2005/07/26 19:11:24 UTC

[m2] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Hi,

Using the trunk build (rev. 225332), I launched site:site with
maven-project-info-reports-plugin in my pom and got the following. Is it a new
feature to fill in the pom ?

Regards,

Yann


[INFO] Generate "Source Repository" report.
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Diagnosis: Error during site generation
[INFO]
----------------------------------------------------------------------------
[ERROR] Cause: 
org.apache.maven.plugin.MojoExecutionException: Error during site generation
        at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
...

Caused by: java.lang.IllegalArgumentException: The SVN repository connection is
not valid.
        at
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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


Re: [m2] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Posted by Yann Le Du <le...@yahoo.com>.
Thanks Brett, works just fine. I checked there to find the available report
ids:
trunk/maven-reports/maven-project-info-reports-plugin/target/classes/META-INF/maven/plugin.xml

--- Brett Porter <br...@gmail.com> a écrit :

> Thanks.
> 
> this element goes in the plugin in reporting:
> http://maven.apache.org/maven2/maven-model/maven.html#class_ReportSet
> 
> eg
> <reportSets>
>  <reportSet>
>    <report>mail-lists</report>
>  </reportSet>    
> </reportSets>
> 
> On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > Done, http://jira.codehaus.org/browse/MNG-660
> > 
> > Thanks Brett for your advice. Should I do that in the
> > <build><plugins><plugin><configuration> or something ? (don't know how to
> reach
> > this level of detail in the plugin configuration)
> > 
> > Yann
> > 
> > 
> > --- Brett Porter <br...@gmail.com> a écrit :
> > 
> > > looks ok to me. It could be a bug - please file it.
> > >
> > > You can list out individual reports to use inside the reports plugin
> > > (eg mail-lists, dependencies) and exclude the source one if you like.
> > >
> > > - Brett
> > >
> > > On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > > > Brett,
> > > >
> > > > My POM itself doesn't contain a source repository URL. But its parent
> does
> > > :
> > > >   <scm>
> > > >     <connection>scm:svn:svn://host:3691/COMMON/trunk/</connection>
> > > >   </scm>
> > > >
> > > > I've tried to :
> > > >     * launch site:site in the parent directory
> > > >     * repeated both previous operations after moving the connection tag
> in
> > > the
> > > > module :
> > > >
> > >
> >
>
<connection>scm:svn:svn://host:3691/COMMON/trunk/common-framework/</connection>
> > > >     * remove the trailing slash
> > > >     * change the protocol to http
> > > > ... and got each time the same thing.
> > > >
> > > > The URL looks valid to me, since Continuum was able to use it until
> then...
> > > >
> > > > Yann
> > > >
> > > > --- Brett Porter <br...@gmail.com> a écrit :
> > > >
> > > > > It now generates a page that says where your source repository is.
> > > > >
> > > > > Is your connection actually invalid? Just wondering what behaviour
> you
> > > > > are expecting here.
> > > > >
> > > > > - Brett
> > > > >
> > > > > On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > Using the trunk build (rev. 225332), I launched site:site with
> > > > > > maven-project-info-reports-plugin in my pom and got the following.
> Is
> > > it a
> > > > > new
> > > > > > feature to fill in the pom ?
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > Yann
> > > > > >
> > > > > >
> > > > > > [INFO] Generate "Source Repository" report.
> > > > > > [INFO]
> > > > > >
> > > > >
> > >
> ----------------------------------------------------------------------------
> > > > > > [ERROR] BUILD ERROR
> > > > > > [INFO]
> > > > > >
> > > > >
> > >
> ----------------------------------------------------------------------------
> > > > > > [INFO] Diagnosis: Error during site generation
> > > > > > [INFO]
> > > > > >
> > > > >
> > >
> ----------------------------------------------------------------------------
> > > > > > [ERROR] Cause:
> > > > > > org.apache.maven.plugin.MojoExecutionException: Error during site
> > > > > generation
> > > > > >         at
> org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
> > > > > > ...
> > > > > >
> > > > > > Caused by: java.lang.IllegalArgumentException: The SVN repository
> > > > > connection is
> > > > > > not valid.
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> ___________________________________________________________________________
> > > > > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!
> > > Messenger
> > > > > > Téléchargez cette version sur http://fr.messenger.yahoo.com
> > > > > >
> > > > > >
> ---------------------------------------------------------------------
> > > > > > 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
> > > > >
> > > > >
> > > >
> > > >
> > > > Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
> > > >  Créez votre Yahoo! Mail sur http://mail.yahoo.fr
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ___________________________________________________________________________
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez cette version sur http://fr.messenger.yahoo.com
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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


Re: [m2] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Posted by Brett Porter <br...@gmail.com>.
Thanks.

this element goes in the plugin in reporting:
http://maven.apache.org/maven2/maven-model/maven.html#class_ReportSet

eg
<reportSets>
 <reportSet>
   <report>mail-lists</report>
 </reportSet>    
</reportSets>

On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> Done, http://jira.codehaus.org/browse/MNG-660
> 
> Thanks Brett for your advice. Should I do that in the
> <build><plugins><plugin><configuration> or something ? (don't know how to reach
> this level of detail in the plugin configuration)
> 
> Yann
> 
> 
> --- Brett Porter <br...@gmail.com> a écrit :
> 
> > looks ok to me. It could be a bug - please file it.
> >
> > You can list out individual reports to use inside the reports plugin
> > (eg mail-lists, dependencies) and exclude the source one if you like.
> >
> > - Brett
> >
> > On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > > Brett,
> > >
> > > My POM itself doesn't contain a source repository URL. But its parent does
> > :
> > >   <scm>
> > >     <connection>scm:svn:svn://host:3691/COMMON/trunk/</connection>
> > >   </scm>
> > >
> > > I've tried to :
> > >     * launch site:site in the parent directory
> > >     * repeated both previous operations after moving the connection tag in
> > the
> > > module :
> > >
> >
> <connection>scm:svn:svn://host:3691/COMMON/trunk/common-framework/</connection>
> > >     * remove the trailing slash
> > >     * change the protocol to http
> > > ... and got each time the same thing.
> > >
> > > The URL looks valid to me, since Continuum was able to use it until then...
> > >
> > > Yann
> > >
> > > --- Brett Porter <br...@gmail.com> a écrit :
> > >
> > > > It now generates a page that says where your source repository is.
> > > >
> > > > Is your connection actually invalid? Just wondering what behaviour you
> > > > are expecting here.
> > > >
> > > > - Brett
> > > >
> > > > On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > > > > Hi,
> > > > >
> > > > > Using the trunk build (rev. 225332), I launched site:site with
> > > > > maven-project-info-reports-plugin in my pom and got the following. Is
> > it a
> > > > new
> > > > > feature to fill in the pom ?
> > > > >
> > > > > Regards,
> > > > >
> > > > > Yann
> > > > >
> > > > >
> > > > > [INFO] Generate "Source Repository" report.
> > > > > [INFO]
> > > > >
> > > >
> > ----------------------------------------------------------------------------
> > > > > [ERROR] BUILD ERROR
> > > > > [INFO]
> > > > >
> > > >
> > ----------------------------------------------------------------------------
> > > > > [INFO] Diagnosis: Error during site generation
> > > > > [INFO]
> > > > >
> > > >
> > ----------------------------------------------------------------------------
> > > > > [ERROR] Cause:
> > > > > org.apache.maven.plugin.MojoExecutionException: Error during site
> > > > generation
> > > > >         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
> > > > > ...
> > > > >
> > > > > Caused by: java.lang.IllegalArgumentException: The SVN repository
> > > > connection is
> > > > > not valid.
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > ___________________________________________________________________________
> > > > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!
> > Messenger
> > > > > Téléchargez cette version sur http://fr.messenger.yahoo.com
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > 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
> > > >
> > > >
> > >
> > >
> > > Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
> > >  Créez votre Yahoo! Mail sur http://mail.yahoo.fr
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
> 
> 
> 
> 
> 
> 
> 
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
>

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


Re: Multiproject resources problem

Posted by Dennis Geurts <de...@gmail.com>.
Mike,
 from your last e-mail can I conclude that tou are creating a new plugin 
called 'maven-multi-plugin'
that (among others) contains the goals 'build' ?
 or are you altering the plugin.jelly of the multiproject plugin ?
 another question: does 'project:build' resolve to a valid goal for the 
subprojects ??
 Furthermore: what are you really trying to accomplish ??
 I assumed you where having a multiproject setup and for only one of the 
subprojects, you just wanted to include the test-classes.
  <goal name="multi:build">
<j:set var="goal" value="jar:install"/>
<attainGoal name="multiproject:goal"/>
</goal> 
 would then essentially be the same as invoking 'maven multiproject:install' 
(assuming the subprojects are all of type jar)
where the 'special' subproject has a maven.xml with your resource 
definition, and the correct 'postGoal' to copy the test-classes.
 creating a new plugin for the specified behaviour is nice, but (although 
I'm not an expert) I think this is better
accomplished by doing something with the jelly code from 
'java:jar-resources' goal: 
  <goal name="java:jar-resources"
description="Copy any resources that must be present in the deployed JAR 
file">

<j:if test="${!pom.build.resources.isEmpty()}"> 
<maven:copy-resources
resources="${pom.build.resources}"
todir="${maven.build.dest}"/>
</j:if>
</goal>
  dennis


On 7/27/05, Michael Owen <mi...@hotmail.com> wrote: 
> 
> 
> Yes. My problem now is that when I put this in plugin.jelly:
> 
> <!-- Goal to do the dest goal for all subprojects -->
> <goal name="multi:build">
> 
> <j:set var="goal" value="project:build"/>
> <attainGoal name="multiproject:goal"/>
> 
> </goal>
> 
> I get the error:
> 
> BUILD FAILED
> File...... C:\Documents and
> Settings\owenm\.maven\cache\maven-multiproject-plugi
> n-1.3.1\plugin.jelly
> Element... maven:param-check
> Line...... 207
> Column.... 54
> A goal to run must be specified, e.g.
> maven -Dgoal=clean multiproject:goal
> Total time: 3 seconds
> Finished at: Wed Jul 27 14:26:22 BST 2005
> 
> 
> Whereas if I put the same code in a local maven.xml file, it works??? The
> idea of putting the goal into a plugin is that I can share it with other
> projects later.
> 
> Mike
> 
> 
> <br><br><br>>From: Dennis Geurts
> <de...@gmail.com><br>>Reply-To: Dennis Geurts
> <de...@gmail.com><br>>To: Maven Users List
> <us...@maven.apache.org><br>>Subject: Re: Multiproject resources
> problem<br>>Date: Wed, 27 Jul 2005 14:40:42 +0200<br>><br>>sorry
> 'java:jar-resources' that is...<br>><br>>On 7/27/05, Dennis Geurts
> <de...@gmail.com> wrote:<br>> ><br>> > great
> !!<br>> > instead of running the tests twice, will it work to add as
> postGoal to<br>> > 'test:compile' the goal 'jar:jar-resources'
> ?<br>> > Dennis<br>> > On 7/27/05, Michael Owen
> <mi...@hotmail.com> wrote:<br>> > ><br>> >
> ><br>> > > Spot on. :) Just figured it out myself too. I have to
> put a test:test<br>> > > goal<br>> > > before, so the test
> classes are compiled. So with the test being done<br>> > >
> again<br>> > > for jar:install, it means the tests are carried out
> twice.<br>> > ><br>> > > Mike<br>> > ><br>>
> > > <br><br><br>>From: Dennis Geurts<br>> >
> > <de...@gmail.com><br>>Reply-To: Dennis
> Geurts<br>> > > <de...@gmail.com><br>>To:
> Maven Users List<br>> > >
> <us...@maven.apache.org><br>>Subject: Re: Multiproject
> resources<br>> > > problem<br>>Date: Wed, 27 Jul 2005
> 14:16:31 +0200<br>><br>>ok,<br>> > > reasonable,
> just checking...<br>> the 'java:jar-resources' goal that<br>>
> > > should copy your test-classes comes<br>>before the
> 'test:compile'<br>> > > goal<br>> could it be that you
> start with a clean (multi)project ??<br>> > >
> the<br>>'build/testclasses' dir will still be
> empty,<br>>and you'll<br>> > > copying all the files that
> are there (that is to say: none at<br>>all)<br>> > >
> ;-)<br>> Dennis<br>><br>> On 7/27/05, Michael
> Owen<br>> > > <mi...@hotmail.com>
> wrote:<br>> ><br>> ><br>><br>> > >
> > No. I've changed it to put the test classes into that<br>> > >
> directory.<br>> ><br>> > Mike<br>>
> ><br>> ><br>> > >
> <br><br><br>>From: Dennis Geurts<br>>
> ><br>> > >
> <de...@gmail.com><br>>Reply-To: Dennis
> Geurts<br>><br>> > > >
> <de...@gmail.com><br>>To: Maven Users<br>> >
> > List<br>> >
> <us...@maven.apache.org><br>>Subject: Re:<br>> > >
> Multiproject resources<br>> > problem<br>>Date: Wed, 27
> Jul<br>> > > 2005 13:16:56<br>> ><br>> > >
> +0200<br>><br>>Michael,<br>> you<br>> >
> > specify:<br>><br>> ><br>> > >
> <directory>${basedir}/build/testclasses</directory><br>><br>><br>>
> > > > shouldn't that<br>> ><br>> > >
> 
> be:<br>><directory>${basedir}/target/test-classes</directory><br>><br>><br>>
> > > > ??<br>> Dennis<br>><br>> On
> 7/27/05, Michael<br>> > > Owen<br>> > <
> michaelowenuk@hotmail.com> wrote:<br>><br>> > >
> ><br>> ><br>><br>> > >
> Hi,<br>><br>> > > ><br>> > I have a problem
> when doing jar:install<br>> ><br>> > > in a
> multiproject scenerio. In my<br>> > individual project<br>>
> > > I<br>> > have:<br>> ><br>>
> ><br>> > > <resources><br>> ><br>>
> ><br>> > > <resource><br>> ><br>>
> ><br>> > >
> <directory>${basedir}/build/testclasses</directory><br>><br>>
> > > ><br>> > <includes><br>>
> ><br>> > >
> <include>**/*</include><br>><br>> >
> ><br>> > > </includes><br>> >
> </resource><br>><br>> > > ><br>> >
> </resources><br>> ><br>> ><br>> > >
> to include the testclasses into<br>> > the produced jar when I
> do<br>> > > jar:install.<br>> > This<br>>
> ><br>> > happens<br>> > > when doing it for the
> individual project, but when done as a<br>> ><br>> > >
> goal<br>> > for a multiproject goal ie:<br>><br>>
> > > ><br>> ><br>> > <goal<br>> >
> > name="multi:build"><br>> >
> <j:set<br>> ><br>> > > var="goal"
> value="jar:install"/><br>><br>> > >
> ><br>> > <attainGoal<br>> > >
> name="multiproject:goal"/><br>> ><br>>
> ><br>> > > </goal><br>> ><br>> >
> The testclasses don't<br>> > > get put into<br>> > the
> jar. Any help? Looked on the<br>><br>> > > >
> multiproject plugin<br>> > documentation page and it says to
> use<br>> > > ${basedir} to<br>> > solve
> the<br>> > problem, but I've<br>> > > done
> that.<br>> ><br>> >
> Mike<br>><br>><br>> > > > ><br>>
> ><br>> ><br>> ><br>><br>> > >
> ><br>> > ><br>> > >
> 
> ---------------------------------------------------------------------<br>><br>><br>>
> > > > > To unsubscribe, e-mail:<br>> > >
> users-unsubscribe@maven.apache.org<br>> ><br>> >
> For<br>> > > additional commands, e-mail:<br>> > >
> users-help@maven.apache.org <br>><br>> >
> ><br>><br>> > > ><br><br>>
> ><br>> ><br>> ><br>> ><br>> >
> >
> 
> ---------------------------------------------------------------------<br>><br>>
> > ><br>> > > > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org<br>> ><br>> > > For
> additional commands, e-mail:
> users-help@maven.apache.org<br>><br>> > >
> ><br>> ><br><br>> > ><br>> >
> ><br>> > ><br>> > >
> ---------------------------------------------------------------------<br>>
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>>
> > > For additional commands, e-mail:
> users-help@maven.apache.org<br>> > ><br>> > ><br>>
> ><br>
> 
> 
>

Re: Multiproject resources problem

Posted by Michael Owen <mi...@hotmail.com>.
Yes. My problem now is that when I put this in plugin.jelly:

	<!-- Goal to do the dest goal for all subprojects -->
	<goal name="multi:build">

		<j:set var="goal" value="project:build"/>
		<attainGoal name="multiproject:goal"/>

	</goal>

I get the error:

BUILD FAILED
File...... C:\Documents and 
Settings\owenm\.maven\cache\maven-multiproject-plugi
n-1.3.1\plugin.jelly
Element... maven:param-check
Line...... 207
Column.... 54
A goal to run must be specified, e.g.
maven -Dgoal=clean multiproject:goal
Total time: 3 seconds
Finished at: Wed Jul 27 14:26:22 BST 2005


Whereas if I put the same code in a local maven.xml file, it works??? The 
idea of putting the goal into a plugin is that I can share it with other 
projects later.

Mike


<br><br><br>&gt;From: Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt;<br>&gt;Reply-To: Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt;<br>&gt;To: Maven Users List 
&lt;users@maven.apache.org&gt;<br>&gt;Subject: Re: Multiproject resources 
problem<br>&gt;Date: Wed, 27 Jul 2005 14:40:42 +0200<br>&gt;<br>&gt;sorry 
'java:jar-resources' that is...<br>&gt;<br>&gt;On 7/27/05, Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; great 
!!<br>&gt; &gt;  instead of running the tests twice, will it work to add as 
postGoal to<br>&gt; &gt; 'test:compile' the goal 'jar:jar-resources' 
?<br>&gt; &gt;  Dennis<br>&gt; &gt;  On 7/27/05, Michael Owen 
&lt;michaelowenuk@hotmail.com&gt; wrote:<br>&gt; &gt; &gt;<br>&gt; &gt; 
&gt;<br>&gt; &gt; &gt; Spot on. :) Just figured it out myself too. I have to 
put a test:test<br>&gt; &gt; &gt; goal<br>&gt; &gt; &gt; before, so the test 
classes are compiled. So with the test being done<br>&gt; &gt; &gt; 
again<br>&gt; &gt; &gt; for jar:install, it means the tests are carried out 
twice.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Mike<br>&gt; &gt; &gt;<br>&gt; 
&gt; &gt; &lt;br&gt;&lt;br&gt;&lt;br&gt;&gt;From: Dennis Geurts<br>&gt; &gt; 
&gt; &lt;dennis.geurts@gmail.com&gt;&lt;br&gt;&gt;Reply-To: Dennis 
Geurts<br>&gt; &gt; &gt; &lt;dennis.geurts@gmail.com&gt;&lt;br&gt;&gt;To: 
Maven Users List<br>&gt; &gt; &gt; 
&lt;users@maven.apache.org&gt;&lt;br&gt;&gt;Subject: Re: Multiproject 
resources<br>&gt; &gt; &gt; problem&lt;br&gt;&gt;Date: Wed, 27 Jul 2005 
14:16:31 +0200&lt;br&gt;&gt;&lt;br&gt;&gt;ok,<br>&gt; &gt; &gt; reasonable, 
just checking...&lt;br&gt;&gt; the 'java:jar-resources' goal that<br>&gt; 
&gt; &gt; should copy your test-classes comes&lt;br&gt;&gt;before the 
'test:compile'<br>&gt; &gt; &gt; goal&lt;br&gt;&gt; could it be that you 
start with a clean (multi)project ??<br>&gt; &gt; &gt; 
the&lt;br&gt;&gt;'build/testclasses' dir will still be 
empty,&lt;br&gt;&gt;and you'll<br>&gt; &gt; &gt; copying all the files that 
are there (that is to say: none at&lt;br&gt;&gt;all)<br>&gt; &gt; &gt; 
;-)&lt;br&gt;&gt; Dennis&lt;br&gt;&gt;&lt;br&gt;&gt; On 7/27/05, Michael 
Owen<br>&gt; &gt; &gt; &lt;michaelowenuk@hotmail.com&gt; 
wrote:&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; 
&gt; No. I've changed it to put the test classes into that<br>&gt; &gt; &gt; 
directory.&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; Mike&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&gt;From: Dennis Geurts&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &gt; 
&lt;dennis.geurts@gmail.com&gt;&lt;br&gt;&gt;Reply-To: Dennis 
Geurts&lt;br&gt;&gt;<br>&gt; &gt; &gt; &gt; 
&lt;dennis.geurts@gmail.com&gt;&lt;br&gt;&gt;To: Maven Users<br>&gt; &gt; 
&gt; List&lt;br&gt;&gt; &gt; 
&lt;users@maven.apache.org&gt;&lt;br&gt;&gt;Subject: Re:<br>&gt; &gt; &gt; 
Multiproject resources&lt;br&gt;&gt; &gt; problem&lt;br&gt;&gt;Date: Wed, 27 
Jul<br>&gt; &gt; &gt; 2005 13:16:56&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; 
+0200&lt;br&gt;&gt;&lt;br&gt;&gt;Michael,&lt;br&gt;&gt; you<br>&gt; &gt; 
&gt; specify:&lt;br&gt;&gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; 
&lt;directory&gt;${basedir}/build/testclasses&lt;/directory&gt;&lt;br&gt;&gt;&lt;br&gt;&gt;<br>&gt; 
&gt; &gt; &gt; shouldn't that&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; 
be:&lt;br&gt;&gt;&lt;directory&gt;${basedir}/target/test-classes&lt;/directory&gt;&lt;br&gt;&gt;&lt;br&gt;&gt;<br>&gt; 
&gt; &gt; &gt; ??&lt;br&gt;&gt; Dennis&lt;br&gt;&gt;&lt;br&gt;&gt; On 
7/27/05, Michael<br>&gt; &gt; &gt; Owen&lt;br&gt;&gt; &gt; &lt; 
michaelowenuk@hotmail.com&gt; wrote:&lt;br&gt;&gt;<br>&gt; &gt; &gt; 
&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt;&lt;br&gt;&gt; &gt; &gt; 
Hi,&lt;br&gt;&gt;<br>&gt; &gt; &gt; &gt;&lt;br&gt;&gt; &gt; I have a problem 
when doing jar:install&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; in a 
multiproject scenerio. In my&lt;br&gt;&gt; &gt; individual project<br>&gt; 
&gt; &gt; I&lt;br&gt;&gt; &gt; have:&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &gt; &lt;resources&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &gt; &lt;resource&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &gt; 
&lt;directory&gt;${basedir}/build/testclasses&lt;/directory&gt;&lt;br&gt;&gt;<br>&gt; 
&gt; &gt; &gt;&lt;br&gt;&gt; &gt; &lt;includes&gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &gt; 
&lt;include&gt;**/*&lt;/include&gt;&lt;br&gt;&gt;&lt;br&gt;&gt; &gt; 
&gt;<br>&gt; &gt; &gt; &lt;/includes&gt;&lt;br&gt;&gt; &gt; 
&lt;/resource&gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; &gt;&lt;br&gt;&gt; &gt; 
&lt;/resources&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; 
to include the testclasses into&lt;br&gt;&gt; &gt; the produced jar when I 
do<br>&gt; &gt; &gt; jar:install.&lt;br&gt;&gt; &gt; This&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt; happens<br>&gt; &gt; &gt; when doing it for the 
individual project, but when done as a&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; 
goal&lt;br&gt;&gt; &gt; for a multiproject goal ie:&lt;br&gt;&gt;<br>&gt; 
&gt; &gt; &gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; &lt;goal<br>&gt; &gt; 
&gt; name=&quot;multi:build&quot;&gt;&lt;br&gt;&gt; &gt; 
&lt;j:set&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; var=&quot;goal&quot; 
value=&quot;jar:install&quot;/&gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; 
&gt;&lt;br&gt;&gt; &gt; &lt;attainGoal<br>&gt; &gt; &gt; 
name=&quot;multiproject:goal&quot;/&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &gt; &lt;/goal&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; 
The testclasses don't<br>&gt; &gt; &gt; get put into&lt;br&gt;&gt; &gt; the 
jar. Any help? Looked on the&lt;br&gt;&gt;<br>&gt; &gt; &gt; &gt; 
multiproject plugin&lt;br&gt;&gt; &gt; documentation page and it says to 
use<br>&gt; &gt; &gt; ${basedir} to&lt;br&gt;&gt; &gt; solve 
the&lt;br&gt;&gt; &gt; problem, but I've<br>&gt; &gt; &gt; done 
that.&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; 
Mike&lt;br&gt;&gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; &gt; &gt;&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; 
&gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; 
---------------------------------------------------------------------&lt;br&gt;&gt;&lt;br&gt;&gt;<br>&gt; 
&gt; &gt; &gt; &gt; To unsubscribe, e-mail:<br>&gt; &gt; &gt; 
users-unsubscribe@maven.apache.org&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; 
For<br>&gt; &gt; &gt; additional commands, e-mail:<br>&gt; &gt; &gt; 
users-help@maven.apache.org &lt;br&gt;&gt;&lt;br&gt;&gt; &gt; 
&gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; &gt;&lt;br&gt;&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; 
&gt; 
---------------------------------------------------------------------&lt;br&gt;&gt;<br>&gt; 
&gt; &gt;<br>&gt; &gt; &gt; &gt; To unsubscribe, e-mail: 
users-unsubscribe@maven.apache.org&lt;br&gt;&gt; &gt;<br>&gt; &gt; &gt; For 
additional commands, e-mail: 
users-help@maven.apache.org&lt;br&gt;&gt;<br>&gt; &gt; &gt; 
&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;<br>&gt; &gt; &gt;<br>&gt; &gt; 
&gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; 
---------------------------------------------------------------------<br>&gt; 
&gt; &gt; To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>&gt; 
&gt; &gt; For additional commands, e-mail: 
users-help@maven.apache.org<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; 
&gt;<br>



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


Re: Multiproject resources problem

Posted by Dennis Geurts <de...@gmail.com>.
sorry 'java:jar-resources' that is...

On 7/27/05, Dennis Geurts <de...@gmail.com> wrote: 
> 
> great !!
>  instead of running the tests twice, will it work to add as postGoal to 
> 'test:compile' the goal 'jar:jar-resources' ?
>  Dennis
>  On 7/27/05, Michael Owen <mi...@hotmail.com> wrote: 
> > 
> > 
> > Spot on. :) Just figured it out myself too. I have to put a test:test 
> > goal
> > before, so the test classes are compiled. So with the test being done 
> > again 
> > for jar:install, it means the tests are carried out twice.
> > 
> > Mike
> > 
> > <br><br><br>>From: Dennis Geurts
> > <de...@gmail.com><br>>Reply-To: Dennis Geurts 
> > <de...@gmail.com><br>>To: Maven Users List
> > <us...@maven.apache.org><br>>Subject: Re: Multiproject resources 
> > problem<br>>Date: Wed, 27 Jul 2005 14:16:31 +0200<br>><br>>ok,
> > reasonable, just checking...<br>> the 'java:jar-resources' goal that
> > should copy your test-classes comes<br>>before the 'test:compile' 
> > goal<br>> could it be that you start with a clean (multi)project ??
> > the<br>>'build/testclasses' dir will still be empty,<br>>and you'll
> > copying all the files that are there (that is to say: none at<br>>all) 
> > ;-)<br>> Dennis<br>><br>> On 7/27/05, Michael Owen
> > <mi...@hotmail.com> wrote:<br>> ><br>> ><br>> 
> > > No. I've changed it to put the test classes into that
> > directory.<br>> ><br>> > Mike<br>> ><br>> >
> > <br><br><br>>From: Dennis Geurts<br>> > 
> > <de...@gmail.com><br>>Reply-To: Dennis Geurts<br>>
> > > <de...@gmail.com><br>>To: Maven Users 
> > List<br>> > <us...@maven.apache.org><br>>Subject: Re:
> > Multiproject resources<br>> > problem<br>>Date: Wed, 27 Jul
> > 2005 13:16:56<br>> > 
> > +0200<br>><br>>Michael,<br>> you
> > specify:<br>><br>> >
> > <directory>${basedir}/build/testclasses</directory><br>><br>>
> > > shouldn't that<br>> > 
> > be:<br>><directory>${basedir}/target/test-classes</directory><br>><br>>
> > > ??<br>> Dennis<br>><br>> On 7/27/05, Michael
> > Owen<br>> > < michaelowenuk@hotmail.com> wrote:<br>>
> > ><br>> ><br>><br>> > > Hi,<br>>
> > ><br>> > I have a problem when doing jar:install<br>> > 
> > in a multiproject scenerio. In my<br>> > individual project
> > I<br>> > have:<br>> ><br>> >
> > <resources><br>> ><br>> >
> > <resource><br>> ><br>> > 
> > <directory>${basedir}/build/testclasses</directory><br>>
> > ><br>> > <includes><br>> >
> > <include>**/*</include><br>><br>> > > 
> > </includes><br>> > </resource><br>>
> > ><br>> > </resources><br>> ><br>> >
> > to include the testclasses into<br>> > the produced jar when I do 
> > jar:install.<br>> > This<br>> ><br>> > happens
> > when doing it for the individual project, but when done as a<br>> >
> > goal<br>> > for a multiproject goal ie:<br>> 
> > ><br>> ><br>> > <goal
> > name="multi:build"><br>> > <j:set<br>> >
> > var="goal" value="jar:install"/><br>>
> > ><br>> > <attainGoal 
> > name="multiproject:goal"/><br>> ><br>> >
> > </goal><br>> ><br>> > The testclasses don't
> > get put into<br>> > the jar. Any help? Looked on the<br>> 
> > > multiproject plugin<br>> > documentation page and it says to use
> > ${basedir} to<br>> > solve the<br>> > problem, but I've
> > done that.<br>> ><br>> > Mike<br>><br>> 
> > > ><br>> ><br>> ><br>> ><br>>
> > >
> > 
> > ---------------------------------------------------------------------<br>><br>>
> > > > To unsubscribe, e-mail: 
> > users-unsubscribe@maven.apache.org<br>> ><br>> > For
> > additional commands, e-mail:
> > users-help@maven.apache.org <br>><br>> > ><br>>
> > ><br><br>> ><br>> ><br>> ><br>> >
> > ---------------------------------------------------------------------<br>> 
> > 
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>> >
> > For additional commands, e-mail: users-help@maven.apache.org<br>>
> > ><br>> ><br>
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
>

Re: Multiproject resources problem

Posted by Dennis Geurts <de...@gmail.com>.
great !!
 instead of running the tests twice, will it work to add as postGoal to 
'test:compile' the goal 'jar:jar-resources' ?
 Dennis
 On 7/27/05, Michael Owen <mi...@hotmail.com> wrote: 
> 
> 
> Spot on. :) Just figured it out myself too. I have to put a test:test goal
> before, so the test classes are compiled. So with the test being done 
> again
> for jar:install, it means the tests are carried out twice.
> 
> Mike
> 
> <br><br><br>>From: Dennis Geurts
> <de...@gmail.com><br>>Reply-To: Dennis Geurts
> <de...@gmail.com><br>>To: Maven Users List
> <us...@maven.apache.org><br>>Subject: Re: Multiproject resources
> problem<br>>Date: Wed, 27 Jul 2005 14:16:31 +0200<br>><br>>ok,
> reasonable, just checking...<br>> the 'java:jar-resources' goal that
> should copy your test-classes comes<br>>before the 'test:compile'
> goal<br>> could it be that you start with a clean (multi)project ??
> the<br>>'build/testclasses' dir will still be empty,<br>>and you'll
> copying all the files that are there (that is to say: none at<br>>all)
> ;-)<br>> Dennis<br>><br>> On 7/27/05, Michael Owen
> <mi...@hotmail.com> wrote:<br>> ><br>> ><br>>
> > No. I've changed it to put the test classes into that
> directory.<br>> ><br>> > Mike<br>> ><br>> >
> <br><br><br>>From: Dennis Geurts<br>> >
> <de...@gmail.com><br>>Reply-To: Dennis Geurts<br>>
> > <de...@gmail.com><br>>To: Maven Users
> List<br>> > <us...@maven.apache.org><br>>Subject: Re:
> Multiproject resources<br>> > problem<br>>Date: Wed, 27 Jul
> 2005 13:16:56<br>> >
> +0200<br>><br>>Michael,<br>> you
> specify:<br>><br>> >
> <directory>${basedir}/build/testclasses</directory><br>><br>>
> > shouldn't that<br>> >
> be:<br>><directory>${basedir}/target/test-classes</directory><br>><br>>
> > ??<br>> Dennis<br>><br>> On 7/27/05, Michael
> Owen<br>> > <mi...@hotmail.com> wrote:<br>>
> ><br>> ><br>><br>> > > Hi,<br>>
> ><br>> > I have a problem when doing jar:install<br>> >
> in a multiproject scenerio. In my<br>> > individual project
> I<br>> > have:<br>> ><br>> >
> <resources><br>> ><br>> >
> <resource><br>> ><br>> >
> <directory>${basedir}/build/testclasses</directory><br>>
> ><br>> > <includes><br>> >
> <include>**/*</include><br>><br>> > >
> </includes><br>> > </resource><br>>
> ><br>> > </resources><br>> ><br>> >
> to include the testclasses into<br>> > the produced jar when I do
> jar:install.<br>> > This<br>> ><br>> > happens
> when doing it for the individual project, but when done as a<br>> >
> goal<br>> > for a multiproject goal ie:<br>>
> ><br>> ><br>> > <goal
> name="multi:build"><br>> > <j:set<br>> >
> var="goal" value="jar:install"/><br>>
> ><br>> > <attainGoal
> name="multiproject:goal"/><br>> ><br>> >
> </goal><br>> ><br>> > The testclasses don't
> get put into<br>> > the jar. Any help? Looked on the<br>>
> > multiproject plugin<br>> > documentation page and it says to use
> ${basedir} to<br>> > solve the<br>> > problem, but I've
> done that.<br>> ><br>> > Mike<br>><br>>
> > ><br>> ><br>> ><br>> ><br>>
> >
> 
> ---------------------------------------------------------------------<br>><br>>
> > > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org<br>> ><br>> > For
> additional commands, e-mail:
> users-help@maven.apache.org<br>><br>> > ><br>>
> ><br><br>> ><br>> ><br>> ><br>> >
> ---------------------------------------------------------------------<br>>
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>> >
> For additional commands, e-mail: users-help@maven.apache.org<br>>
> ><br>> ><br>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

Re: Multiproject resources problem

Posted by Michael Owen <mi...@hotmail.com>.
Spot on. :) Just figured it out myself too. I have to put a test:test goal 
before, so the test classes are compiled. So with the test being done again 
for jar:install, it means the tests are carried out twice.

Mike

<br><br><br>&gt;From: Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt;<br>&gt;Reply-To: Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt;<br>&gt;To: Maven Users List 
&lt;users@maven.apache.org&gt;<br>&gt;Subject: Re: Multiproject resources 
problem<br>&gt;Date: Wed, 27 Jul 2005 14:16:31 +0200<br>&gt;<br>&gt;ok, 
reasonable, just checking...<br>&gt;  the 'java:jar-resources' goal that 
should copy your test-classes comes<br>&gt;before the 'test:compile' 
goal<br>&gt;  could it be that you start with a clean (multi)project ?? 
the<br>&gt;'build/testclasses' dir will still be empty,<br>&gt;and you'll 
copying all the files that are there (that is to say: none at<br>&gt;all) 
;-)<br>&gt;  Dennis<br>&gt;<br>&gt;  On 7/27/05, Michael Owen 
&lt;michaelowenuk@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; 
&gt; No. I've changed it to put the test classes into that 
directory.<br>&gt; &gt;<br>&gt; &gt; Mike<br>&gt; &gt;<br>&gt; &gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&gt;From: Dennis Geurts<br>&gt; &gt; 
&lt;dennis.geurts@gmail.com&gt;&lt;br&gt;&gt;Reply-To: Dennis Geurts<br>&gt; 
&gt; &lt;dennis.geurts@gmail.com&gt;&lt;br&gt;&gt;To: Maven Users 
List<br>&gt; &gt; &lt;users@maven.apache.org&gt;&lt;br&gt;&gt;Subject: Re: 
Multiproject resources<br>&gt; &gt; problem&lt;br&gt;&gt;Date: Wed, 27 Jul 
2005 13:16:56<br>&gt; &gt; 
+0200&lt;br&gt;&gt;&lt;br&gt;&gt;Michael,&lt;br&gt;&gt; you 
specify:&lt;br&gt;&gt;<br>&gt; &gt; 
&lt;directory&gt;${basedir}/build/testclasses&lt;/directory&gt;&lt;br&gt;&gt;<br>&gt; 
&gt; shouldn't that<br>&gt; &gt; 
be:&lt;br&gt;&gt;&lt;directory&gt;${basedir}/target/test-classes&lt;/directory&gt;&lt;br&gt;&gt;<br>&gt; 
&gt; ??&lt;br&gt;&gt; Dennis&lt;br&gt;&gt;&lt;br&gt;&gt; On 7/27/05, Michael 
Owen<br>&gt; &gt; &lt;michaelowenuk@hotmail.com&gt; wrote:&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; Hi,&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt; I have a problem when doing jar:install<br>&gt; &gt; 
in a multiproject scenerio. In my&lt;br&gt;&gt; &gt; individual project 
I<br>&gt; &gt; have:&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; 
&lt;resources&gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; 
&lt;resource&gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; 
&lt;directory&gt;${basedir}/build/testclasses&lt;/directory&gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &lt;includes&gt;&lt;br&gt;&gt; &gt; 
&lt;include&gt;**/*&lt;/include&gt;&lt;br&gt;&gt;<br>&gt; &gt; &gt; 
&lt;/includes&gt;&lt;br&gt;&gt; &gt; &lt;/resource&gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &lt;/resources&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; 
to include the testclasses into<br>&gt; &gt; the produced jar when I do 
jar:install.&lt;br&gt;&gt; &gt; This&lt;br&gt;&gt; &gt;<br>&gt; &gt; happens 
when doing it for the individual project, but when done as a<br>&gt; &gt; 
goal&lt;br&gt;&gt; &gt; for a multiproject goal ie:&lt;br&gt;&gt; 
&gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; &lt;goal 
name=&quot;multi:build&quot;&gt;&lt;br&gt;&gt; &gt; &lt;j:set<br>&gt; &gt; 
var=&quot;goal&quot; value=&quot;jar:install&quot;/&gt;&lt;br&gt;&gt; 
&gt;<br>&gt; &gt; &lt;attainGoal 
name=&quot;multiproject:goal&quot;/&gt;&lt;br&gt;&gt; &gt;<br>&gt; &gt; 
&lt;/goal&gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; The testclasses don't 
get put into<br>&gt; &gt; the jar. Any help? Looked on the&lt;br&gt;&gt; 
&gt; multiproject plugin<br>&gt; &gt; documentation page and it says to use 
${basedir} to&lt;br&gt;&gt; &gt; solve the<br>&gt; &gt; problem, but I've 
done that.&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt; Mike&lt;br&gt;&gt;<br>&gt; 
&gt; &gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;&lt;br&gt;&gt; &gt;<br>&gt; 
&gt; 
---------------------------------------------------------------------&lt;br&gt;&gt;<br>&gt; 
&gt; &gt; To unsubscribe, e-mail: 
users-unsubscribe@maven.apache.org&lt;br&gt;&gt; &gt;<br>&gt; &gt; For 
additional commands, e-mail: 
users-help@maven.apache.org&lt;br&gt;&gt;<br>&gt; &gt; &gt;&lt;br&gt;&gt; 
&gt;&lt;br&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 
---------------------------------------------------------------------<br>&gt; 
&gt; To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>&gt; &gt; 
For additional commands, e-mail: users-help@maven.apache.org<br>&gt; 
&gt;<br>&gt; &gt;<br>



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


Re: Multiproject resources problem

Posted by Dennis Geurts <de...@gmail.com>.
ok, reasonable, just checking...
 the 'java:jar-resources' goal that should copy your test-classes comes 
before the 'test:compile' goal
 could it be that you start with a clean (multi)project ?? the 
'build/testclasses' dir will still be empty,
and you'll copying all the files that are there (that is to say: none at 
all) ;-)
 Dennis

 On 7/27/05, Michael Owen <mi...@hotmail.com> wrote: 
> 
> 
> No. I've changed it to put the test classes into that directory.
> 
> Mike
> 
> <br><br><br>>From: Dennis Geurts
> <de...@gmail.com><br>>Reply-To: Dennis Geurts
> <de...@gmail.com><br>>To: Maven Users List
> <us...@maven.apache.org><br>>Subject: Re: Multiproject resources
> problem<br>>Date: Wed, 27 Jul 2005 13:16:56
> +0200<br>><br>>Michael,<br>> you specify:<br>>
> <directory>${basedir}/build/testclasses</directory><br>>
> shouldn't that
> be:<br>><directory>${basedir}/target/test-classes</directory><br>>
> ??<br>> Dennis<br>><br>> On 7/27/05, Michael Owen
> <mi...@hotmail.com> wrote:<br>> ><br>> ><br>>
> > Hi,<br>> ><br>> > I have a problem when doing jar:install
> in a multiproject scenerio. In my<br>> > individual project I
> have:<br>> ><br>> > <resources><br>> >
> <resource><br>> >
> <directory>${basedir}/build/testclasses</directory><br>> >
> <includes><br>> > <include>**/*</include><br>>
> > </includes><br>> > </resource><br>> >
> </resources><br>> ><br>> > to include the testclasses into
> the produced jar when I do jar:install.<br>> > This<br>> >
> happens when doing it for the individual project, but when done as a
> goal<br>> > for a multiproject goal ie:<br>> ><br>> >
> <goal name="multi:build"><br>> > <j:set
> var="goal" value="jar:install"/><br>> >
> <attainGoal name="multiproject:goal"/><br>> >
> </goal><br>> ><br>> > The testclasses don't get put into
> the jar. Any help? Looked on the<br>> > multiproject plugin
> documentation page and it says to use ${basedir} to<br>> > solve the
> problem, but I've done that.<br>> ><br>> > Mike<br>>
> ><br>> ><br>> ><br>> >
> ---------------------------------------------------------------------<br>>
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>> >
> For additional commands, e-mail: users-help@maven.apache.org<br>>
> ><br>> ><br>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

Re: Multiproject resources problem

Posted by Michael Owen <mi...@hotmail.com>.
No. I've changed it to put the test classes into that directory.

Mike

<br><br><br>&gt;From: Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt;<br>&gt;Reply-To: Dennis Geurts 
&lt;dennis.geurts@gmail.com&gt;<br>&gt;To: Maven Users List 
&lt;users@maven.apache.org&gt;<br>&gt;Subject: Re: Multiproject resources 
problem<br>&gt;Date: Wed, 27 Jul 2005 13:16:56 
+0200<br>&gt;<br>&gt;Michael,<br>&gt;  you specify:<br>&gt;  
&lt;directory&gt;${basedir}/build/testclasses&lt;/directory&gt;<br>&gt;  
shouldn't that 
be:<br>&gt;&lt;directory&gt;${basedir}/target/test-classes&lt;/directory&gt;<br>&gt; 
  ??<br>&gt;  Dennis<br>&gt;<br>&gt;  On 7/27/05, Michael Owen 
&lt;michaelowenuk@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; 
&gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I have a problem when doing jar:install 
in a multiproject scenerio. In my<br>&gt; &gt; individual project I 
have:<br>&gt; &gt;<br>&gt; &gt; &lt;resources&gt;<br>&gt; &gt; 
&lt;resource&gt;<br>&gt; &gt; 
&lt;directory&gt;${basedir}/build/testclasses&lt;/directory&gt;<br>&gt; &gt; 
&lt;includes&gt;<br>&gt; &gt; &lt;include&gt;**/*&lt;/include&gt;<br>&gt; 
&gt; &lt;/includes&gt;<br>&gt; &gt; &lt;/resource&gt;<br>&gt; &gt; 
&lt;/resources&gt;<br>&gt; &gt;<br>&gt; &gt; to include the testclasses into 
the produced jar when I do jar:install.<br>&gt; &gt; This<br>&gt; &gt; 
happens when doing it for the individual project, but when done as a 
goal<br>&gt; &gt; for a multiproject goal ie:<br>&gt; &gt;<br>&gt; &gt; 
&lt;goal name=&quot;multi:build&quot;&gt;<br>&gt; &gt; &lt;j:set 
var=&quot;goal&quot; value=&quot;jar:install&quot;/&gt;<br>&gt; &gt; 
&lt;attainGoal name=&quot;multiproject:goal&quot;/&gt;<br>&gt; &gt; 
&lt;/goal&gt;<br>&gt; &gt;<br>&gt; &gt; The testclasses don't get put into 
the jar. Any help? Looked on the<br>&gt; &gt; multiproject plugin 
documentation page and it says to use ${basedir} to<br>&gt; &gt; solve the 
problem, but I've done that.<br>&gt; &gt;<br>&gt; &gt; Mike<br>&gt; 
&gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; 
---------------------------------------------------------------------<br>&gt; 
&gt; To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>&gt; &gt; 
For additional commands, e-mail: users-help@maven.apache.org<br>&gt; 
&gt;<br>&gt; &gt;<br>



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


Re: Multiproject resources problem

Posted by Dennis Geurts <de...@gmail.com>.
Michael,
 you specify:
 <directory>${basedir}/build/testclasses</directory>
 shouldn't that be:
<directory>${basedir}/target/test-classes</directory>
 ??
 Dennis

 On 7/27/05, Michael Owen <mi...@hotmail.com> wrote: 
> 
> 
> Hi,
> 
> I have a problem when doing jar:install in a multiproject scenerio. In my
> individual project I have:
> 
> <resources>
> <resource>
> <directory>${basedir}/build/testclasses</directory>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> </resources>
> 
> to include the testclasses into the produced jar when I do jar:install. 
> This
> happens when doing it for the individual project, but when done as a goal
> for a multiproject goal ie:
> 
> <goal name="multi:build">
> <j:set var="goal" value="jar:install"/>
> <attainGoal name="multiproject:goal"/>
> </goal>
> 
> The testclasses don't get put into the jar. Any help? Looked on the
> multiproject plugin documentation page and it says to use ${basedir} to
> solve the problem, but I've done that.
> 
> Mike
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
>

Multiproject resources problem

Posted by Michael Owen <mi...@hotmail.com>.
Hi,

I have a problem when doing jar:install in a multiproject scenerio. In my 
individual project I have:

    	<resources>
    		<resource>
    			<directory>${basedir}/build/testclasses</directory>
    			<includes>
    				<include>**/*</include>
    			</includes>
    		</resource>
    	</resources>

to include the testclasses into the produced jar when I do jar:install. This 
happens when doing it for the individual project, but when done as a goal 
for a multiproject goal ie:

	<goal name="multi:build">
		<j:set var="goal" value="jar:install"/>
		<attainGoal name="multiproject:goal"/>
	</goal>

The testclasses don't get put into the jar. Any help? Looked on the 
multiproject plugin documentation page and it says to use ${basedir} to 
solve the problem, but I've done that.

Mike



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


Re: [m2] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Posted by Yann Le Du <le...@yahoo.com>.
Done, http://jira.codehaus.org/browse/MNG-660

Thanks Brett for your advice. Should I do that in the
<build><plugins><plugin><configuration> or something ? (don't know how to reach
this level of detail in the plugin configuration)

Yann


--- Brett Porter <br...@gmail.com> a écrit :

> looks ok to me. It could be a bug - please file it.
> 
> You can list out individual reports to use inside the reports plugin
> (eg mail-lists, dependencies) and exclude the source one if you like.
> 
> - Brett
> 
> On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > Brett,
> > 
> > My POM itself doesn't contain a source repository URL. But its parent does
> :
> >   <scm>
> >     <connection>scm:svn:svn://host:3691/COMMON/trunk/</connection>
> >   </scm>
> > 
> > I've tried to :
> >     * launch site:site in the parent directory
> >     * repeated both previous operations after moving the connection tag in
> the
> > module :
> >
>
<connection>scm:svn:svn://host:3691/COMMON/trunk/common-framework/</connection>
> >     * remove the trailing slash
> >     * change the protocol to http
> > ... and got each time the same thing.
> > 
> > The URL looks valid to me, since Continuum was able to use it until then...
> > 
> > Yann
> > 
> > --- Brett Porter <br...@gmail.com> a écrit :
> > 
> > > It now generates a page that says where your source repository is.
> > >
> > > Is your connection actually invalid? Just wondering what behaviour you
> > > are expecting here.
> > >
> > > - Brett
> > >
> > > On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > > > Hi,
> > > >
> > > > Using the trunk build (rev. 225332), I launched site:site with
> > > > maven-project-info-reports-plugin in my pom and got the following. Is
> it a
> > > new
> > > > feature to fill in the pom ?
> > > >
> > > > Regards,
> > > >
> > > > Yann
> > > >
> > > >
> > > > [INFO] Generate "Source Repository" report.
> > > > [INFO]
> > > >
> > >
> ----------------------------------------------------------------------------
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> > >
> ----------------------------------------------------------------------------
> > > > [INFO] Diagnosis: Error during site generation
> > > > [INFO]
> > > >
> > >
> ----------------------------------------------------------------------------
> > > > [ERROR] Cause:
> > > > org.apache.maven.plugin.MojoExecutionException: Error during site
> > > generation
> > > >         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
> > > > ...
> > > >
> > > > Caused by: java.lang.IllegalArgumentException: The SVN repository
> > > connection is
> > > > not valid.
> > > >         at
> > > >
> > >
> >
>
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> ___________________________________________________________________________
> > > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo!
> Messenger
> > > > Téléchargez cette version sur http://fr.messenger.yahoo.com
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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
> > >
> > >
> > 
> > 
> > Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
> >  Créez votre Yahoo! Mail sur http://mail.yahoo.fr
> > 
> > ---------------------------------------------------------------------
> > 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
> 
> 



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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


Re: [m2] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Posted by Brett Porter <br...@gmail.com>.
looks ok to me. It could be a bug - please file it.

You can list out individual reports to use inside the reports plugin
(eg mail-lists, dependencies) and exclude the source one if you like.

- Brett

On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> Brett,
> 
> My POM itself doesn't contain a source repository URL. But its parent does :
>   <scm>
>     <connection>scm:svn:svn://host:3691/COMMON/trunk/</connection>
>   </scm>
> 
> I've tried to :
>     * launch site:site in the parent directory
>     * repeated both previous operations after moving the connection tag in the
> module :
> <connection>scm:svn:svn://host:3691/COMMON/trunk/common-framework/</connection>
>     * remove the trailing slash
>     * change the protocol to http
> ... and got each time the same thing.
> 
> The URL looks valid to me, since Continuum was able to use it until then...
> 
> Yann
> 
> --- Brett Porter <br...@gmail.com> a écrit :
> 
> > It now generates a page that says where your source repository is.
> >
> > Is your connection actually invalid? Just wondering what behaviour you
> > are expecting here.
> >
> > - Brett
> >
> > On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > > Hi,
> > >
> > > Using the trunk build (rev. 225332), I launched site:site with
> > > maven-project-info-reports-plugin in my pom and got the following. Is it a
> > new
> > > feature to fill in the pom ?
> > >
> > > Regards,
> > >
> > > Yann
> > >
> > >
> > > [INFO] Generate "Source Repository" report.
> > > [INFO]
> > >
> > ----------------------------------------------------------------------------
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> > ----------------------------------------------------------------------------
> > > [INFO] Diagnosis: Error during site generation
> > > [INFO]
> > >
> > ----------------------------------------------------------------------------
> > > [ERROR] Cause:
> > > org.apache.maven.plugin.MojoExecutionException: Error during site
> > generation
> > >         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
> > > ...
> > >
> > > Caused by: java.lang.IllegalArgumentException: The SVN repository
> > connection is
> > > not valid.
> > >         at
> > >
> >
> org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ___________________________________________________________________________
> > > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > > Téléchargez cette version sur http://fr.messenger.yahoo.com
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
> 
> 
> Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
>  Créez votre Yahoo! Mail sur http://mail.yahoo.fr
> 
> ---------------------------------------------------------------------
> 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] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Posted by Yann Le Du <le...@yahoo.com>.
Brett,

My POM itself doesn't contain a source repository URL. But its parent does :
  <scm>
    <connection>scm:svn:svn://host:3691/COMMON/trunk/</connection>
  </scm>

I've tried to :
    * launch site:site in the parent directory
    * repeated both previous operations after moving the connection tag in the
module :
<connection>scm:svn:svn://host:3691/COMMON/trunk/common-framework/</connection>
    * remove the trailing slash
    * change the protocol to http
... and got each time the same thing.

The URL looks valid to me, since Continuum was able to use it until then...

Yann

--- Brett Porter <br...@gmail.com> a écrit :

> It now generates a page that says where your source repository is.
> 
> Is your connection actually invalid? Just wondering what behaviour you
> are expecting here.
> 
> - Brett
> 
> On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> > Hi,
> > 
> > Using the trunk build (rev. 225332), I launched site:site with
> > maven-project-info-reports-plugin in my pom and got the following. Is it a
> new
> > feature to fill in the pom ?
> > 
> > Regards,
> > 
> > Yann
> > 
> > 
> > [INFO] Generate "Source Repository" report.
> > [INFO]
> >
> ----------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO]
> >
> ----------------------------------------------------------------------------
> > [INFO] Diagnosis: Error during site generation
> > [INFO]
> >
> ----------------------------------------------------------------------------
> > [ERROR] Cause:
> > org.apache.maven.plugin.MojoExecutionException: Error during site
> generation
> >         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
> > ...
> > 
> > Caused by: java.lang.IllegalArgumentException: The SVN repository
> connection is
> > not valid.
> >         at
> >
>
org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ___________________________________________________________________________
> > Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> > Téléchargez cette version sur http://fr.messenger.yahoo.com
> > 
> > ---------------------------------------------------------------------
> > 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
> 
> 


Yahoo! Mail - Votre e-mail personnel et gratuit qui vous suit partout !
 Créez votre Yahoo! Mail sur http://mail.yahoo.fr

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


Re: [m2] [trunk] Project info reports plugin fails on unvalid SVN repository connection ?

Posted by Brett Porter <br...@gmail.com>.
It now generates a page that says where your source repository is.

Is your connection actually invalid? Just wondering what behaviour you
are expecting here.

- Brett

On 7/27/05, Yann Le Du <le...@yahoo.com> wrote:
> Hi,
> 
> Using the trunk build (rev. 225332), I launched site:site with
> maven-project-info-reports-plugin in my pom and got the following. Is it a new
> feature to fill in the pom ?
> 
> Regards,
> 
> Yann
> 
> 
> [INFO] Generate "Source Repository" report.
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Diagnosis: Error during site generation
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] Cause:
> org.apache.maven.plugin.MojoExecutionException: Error during site generation
>         at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:372)
> ...
> 
> Caused by: java.lang.IllegalArgumentException: The SVN repository connection is
> not valid.
>         at
> org.apache.maven.report.projectinfo.ScmReport$ScmRenderer.getSvnRoot(ScmReport.java:427)
> 
> 
> 
> 
> 
> 
> 
> ___________________________________________________________________________
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> 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