You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dominik Dahlem <Do...@cs.tcd.ie> on 2003/10/03 17:24:10 UTC

multiproject cuts path information

Hi,

I'm playing with the dotuml plugin. With the changes I submitted it
works fine when running "maven site" on a particular project. If I run
the multiproject:site goal the dotuml plugin bellies up. The output
below states a wrong DirSet. The includes list contains a path which is
cut at the beginning. It should be "ie.tcd.persl..." but is "ersl...". I
assume this is the reason why my build fails.
Are there similar issues with the multiproject plugin and if so is there
a fix available?

Thx,
Dominik


dotuml:generate:
    [record] [DEBUG] setting a recorder for name
/home/dahlemd/projects/mainline/container/main/../core/target/docs/dotuml/report.txt
    [javadoc] [DEBUG] scanning
/home/dahlemd/projects/mainline/container/core/src/java for packages.
    [javadoc] [DEBUG] DirSet: Setup scanner in dir
/home/dahlemd/projects/mainline/container/core/src/java with patternSet{
includes: [ersl/container/core/internals/defaults] excludes: [] }
    [javadoc] [VERBOSE]
/home/dahlemd/projects/mainline/container/core/src/java doesn't contain
any packages, dropping it.
 



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


RE: Problems with cactus plugin maven rc1

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Mark,

I've just tried it again and it works fine for me. Could you try running
the attached Cactus sample? I believe your problem might be that you're
cactus-ant jar might be corrupted. Could you check that in your local
repository?

The first time you run the cactus plugin, the cactus related jars get
downloaded. You might have had a problem when that happened.

Thanks
-Vincent

> -----Original Message-----
> From: Mark McBride [mailto:markmcbride@llnl.gov]
> Sent: 10 October 2003 01:45
> To: Maven Users List
> Subject: Problems with cactus plugin maven rc1
> 
> I get the following error when trying to use the maven cactus goal:
> 
> C:\eclipse\workspace\strutstestcase>maven cactus
>   __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
> 
>       [echo] Assembling webapp Global Project
>      [mkdir] Created dir:
> C:\eclipse\workspace\strutstestcase\target\Global
> Project
>      [mkdir] Created dir:
> C:\eclipse\workspace\strutstestcase\target\Global
> Project\WEB-INF
>      [mkdir] Created dir:
> C:\eclipse\workspace\strutstestcase\target\Global
> Project\WEB-INF\lib
>      [mkdir] Created dir:
> C:\eclipse\workspace\strutstestcase\target\Global
> Project\WEB-INF\tld
>      [mkdir] Created dir:
> C:\eclipse\workspace\strutstestcase\target\Global
> Project\WEB-INF\classes
>       [echo] Building WAR Global Project
>        [jar] Building jar:
> C:\eclipse\workspace\strutstestcase\target\Global Project.war
> 
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/mcbride5/.maven/plugins/maven-cactus-plugin-3.1/
> Element... ant:taskdef
> Line...... 51
> Column.... 75
> taskdef class org.apache.cactus.integration.ant.CactusTask cannot be
found
> Total time: 7 seconds
> Finished at: Thu Oct 09 16:36:51 PDT 2003
> 
> 
> Has anyone seen this?
> 
> Thanks in advance!
> 
> -Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


Problems with cactus plugin maven rc1

Posted by Mark McBride <ma...@llnl.gov>.
I get the following error when trying to use the maven cactus goal:

C:\eclipse\workspace\strutstestcase>maven cactus
  __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

      [echo] Assembling webapp Global Project
     [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
Project
     [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
Project\WEB-INF
     [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
Project\WEB-INF\lib
     [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
Project\WEB-INF\tld
     [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
Project\WEB-INF\classes
      [echo] Building WAR Global Project
       [jar] Building jar: 
C:\eclipse\workspace\strutstestcase\target\Global Project.war

BUILD FAILED
File...... file:/C:/Documents and 
Settings/mcbride5/.maven/plugins/maven-cactus-plugin-3.1/
Element... ant:taskdef
Line...... 51
Column.... 75
taskdef class org.apache.cactus.integration.ant.CactusTask cannot be found
Total time: 7 seconds
Finished at: Thu Oct 09 16:36:51 PDT 2003


Has anyone seen this?

Thanks in advance!

-Mark


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


Re: Problems with cactus plugin maven rc1

Posted by "J. Joseph Benavidez" <ha...@pobox.com>.
I'm seeing this too... (running on linux):

[jjb ~/work/bubba] maven cactus:init
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

Attempting to download commons-jelly-tags-velocity-SNAPSHOT.jar.
Attempting to download maven-SNAPSHOT.jar.
war:init:
...
BUILD FAILED
File......
file:/home/jjb/.maven/plugins/maven-cactus-plugin-3.0-SNAPSHOT/
Element... ant:taskdef
Line...... 51
Column.... 75
taskdef class org.apache.cactus.integration.ant.CactusTask cannot be
found
Total time: 13 seconds
Finished at: Mon Oct 13 14:27:43 MDT 2003



Any fixes?


Thanks,

j.joseph


On Thu, 2003-10-09 at 17:45, Mark McBride wrote:
> I get the following error when trying to use the maven cactus goal:
> 
> C:\eclipse\workspace\strutstestcase>maven cactus
>   __  __
> |  \/  |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
> 
>       [echo] Assembling webapp Global Project
>      [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
> Project
>      [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
> Project\WEB-INF
>      [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
> Project\WEB-INF\lib
>      [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
> Project\WEB-INF\tld
>      [mkdir] Created dir: C:\eclipse\workspace\strutstestcase\target\Global 
> Project\WEB-INF\classes
>       [echo] Building WAR Global Project
>        [jar] Building jar: 
> C:\eclipse\workspace\strutstestcase\target\Global Project.war
> 
> BUILD FAILED
> File...... file:/C:/Documents and 
> Settings/mcbride5/.maven/plugins/maven-cactus-plugin-3.1/
> Element... ant:taskdef
> Line...... 51
> Column.... 75
> taskdef class org.apache.cactus.integration.ant.CactusTask cannot be found
> Total time: 7 seconds
> Finished at: Thu Oct 09 16:36:51 PDT 2003
> 
> 
> Has anyone seen this?
> 
> Thanks in advance!
> 
> -Mark
> 
> 
> ---------------------------------------------------------------------
> 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: multiproject cuts path information

Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
I added some verbose information and realized that the way dotuml looks
for packages in the sourcetree is the problem. It all works fine, when I
execute the dotuml goal on a single project. If this project
participates in a multiproject it can't deal with constructed pathnames
(contains /../).
If someone can point me to an example on how to find packages in the
source path that would be great. Meanwhile, I'm looking for a solution
myself.

<j:forEach items="${jfiles.iterator()}" var="jfile">
  <j:set var="pkgdir" value="${jfile.parentFile.path}" />
  <j:if test="${!pkgdirs.contains(pkgdir)}" >
    <j:set var="rc" value="${pkgdirs.add(pkgdir)}" />
  </j:if>
</j:forEach>
<j:set var="rembase" value="${basedir}/src/java/" />
<ant:echo>rembase ${rembase}</ant:echo>

<!-- generate the UML diagrams in .dot and a specified image format for
all packages -->
<j:forEach items="${pkgdirs.iterator()}" var="pkgd">
  <ant:echo>${pkgd}</ant:echo>
  <j:set var="pkgreld" value="${pkgd.substring(rembase.length())}" />
  <ant:echo>${pkgreld}</ant:echo>
  <util:replace var="maven.dotuml.packagename" value="${pkgreld}"
oldChar="/" newChar="." />
  <ant:echo>process package ${maven.dotuml.packagename}</ant:echo>
  <j:set var="maven.dotuml.dotout"
value="${maven.dotuml.packagename}.dot"/>
  <attainGoal name="dotuml:generate"/>
</j:forEach>



Thx,
Dominik



On Mon, 2003-10-06 at 04:18, dion@multitask.com.au wrote:
> How is the includes being derived?
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://blogs.codehaus.org/people/dion/
> 
> 
> Dominik Dahlem <Do...@cs.tcd.ie> wrote on 04/10/2003 01:24:10 AM:
> 
> > Hi,
> > 
> > I'm playing with the dotuml plugin. With the changes I submitted it
> > works fine when running "maven site" on a particular project. If I run
> > the multiproject:site goal the dotuml plugin bellies up. The output
> > below states a wrong DirSet. The includes list contains a path which is
> > cut at the beginning. It should be "ie.tcd.persl..." but is "ersl...". I
> > assume this is the reason why my build fails.
> > Are there similar issues with the multiproject plugin and if so is there
> > a fix available?
> > 
> > Thx,
> > Dominik
> > 
> > 
> > dotuml:generate:
> >     [record] [DEBUG] setting a recorder for name
> > /home/dahlemd/projects/mainline/container/main/..
> > /core/target/docs/dotuml/report.txt
> >     [javadoc] [DEBUG] scanning
> > /home/dahlemd/projects/mainline/container/core/src/java for packages.
> >     [javadoc] [DEBUG] DirSet: Setup scanner in dir
> > /home/dahlemd/projects/mainline/container/core/src/java with patternSet{
> > includes: [ersl/container/core/internals/defaults] excludes: [] }
> >     [javadoc] [VERBOSE]
> > /home/dahlemd/projects/mainline/container/core/src/java doesn't contain
> > any packages, dropping it.
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > 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: multiproject cuts path information

Posted by di...@multitask.com.au.
How is the includes being derived?
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


Dominik Dahlem <Do...@cs.tcd.ie> wrote on 04/10/2003 01:24:10 AM:

> Hi,
> 
> I'm playing with the dotuml plugin. With the changes I submitted it
> works fine when running "maven site" on a particular project. If I run
> the multiproject:site goal the dotuml plugin bellies up. The output
> below states a wrong DirSet. The includes list contains a path which is
> cut at the beginning. It should be "ie.tcd.persl..." but is "ersl...". I
> assume this is the reason why my build fails.
> Are there similar issues with the multiproject plugin and if so is there
> a fix available?
> 
> Thx,
> Dominik
> 
> 
> dotuml:generate:
>     [record] [DEBUG] setting a recorder for name
> /home/dahlemd/projects/mainline/container/main/..
> /core/target/docs/dotuml/report.txt
>     [javadoc] [DEBUG] scanning
> /home/dahlemd/projects/mainline/container/core/src/java for packages.
>     [javadoc] [DEBUG] DirSet: Setup scanner in dir
> /home/dahlemd/projects/mainline/container/core/src/java with patternSet{
> includes: [ersl/container/core/internals/defaults] excludes: [] }
>     [javadoc] [VERBOSE]
> /home/dahlemd/projects/mainline/container/core/src/java doesn't contain
> any packages, dropping it.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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