won't build compile java 5 sources ...

2007-06-12 Thread Giovanni Azua
Hi,

 

I have the following pom.xml snippet:

 



 java/

 java-test/

  

 

But the code does not compile because it is set to

-source 1.3 instead of -source 1.5 I cant find where to set this? 

Help! 

 

Such detail that will make the code compile in 1.5 is 

impossible to find in the current documentation?

 

TIA,

 

Regards,

Giovanni 

 



conditional reporting ...

2007-06-26 Thread Giovanni Azua
Hi all,

 

I build the site of my project whether from Windows or Fedora, svn does not
work

Correctly on windows so I wanted to activate the SCM report plugin only on
demand

e.g.

 

mvn clean install site -Dgenerate.statsvn=true

 

The problem is that I can not find the way to specify this in my pom.xml I
tried this bellow

Without success e.g.

 



  



   Generating StatSVN report using stat-scm

   

  net.sf

  stat-scm

   



  



 

That way does not work.

 

TIA,

Regards,

Giovanni



using alternate Doclet ydoc.doclets.YStandard

2007-06-27 Thread Giovanni Azua
Hi all,

I have tried several recommendations on the web on how to integrate
yDoc with Maven 2 but none seem to work? Anyone knows how to set it up?

I have not tried creating an artifact Id for it ... I think is a less
portable solution i.e. will have to do the process all over in every 
site where I build my project ...

TIA,
Regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Exception configuring javadoc with yDoc ...

2007-06-27 Thread Giovanni Azua
The configuration is:

JDK 1.6
Maven 2.0.6

Bellow is the stack trace of my customized run of javadoc plugin 
using the yDoc doclet:

$ mvn javadoc:javadoc -X

Any ideas? 

Thanks in advance.

Regards,
Giovanni

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-javadoc-plugin:2.2:javadoc' -->
[DEBUG]   (f) additionalparam = -link
http://java.sun.com/j2se/1.5.0/docs/api/
-link
http://logging.apache.org/log4j/docs/api/
-docfilessubdirs -umlautogen
-umlgen -umltypegen
-umlpackagegen
-umloverviewgen -author
[DEBUG]   (f) aggregate = false
[DEBUG]   (f) author = true
[DEBUG]   (f) bottom = Copyright © {inceptionYear}-{currentYear}
{organizationName}. All Rights Reserved.
[DEBUG]   (f) breakiterator = false
[DEBUG]   (f) charset = ISO-8859-1
[DEBUG]   (f) debug = false
[DEBUG]   (f) description = JavaDoc API documentation.
[DEBUG]   (f) destDir = apidocs
[DEBUG]   (f) docfilessubdirs = false
[DEBUG]   (f) doclet = ydoc.doclets.YStandard
[DEBUG]   (f) docletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) docletArtifacts =
[Lorg.apache.maven.plugin.javadoc.options.DocletArtifact;@19a0203
[DEBUG]   (f) docletPath =
C:\java\3p\ydoc-2.2_04-jdk1.5/lib/ydoc.jar:C:\java\3p\ydoc-2.2_04-jdk1.5/lib
/styleed.jar:C:\java\3p\ydoc-2.2_04-jdk1.5/lib/class2svg.jar:C:\java\3p\ydoc
-2.2_04-jdk1.5/resources
[DEBUG]   (f) doctitle = PerfectJPattern 0.0.1 API
[DEBUG]   (f) groups =
[Lorg.apache.maven.plugin.javadoc.options.Group;@e45b5e
[DEBUG]   (f) isOffline = false
[DEBUG]   (f) javadocDirectory =
C:\Projects\perfectjpattern\trunk/src/main/javadoc
[DEBUG]   (f) keywords = false
[DEBUG]   (f) links = []
[DEBUG]   (f) linksource = false
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and
Settings\Giovanni Azua Garcia\.m2\repository
[DEBUG]   (f) name = JavaDocs
[DEBUG]   (f) nocomment = false
[DEBUG]   (f) nodeprecated = false
[DEBUG]   (f) nodeprecatedlist = false
[DEBUG]   (f) nohelp = false
[DEBUG]   (f) noindex = false
[DEBUG]   (f) nonavbar = false
[DEBUG]   (f) nosince = false
[DEBUG]   (f) notimestamp = false
[DEBUG]   (f) notree = false
[DEBUG]   (f) offlineLinks = []
[DEBUG]   (f) old = false
[DEBUG]   (f) outputDirectory =
C:\Projects\perfectjpattern\trunk\target\apidocs
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) quiet = false
[DEBUG]   (f) reactorProjects =
[EMAIL PROTECTED]
[DEBUG]   (f) remoteRepositories = [[central] ->
http://repo1.maven.org/maven2]
[DEBUG]   (s) reportOutputDirectory =
C:\Projects\perfectjpattern\trunk\target\site\apidocs
[DEBUG]   (f) serialwarn = false
[DEBUG]   (f) show = protected
[DEBUG]   (f) splitindex = false
[DEBUG]   (f) stylesheet = java
[DEBUG]   (f) tagletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) taglets =
[Lorg.apache.maven.plugin.javadoc.options.Taglet;@f0b4a3
[DEBUG]   (f) tags = [Lorg.apache.maven.plugin.javadoc.options.Tag;@15428dd
[DEBUG]   (f) use = true
[DEBUG]   (f) verbose = false
[DEBUG]   (f) version = true
[DEBUG]   (f) windowtitle = PerfectJPattern 0.0.1 API
[DEBUG] -- end configuration --
[INFO] [javadoc:javadoc]
[WARNING] No docletpath option was found. Please review  or
 or .
[DEBUG] "C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe" @options
@packages
1 error
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] An error has occurred in JavaDocs report generation:Exit code: 1 -
javadoc: error - Invalid mode: Try running in headless mode.


Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
@options @packages

[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in JavaDocs report generation:Exit code: 1 - javadoc: error -
Invalid mode: Try running in headless mode.


Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
@options @packages
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife

RE: Exception configuring javadoc with yDoc ...

2007-06-28 Thread Giovanni Azua
The only way to solve the issue was to add all required ydoc library and
resource files under the CLASSPATH environment variable ... Strange as it
should not be that way.

Anyways how can I overwrite classpath info within a profile? examples? 

TIA,
Regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hack in some html e.g. poweredBy

2007-06-30 Thread Giovanni Azua
Hi all,

I would like to customize the site.xml and add couple of logos as
compensation for
free licenses I got for my open source project with the "powered by" style
logo. 
The problem is that site.xml poweredBy tag ignores the following HTML
parameters: 
width height, border e.g.:

http://www.cenqua.com/clover";   
 img="http://www.cenqua.com/images/clovered.gif";
 width="89" 
 height="33" 
 border="0" 
 alt="Code Coverage by Clover" />

http://maven.apache.org";
 img="http://maven.apache.org/images/logos/maven-feather.png";
 width="89" 
 height="33" 
 border="0" 
 alt="Built by Maven" />


The width height and border tags are ignored by Maven, how can I hack in
some HTML instead, cleaner alternatives?

TIA,
Regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Site-related question ... change default index.html

2007-07-08 Thread Giovanni Azua
Hi all,

I was trying to get the same effect as maven 2 website where there is a
portlet on the right side including some adds and news information. I
checked out their repository and found the following velocity template being
included:

$PROJECT_HOME/trunk/src/site/xdoc/index.xml.vm 

The problem is that such file does not get picked up automatically from my
build process and the indication to maven of the existence of this file is
not anywhere bellow the project directory structure so I presume should be
somewhere in the settings.xml if so then how can I customize it myself? 

Many thanks in advance,
Regards,
Giovanni




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Profile property-based activation does not work ...

2007-07-08 Thread Giovanni Azua
Hi all,

Recently I got a tip from this list how to enable SCM reports only on
request by explicitly setting a property 
-Dgenerate.statsvn=true the problem is that it does not work not in Windows
nor in Linux example bellow.

In this example bellow the -Dgenerate.ydoc=true works ok but not the
-Dgenerate.statsvn=true option.

TIA,

Regards,
Giovanni


pom.xml
-
...

 
  
   
generate.statsvn
   
   
  
   

 net.sf
 stat-scm

   
  
  
 
  
   
generate.ydoc
   
  
  
  
   
org.apache.maven.plugins
maven-javadoc-plugin

 ydoc.doclets.YStandard
 
${ydoc.home}/lib/ydoc.jar:${ydoc.home}/lib/class2svg.jar:${ydoc.
home}/resources
 
  -link http://java.sun.com/j2se/1.5.0/docs/api/
  -link http://logging.apache.org/log4j/docs/api/
  -docfilessubdirs -umlautogen -umlgen -umltypegen
-umlpackagegen -umloverviewgen -author
 


   
  
  

...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Site doxia renderer "no valid version could be found"

2007-07-08 Thread Giovanni Azua
Hi all,

I am using maven 2 version 2.0.6 with jdk 1.50_12.

Including the following snippet in my pom.xml copied from
http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index.htm
l:



...

 org.apache.maven.plugins
 maven-site-plugin
 
 
  org.apache.velocity.site
  velocity-site-doxia-renderer
  1.2.0-SNAPSHOT
 
 


 org.apache.velocity.site
 velocity-site-doxia-renderer
 
  
  
 
 
  
   
 pre-site
   
  
 

...


Leads to the following error:

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
does not exist or no valid version could be found
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.velocity.site:velocity-site-doxia-renderer' does not exist or no
valid version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLife
cycleExecutor.java:1286)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(De
faultLifecycleExecutor.java:1221)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappin
gs(DefaultLifecycleExecutor.java:987)

TIA,
Regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xdoc and spaces after anchor issue

2008-04-19 Thread Giovanni Azua

hi,

Before, and using maven 2.0.7 I was able to generate my project site with no
problems using xdoc and something like


   downloads.html Downloads 

 
Now using maven 2.0.7 or 2.0.8, 2.0.9 I get the html out of my xdoc files
generated with extra newline tabs and spaces after the   basically in the
html generated every hyperlink is followed by many blank spaces.

I am building from fedora 8, all my xdocs are in Unix encoding, I have tried
using 2.0.7, 2.0.8 and 2.0.9. 

Any clues why this is happening? 

TIA,
regards,
Giovanni


-- 
View this message in context: 
http://www.nabble.com/xdoc-and-spaces-after-anchor-issue-tp16786393s177p16786393.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: xdoc and spaces after anchor issue

2008-04-19 Thread Giovanni Azua

Sorry I meant a snippet like bellow is producing the problem:


  Downloads


PS: Had to use Nabble to post because from my email I only get " 550
relaying mail to maven.apache.org is not allowed"
-- 
View this message in context: 
http://www.nabble.com/xdoc-and-spaces-after-anchor-issue-tp16786393s177p16786434.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: xdoc and spaces after anchor issue

2008-04-20 Thread Giovanni Azua
Hi Dennis,

Many thanks for your help! I switched my settings.xml to point to plugin
repositories in http://people.apache.org/repo/m2-snapshot-repository in
addition to Codehaus Snapshots (I need codehaus for the dashboard plugin)

I also fixed the maven-site-plugin to the snapshot version where MSITE-274
is resolved and the generated site still has the anchor spaces problem.
Attempting to troubleshoot this I deleted my ~/.m2/repository folder and
building again now.

Regards,
Giovanni

> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 19, 2008 8:57 PM
> To: Maven Users List
> Subject: Re: xdoc and spaces after anchor issue
> 
> You are running into
> 
>http://jira.codehaus.org/browse/MSITE-274
> 
> which has been fixed in the, not yet released, 2.0-beta-7 version of the
> site-plugin.
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



issues with snapshot repo config in settings.xml

2008-04-20 Thread Giovanni Azua
Hi,

I basically would like to have my site generated properly e.g. without
issues like http://jira.codehaus.org/browse/MSITE-274 and also take
advantage of a few beta plugins e.g. dashboard plugin. 

My problem is that I can't seem to find the optimal settings.xml repo
configuration. By trying different setups I run into every kind of problems
either one plugin component does not work or my build does not work at all
etc.

Right now I am trying to build my project with the setup shown in the
snippet below.

My question is can anyone recommend how to have the best compromise between
stability e.g. avoid issues like MSITE-274 and still be able to use
dashboard?

e.g. one of the big issues I have is that depending of what's in my
settings.xml I have to either build my project like:

NORMAL CASE: building as

$MAVEN_HOME/bin/mvn clean install site -e -Dgenerate.ydoc=true
-Dgenerate.statsvn=true $*

WORST CASE SCENARIO: my project sub-modules are not correctly seen

# define the projects in the order the should be built
PROJECTS="perfectjpattern-api perfectjpattern-core perfectjpattern-j2ee
perfectjpattern-examples"

# start build process
$MAVEN_HOME/bin/mvn -Pall clean
for project in `echo $PROJECTS`
do  
  cd $project
  $MAVEN_HOME/bin/mvn clean install -e 
  cd ..
done
$MAVEN_HOME/bin/mvn install site -e -Dgenerate.ydoc=true
-Dgenerate.statsvn=true $*

Many thanks in advance,
Best regards,
Giovanni

In my settings.xml I have this default activated profile:

...

   Snapshots
   
  
People Apache Repository
http://people.apache.org/repo/m2-snapshot-repository/

  true


  true

  
   
   
  
Codehaus Snapshots
http://snapshots.repository.codehaus.org/

  true


  true

  
  
People Apache Repository
http://people.apache.org/repo/m2-snapshot-repository/

  true


  true

  
   

...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: xdoc and spaces after anchor issue

2008-04-20 Thread Giovanni Azua

Hi Dennis,

Even now that I am using the fixed version of maven-site-plugin I still get
all spaces/tabs/newline after the closing of the anchors in my project site.

I configured my pom.xml to:


  org.apache.maven.plugins
  maven-site-plugin
  2.0-beta-7-SNAPSHOT


See:

http://perfectjpattern.svn.sourceforge.net/viewvc/perfectjpattern/trunk/pom.
xml?view=markup

And adding a default activated profile in my settings.xml like below to be
able to access the maven-site-plugin version 2.0-beta-7-SNAPSHOT:


  Snapshots 
  
   
People Apache repository 
http://people.apache.org/repo/m2-snapshot-repository/ 
   
  
  
   
Codehaus Snapshots 
http://snapshots.repository.codehaus.org/ 
   
   
People Apache Plugins repository 
http://people.apache.org/repo/m2-snapshot-repository/ 
   
  


Best regards,
Giovanni

> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Saturday, April 19, 2008 8:57 PM
> To: Maven Users List
> Subject: Re: xdoc and spaces after anchor issue
> 
> You are running into
> 
>http://jira.codehaus.org/browse/MSITE-274
> 
> which has been fixed in the, not yet released, 2.0-beta-7 version of the
> site-plugin.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: xdoc and spaces after anchor issue

2008-04-20 Thread Giovanni Azua

hi Dennis,

Many thanks for your help!

> Anyway, the html files that do get generated from xdoc files look fine
> to me. Can you give me a concrete example of one file that exhibits this
> problem?
> 
e.g. the index.html file has the issue:



The only thing I recall needs local installation is JTA 1.0.1B API, that you
can download from this link and rename to jar:


which options did you use for building? did you use build.sh?

The only open point remaining would be the settings.xml, mine is below.

Best regards,
Giovanni

* settings.xml *


  
  
  

  sourceforge.net
  
  
  775
  775

  
  

  ibiblio.org
  http://mirrors.ibiblio.org/pub/mirrors/maven2
  central
  


  lsu.edu
  http://ibiblio.lsu.edu/main/pub/packages/maven2
  central
  
 

  sateh.com
  http://maven.sateh.com/repository
  central
  


  dotsrc.org
  http://mirrors.dotsrc.org/maven2
  central
  


  sunsite.dk
  http://mirrors.sunsite.dk/maven2
  central
  


  skynet.be
  http://maven2.mirrors.skynet.be/pub/maven2
  central
  


  cica.es
  http://ftp.cica.es/mirrors/maven2
  central
  


  redv.com
  http://mirrors.redv.com/maven2
  central
  

 

  ibiblio.net
  http://www.ibiblio.net/pub/packages/maven2
  central
  

 
  

  ydoc
  

  
  
/opt/noarch/ydoc/3.0
  /opt/noarch/ydoc/3.0/license/ydoc.license
  
  

  Snapshots
  
   
 People Apache repository
 http://people.apache.org/repo/m2-snapshot-repository/
 
true
  
  
false
  
   


   
 Codehaus Snapshots
 http://snapshots.repository.codehaus.org/
 
true
  
  
false
  
   
   
 People Apache Plugins repository
 http://people.apache.org/repo/m2-snapshot-repository/
 
true
  
  
false
  
   
 


  
ydoc
Snapshots
  



 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



about jxr plugin version 2.1.0

2008-04-27 Thread Giovanni Azua
hi,

I would like to use the latest version of jxr plugin 2.1 see
 but can't seem to
find the right repo where it is located.

All I can pull out from my build is this beta version


I am trying to use the latest version of the jxr because the version I am
able to use this 2.0-beta-1 does not properly aggregate multiple projects.

TIA,
Best regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: about jxr plugin version 2.1.0

2008-04-27 Thread Giovanni Azua
Thanks Dennis! Yep you are right! Now it works :)

> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Sunday, April 27, 2008 1:25 PM
> To: Maven Users List
> Subject: Re: about jxr plugin version 2.1.0
> 
> Here are the usage documentation for the JXR plugin:
> 
>http://maven.apache.org/plugins/maven-jxr-plugin/usage.html
> 
> The groupId for the plugin is now org.apache.maven.plugins
> 
> Giovanni Azua wrote:
> > hi,
> >
> > I would like to use the latest version of jxr plugin 2.1 see
> > <http://jira.codehaus.org/browse/JXR/fixforversion/12533/> but can't
> seem to
> > find the right repo where it is located.
> >
> > All I can pull out from my build is this beta version
> > <http://mirrors.ibiblio.org/pub/mirrors/maven2/org/codehaus/mojo/jxr-
> maven-p
> > lugin/>
> >
> > I am trying to use the latest version of the jxr because the version I
> am
> > able to use this 2.0-beta-1 does not properly aggregate multiple
> projects.
> >
> > TIA,
> > Best regards,
> > Giovanni
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Dennis Lundberg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



conflicts resolution and use of md5sum

2008-05-25 Thread Giovanni Azua
Hi,

I have tried researching these questions but I did not find any
authoritative answer:

1) If via transitive dependency resolution there is a conflict found i.e.
two dependencies use different versions of a fourth library, how does maven
resolves this? This is a.k.a. diamond problem:

"My Project"
|  |-> A ---> C (version 1.0)
|
|> B ---> C (version 1.1)

If both C versions are pulled there will be runtime unpredictable behavior.

2) If the point 1) is checked by Maven, how is it done? Using only version
numbers or md5sum? Is it possible enforcing the use of md5sum for this
purpose?

If you know where these questions are answered, pointing me to the location
will be most welcome!

TIA,
Best regards,
Giovanni




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: conflicts resolution and use of md5sum

2008-05-25 Thread Giovanni Azua
Hi Simon,

Many thanks to you all for the replies!

The issue here is reliability and reproducibility of the builds. 

1) Locking down versions is needed for reproducibility of the builds. If
maven decides silently for you what the resolution of conflicts is going to
be, most likely you will end up with a runtime time bomb just waiting to
blow. Very likely one of the two dependencies (A or B) will fail with
whatever the C selected version C is. IMO the most sensitive thing to do in
this scenario would be to have maven breaking the build explaining the
conflict and letting the user fix the dependencies. If maven silently
decides, the only provision developers have against runtime troubles is
having high test coverage in place, assuming high test coverage is usually
wishful thinking.

2) Using md5sum is a safer way to ensure that the same specific release is
being pulled e.g. an scenario like the one explained in the OP. Using md5sum
also favors reproducibility, and it is specially useful in places where the
same release version of a component is re-released several times (I work in
one of those places) whereas in maven it implies you diligently provide a
new different version each time. AFAIK there is nothing in Maven that
prevents from re-releasing the same version number/label several times,
therefore it is a Pandora Box against reproducibility of builds.

Many thanks!

Best regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ANN] Maven Site Plugin 2.0-beta-7 Released

2008-07-13 Thread Giovanni Azua
hi,

I had been following this thread because the MSITE-274 is not working for me
yet.

I have of course checked that the plugin is defined within the build section
and have tried several things but none work. I still get MSITE-274.

During the build, the previous 2.0-beta-6 is still pulled, below the
relevant logs:

[INFO] [site:site]
[WARNING] Error loading report org.codehaus.mojo.surefire.SurefireReportMojo
- AbstractMethodError: canGenerateReport() [INFO] Skipped "About" report,
file "index.html" already exists for the English version.
[INFO] Skipped "Test JavaDocs" report, file "testapidocs/index.html" already
exists for the English version.
[INFO] Skipped "JavaDocs" report, file "apidocs/index.html" already exists
for the English version.
[INFO] Generating "Project Team" report.
[INFO] Generating "Dependencies" report.
[INFO] Generating "Continuous Integration" report.
[INFO] Generating "PMD Report" report.
[INFO] Generating "Source Repository" report.
[INFO] Generating "Plugin Management" report.
Downloading:
http://snapshots.repository.codehaus.org//org/apache/maven/plugins/maven-sit
e-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom
Downloading:
http://people.apache.org/repo/m2-snapshot-repository//org/apache/maven/plugi
ns/maven-site-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom
Downloading:
http://repo1.maven.org/repo/maven2//org/apache/maven/plugins/maven-site-plug
in/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom
Downloading:
http://www.ibiblio.net/pub/packages/maven2/org/apache/maven/plugins/maven-si
te-plugin/2.0-beta-6/maven-site-plugin-2.0-beta-6.pom
10K downloaded
[INFO] Generating "Mailing Lists" report.
[INFO] Generating "Changes Report" report.
[INFO] Generating "Test JavaDocs" report.

The relevant files are:
http://perfectjpattern.svn.sourceforge.net/viewvc/perfectjpattern/trunk/buil
d.sh?view=markup
http://perfectjpattern.svn.sourceforge.net/viewvc/perfectjpattern/trunk/pom.
xml?view=markup

TIA,
Regards,
Giovanni
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ANN] Maven Site Plugin 2.0-beta-7 Released

2008-07-14 Thread Giovanni Azua
Hi Dennis,

I did that and now all occurrences of site-plugin when running
help:effective show 2.0-beta-7, MSITE-274 fix still does not work for me
though :( 

TIA,
Regards,
Giovanni

> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 13, 2008 11:33 PM
> To: Maven Users List
> Subject: Re: [ANN] Maven Site Plugin 2.0-beta-7 Released
> 
> Then you need to override this by putting 2.0-beta-7 under the
> pluginManagement section in *your* POM.
> 
> Giovanni Azua wrote:
> > Hi Dennis,
> >
> > Many thanks! Yes the mvn help:effective-pom shows it is picking up the
> > 2.0-beta-6 under pluginManagement section ...
> >
> > Below are the results.
> >
> > TIA,
> > Regards,
> > Giovanni
> >
> > PS:
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [ANN] Maven Site Plugin 2.0-beta-7 Released

2008-08-24 Thread Giovanni Azua

hi Dennis,

I have been still struggling with issue MSITE-274 for quite a while. I just
found out that it is not directly related to a possible fix in 2.0-beta-7
(at least not only) but instead to the doxia plugin i.e. doxia version
1.0-alpha-10 has the problem and it is fixed in 1.0-alpha-11 at least that's
what I found in JIRA: http://jira.codehaus.org/browse/DOXIA-189

Even when I delete the full local repo I still get doxia 1.0-alpha-10 pulled
on top of the 1.0-alpha-11. Before, my poms did not reference doxia but now
I am explicitly including the plugin in my pom to the fixed version alpha
11, building it now ...

The full project having the problem:
http://perfectjpattern.svn.sourceforge.net/svnroot/perfectjpattern/trunk


Thanks in advance,
Best regards,
Giovanni

> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 15, 2008 12:37 PM
> To: Maven Users List
> Subject: Re: [ANN] Maven Site Plugin 2.0-beta-7 Released
> 
> The only thing else I can think of is that your local repo somehow got
> messed up. You could try removing the directories org/apache/maven/doxia
> and org/apache/maven/plugins/maven-site-plugin from your local repo. The
> needed artifacts will be downloaded again from the central repository.
> 
> If that doesn't work, please create a small test-project and attach it
> to MSITE-274.
> 
> Giovanni Azua wrote:
> > Hi Dennis,
> >
> > I did that and now all occurrences of site-plugin when running
> > help:effective show 2.0-beta-7, MSITE-274 fix still does not work for me
> > though :(
> >
> > TIA,
> > Regards,
> > Giovanni
> >
> >> -Original Message-
> >> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> >> Sent: Sunday, July 13, 2008 11:33 PM
> >> To: Maven Users List
> >> Subject: Re: [ANN] Maven Site Plugin 2.0-beta-7 Released
> >>
> >> Then you need to override this by putting 2.0-beta-7 under the
> >> pluginManagement section in *your* POM.
> >>
> >> Giovanni Azua wrote:
> >>> Hi Dennis,
> >>>
> >>> Many thanks! Yes the mvn help:effective-pom shows it is picking up the
> >>> 2.0-beta-6 under pluginManagement section ...
> >>>
> >>> Below are the results.
> >>>
> >>> TIA,
> >>> Regards,
> >>> Giovanni
> >>>
> >>> PS:
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Dennis Lundberg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



dependency tree but for build/reporting plugins

2008-08-24 Thread Giovanni Azua
hi,

The command "mvn dependency:tree" gives me an overview of all dependencies
for my project. I would like to see the same but for the referenced maven
plugins i.e. needed for build and reporting.

My problem is that upon building I get zillion of doxia versions pulled out,
and I would like to understand where they are coming from. I believe this is
the reason why I still get MSITE-274.

TIA,
Regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dependency tree but for build/reporting plugins

2008-08-27 Thread Giovanni Azua
Hi Dennis,

I swept my local repo first and then ran the build as you recommended using
the -X option.

These are all the doxia versions that end up being downloaded into my local
repo:
1.0-alpha-7
1.0-alpha-8
1.0-alpha-9
1.0-alpha-10
1.0-alpha-11

But from the build log alone I can't figure out why the e.g. 1.0-alpha-10
gets pulled. I added the build.log output file for this last build tentative
and would appreciate enormously if you could have a look at it to see why
the non 11 doxia versions get downloaded and further how to fix this:


My parent pom is under:


TIA,
Regards,
Giovanni


> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Sunday, August 24, 2008 8:17 PM
> To: Maven Users List
> Subject: Re: dependency tree but for build/reporting plugins
> 
> Run Maven with the -X command line switch to reveal all dependencies and
> how they are pulled in.
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: dependency tree but for build/reporting plugins

2008-08-28 Thread Giovanni Azua
Hi Dennis,

I tried commenting out not only the Clover plugin but all the reporting
plugins and I get a fundamentally different behavior than in your setup ...
I still get at least the doxia versions alpha 7 and 10 pulled on top of 11.

Did you use the build script? Or otherwise what exact command did you use?
What was your settings.xml? I mean the relevant snippets e.g. did you enable
Snapshot repositories?
What were your Java and Maven versions?

Many thanks in advance,
Best regards,
Giovanni
 
> -Original Message-
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2008 9:10 PM
> To: Maven Users List
> Subject: Re: dependency tree but for build/reporting plugins
> 
> When I tried you project locally I noticed that the Clover plugin pulled
> in 1.0-alpha-10. You could try commenting that out to see if it is the
> problem.
> 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



where to place Test support/reusable fixture classes?

2009-01-09 Thread Giovanni Azua
Hi,

I have a multi module project and in one of the top nodes of the dependency
tree I would like to place a Test support class i.e.

AbstractHibernateHSQLTestCase extends junit.framework.TestCase

This class provides automatic database shutdown of HSQL in memory based test
cases to prevent the creation of the inconvenient test.lck and test.log
files.

My problem is that I don't know where to place this utility class. Ideally I
would place it in the test branch of module A but then it will not be
inherited by sub-modules that depend on A say B and C. On the other hand if
I place it under the java branch of module A, then A will compile/runtime
depend on JUnit which I want to avoid at all costs.

I remember I had this same problem trying to define reusable test fixtures
classes but in the hurry I ended up duplicating the fixture classes under
each sub-module.

TIA,
Regards,
Giovanni



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



RE: where to place Test support/reusable fixture classes?

2009-01-11 Thread Giovanni Azua
Excellent! It did not occur to me creating a separate sub module :) is there
any way to mark a sub module "package private" so other modules outside some
scope won't be able to see it?

Thanks a lot Jeff!

Best regards,
Giovanni

> -Original Message-
> From: Jeff Jensen [mailto:jeffjen...@upstairstechnology.com]
> Sent: Saturday, January 10, 2009 2:41 AM
> To: 'Maven Users List'
> Subject: RE: where to place Test support/reusable fixture classes?
> 
> I suggest creating a separate project, e.g. "TestFramework", and place
> those
> types of reusable test classes in its src/main/java.  Then, the other
> projects can depend on it for the test scope.
> 
> 
> -Original Message-
> From: Giovanni Azua [mailto:brave...@swissonline.ch]
> Sent: Friday, January 09, 2009 1:15 PM
> To: 'Maven Users List'
> Subject: where to place Test support/reusable fixture classes?
> 
> Hi,
> 
> I have a multi module project and in one of the top nodes of the
> dependency
> tree I would like to place a Test support class i.e.
> 
> AbstractHibernateHSQLTestCase extends junit.framework.TestCase
> 
> This class provides automatic database shutdown of HSQL in memory based
> test
> cases to prevent the creation of the inconvenient test.lck and test.log
> files.
> 
> My problem is that I don't know where to place this utility class. Ideally
> I
> would place it in the test branch of module A but then it will not be
> inherited by sub-modules that depend on A say B and C. On the other hand
> if
> I place it under the java branch of module A, then A will compile/runtime
> depend on JUnit which I want to avoid at all costs.
> 
> I remember I had this same problem trying to define reusable test fixtures
> classes but in the hurry I ended up duplicating the fixture classes under
> each sub-module.
> 
> TIA,
> Regards,
> Giovanni
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org




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



statscm multi-module issue

2009-01-11 Thread Giovanni Azua
Hi,

I am using statscm and seems that after upgrading to 2.0.9 or maybe some
update its reports started to be broken. I then discovered that some of its
output was being copied onto folders outside the project layout i.e.

# parent pom
/home/me/projects/a/trunk/pom.xml 

# sub-modules
/home/me/projects/a/trunk/a-1/pom.xml
/home/me/projects/a/trunk/a-2/pom.xml
/home/me/projects/a/trunk/a-3/pom.xml

statscm outputs the per module reports for e.g. a-1 in:

# this is wrong and don't know how to fix
/home/me/projects/a/target/site/statscm/a-1/

# some of the files are still created in the proper place
/home/me/projects/a/trunk/target/site/statscm/a-1/

So I am trying to manually fix this with something like:

find ../target -name "statscm" | awk -F/ '{print "mv -f
"$1"/"$2"/"$3"/"$4"/"$5"/* ./target/"$3"/"$4"/"$5"/" }'

TIA,
regards,
Giovanni



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



code snippets in documentation

2009-02-16 Thread Giovanni Azua
Hi,

I wonder if there is a better code snippet solution than the Maven snippet
macro. I was thinking along the lines of java2html with coloring etc and
maybe linking to the source xrefs.

TIA,
Regards,
Giovanni



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



recurrent exception

2009-02-16 Thread Giovanni Azua
Hi,

I have lately seen this exception below recurrently popping out in my build.
Any clues?

TIA,
Regards,
Giovanni

[ERROR] DashboardUtils getDocument() SAXException:
org.xml.sax.SAXParseException: Premature end of file.
at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:23
9)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBu
ilderImpl.java:283)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDocument(DashBoa
rdUtils.java:886)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getTaglistReport(Da
shBoardUtils.java:834)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardUtils.getDashBoardMavenPr
oject(DashBoardUtils.java:308)
at
org.codehaus.mojo.dashboard.report.plugin.DashBoardReportMojo.executeReport(
DashBoardReportMojo.java:280)
at
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.
java:98)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo
cumentRenderer.java:139)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default
SiteRenderer.java:269)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe
nderer.java:101)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)



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



jxr does not create cross links in multi-module project

2009-02-16 Thread Giovanni Azua
Hi,

My build pulls jxr 2.1. Although I set the aggregate parameter to true, I
still don't get linked cross module references say e.g.

Module A
Interface X

Module B (depends on A)
Class Y implements X

In the aggregate reports Class Y will not link to X.

Is this a known issue?

TIA,
Best regards,
Giovanni



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




RE: recurrent exception

2009-02-17 Thread Giovanni Azua

Wow awesome :) and embarrassing too :)

> -Original Message-
> From: Brian E. Fox [mailto:bri...@reply.infinity.nu]
> Sent: Monday, February 16, 2009 11:23 PM
> To: Maven Users List
> Subject: RE: recurrent exception
> 
> Haha, I think that's Brett's form of:
> 
> http://lmgtfy.com/?q=DashboardUtils+getDocument()+SAXException
> 




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



user friendly assemblies

2009-02-17 Thread Giovanni Azua
Hi,

What would be the optimal download distribution of assembled deliveries in a
multi-module project e.g.

Sub-module A
Sub-module A
Sub-module A
Sub-module A Sub-module A



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



RE: user friendly assemblies

2009-02-17 Thread Giovanni Azua
Sorry pressed the send button by mistake.

Hi,

What would be the optimal download distribution of assembled deliveries in a
multi-module project e.g.

Sub-module A
Sub-module B depends on A
Sub-module C depends on B
Sub-module D depends on C
etc

distribute for download all jars by themselves or/and
distribute for download cumulative assemblies e.g. distribute C including B
and A or
distribute for download separate assemblies e.g. distribute C without its
dependencies

on top of this have separation between binaries and sources ... I would like
to go for the less confusing for users.

TIA,
Regards,
Giovanni




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



JXR plugin in multi-module project

2009-02-21 Thread Giovanni Azua
Hi,

In my pom I set the jxr aggregate configuration to true, and it indeed
aggregate all module reports BUT it does not cross link them e.g.

Sub-module A contains class X

Sub-module B contains class Y that extends A

class Y xref html won't link to X. I can provide an example project.

My build pulls the latest version of maven-jxr-plugin 2.1

TIA,
Regards,
Giovanni





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



RE: JXR plugin in multi-module project

2009-02-21 Thread Giovanni Azua
Opps I forgot I bumped into this before and even opened a ticket for it
http://jira.codehaus.org/browse/JXR-69

Sorry!

> -Original Message-
> From: Giovanni Azua [mailto:brave...@swissonline.ch]
> Sent: Saturday, February 21, 2009 4:18 PM
> To: 'Maven Users List'
> Subject: JXR plugin in multi-module project
> 
> Hi,
> 
> In my pom I set the jxr aggregate configuration to true, and it indeed
> aggregate all module reports BUT it does not cross link them e.g.
> 
> Sub-module A contains class X
> 
> Sub-module B contains class Y that extends A
> 
> class Y xref html won't link to X. I can provide an example project.
> 
> My build pulls the latest version of maven-jxr-plugin 2.1
> 
> TIA,
> Regards,
> Giovanni
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org




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



including non-java files in the xref report?

2009-03-17 Thread Giovanni Azua
hi,

Is there any way to have resource files e.g. persistence.xml,
hibernate.cfg.xml output as html so that they can be browse online or in
other words included e.g. in the xref report?

My use-case is to let the users browse not only example java source files
but also the configuration resource files that support those examples.

Is this possible without having to point to markup view of subversion?

TIA,
Regards,
Giovanni



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



tricky cyclic dependency issue

2009-03-25 Thread Giovanni Azua

hi,

I have the following setup:

ProjectX-API: pure abstract layer (depends on TestCommon at test scope)

ProjectX-Core: main implementations (depends on API and also on TestCommon 
at test scope)

ProjectX-TestCommon: offers common testing facilities to all ProjectX 
sub-modules, but also to clients of ProjectX and it also acts as single 
entry point for all test-scoped dependencies e.g. JUnit 4.x

Now the problem is that while I need TestCommon for implementing the test 
suites in API and Core modules, TestCommon needs to depend on API and 
eventually on the Core module too.

e.g.

ProjectX-TestCommon defines a reusable AbstractTestSingleton to test 
Singleton types. ProjectX-API defines the ISingleton abstraction and also 
defines some concrete Singleton instances.

AbstractTestSingleton that resides in ProjectX-TestCommon needs to depend on 
ProjectX-API and JUnit 4.x at the same time.

Possibilities:

- Moving AbstractTestSingleton to ProjectX-API is not possible because 
ProjectX-API should not depend on anything else, especially not on JUnit 4.x 
that AbstractTestSingleton requires (it extends TestCase)

- Having module ProjectX-TestCommon depend on ProjectX-API does not work 
because ProjectX-API already depends on ProjectX-TestCommon (to test the 
concrete Singletons and more) and Maven reports a cyclic dependency. I tried 
many alternatives e.g. exclusion (excluding ProjectX-API when ProjectX-API 
declares dependency on ProjectX-TestCommon), changing scope to provided, 
etc.

Any other ideas how to resolve this?

TIA,
Best regards,
Giovanni 
-- 
View this message in context: 
http://www.nabble.com/tricky-cyclic-dependency-issue-tp22700195p22700195.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



tricky cyclic dependency issue ...

2009-03-25 Thread Giovanni Azua

hi,

I have the following setup:

ProjectX-API: pure abstract layer (depends on TestCommon at test scope)

ProjectX-Core: main implementations (depends on API and also on TestCommon 
at test scope)


ProjectX-TestCommon: offers common testing facilities to all ProjectX 
sub-modules, but also to clients of ProjectX and it also acts as single 
entry point for all test-scoped dependencies e.g. JUnit 4.x


Now the problem is that while I need TestCommon for implementing the test 
suites in API and Core modules, TestCommon needs to depend on API and 
eventually on the Core module too.


e.g.

ProjectX-TestCommon defines a reusable AbstractTestSingleton to test 
Singleton types. ProjectX-API defines the ISingleton abstraction and also 
defines some concrete Singleton instances.


AbstractTestSingleton that resides in ProjectX-TestCommon needs to depend on 
ProjectX-API and JUnit 4.x at the same time.


Possibilities:

- Moving AbstractTestSingleton to ProjectX-API is not possible because 
ProjectX-API should not depend on anything else, especially not on JUnit 4.x 
that AbstractTestSingleton requires (it extends TestCase)


- Having module ProjectX-TestCommon depend on ProjectX-API does not work 
because ProjectX-API already depends on ProjectX-TestCommon (to test the 
concrete Singletons and more) and Maven reports a cyclic dependency. I tried 
many alternatives e.g. exclusion (excluding ProjectX-API when ProjectX-API 
declares dependency on ProjectX-TestCommon), changing scope to provided, 
etc.


Any other ideas how to resolve this?

TIA,
Best regards,
Giovanni 



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



tricky cyclic dependency issue ...

2009-03-25 Thread Giovanni Azua
hi,

I have the following setup:

ProjectX-API: pure abstract layer (depends on TestCommon)
ProjectX-Core: main implementations (depends on API and transitively on
TestCommon)

ProjectX-TestCommon: offers common testing facilities to all ProjectX
sub-modules, but also to clients of ProjectX and it also acts as single
entry point for all test-scoped dependencies e.g. JUnit 4.x

Now the problem is that while I need TestCommon for implementing the test
suites in API and Core modules, TestCommon needs to depend on API and
eventually on the Core module too.

e.g. 

ProjectX-TestCommon defines a reusable AbstractTestSingleton to test
Singleton types. ProjectX-API defines the ISingleton abstraction and also
defines some concrete Singleton instances.

AbstractTestSingleton that resides in ProjectX-TestCommon needs to depend on
ProjectX-API and JUnit 4.x at the same time. 

Possibilities:

- Moving AbstractTestSingleton to ProjectX-API is not possible because
ProjectX-API should not depend on anything else, especially not on JUnit 4.x
that AbstractTestSingleton requires (it extends TestCase)

- Having module ProjectX-TestCommon depend on ProjectX-API does not work
because ProjectX-API already depends on ProjectX-TestCommon (to test the
concrete Singletons and more) and Maven reports a cyclic dependency. I tried
many alternatives e.g. exclusion (excluding ProjectX-API when ProjectX-API
declares dependency on ProjectX-TestCommon), changing scope to provided,
etc.

Any other ideas how to resolve this?

TIA,
Best regards,
Giovanni



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



tricky cyclic dependency issue ...

2009-03-25 Thread Giovanni Azua
hi,

I have the following setup:

ProjectX-API: pure abstract layer (depends on TestCommon at test scope)
ProjectX-Core: main implementations (depends on API and also on TestCommon
at test scope)

ProjectX-TestCommon: offers common testing facilities to all ProjectX
sub-modules, but also to clients of ProjectX and it also acts as single
entry point for all test-scoped dependencies e.g. JUnit 4.x

Now the problem is that while I need TestCommon for implementing the test
suites in API and Core modules, TestCommon needs to depend on API and
eventually on the Core module too.

e.g. 

ProjectX-TestCommon defines a reusable AbstractTestSingleton to test
Singleton types. ProjectX-API defines the ISingleton abstraction and also
defines some concrete Singleton instances.

AbstractTestSingleton that resides in ProjectX-TestCommon needs to depend on
ProjectX-API and JUnit 4.x at the same time. 

Possibilities:

- Moving AbstractTestSingleton to ProjectX-API is not possible because
ProjectX-API should not depend on anything else, especially not on JUnit 4.x
that AbstractTestSingleton requires (it extends TestCase)

- Having module ProjectX-TestCommon depend on ProjectX-API does not work
because ProjectX-API already depends on ProjectX-TestCommon (to test the
concrete Singletons and more) and Maven reports a cyclic dependency. I tried
many alternatives e.g. exclusion (excluding ProjectX-API when ProjectX-API
declares dependency on ProjectX-TestCommon), changing scope to provided,
etc.

Any other ideas how to resolve this?

TIA,
Best regards,
Giovanni



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



maven-javadoc-plugin question

2010-04-05 Thread Giovanni Azua
hello,

I have a multi-module project and during build I continuously get the following 
output:
[INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' 
has not be previously called for the project: xxx

and so it lists each sub-module over and over again and re-executes the javadoc 
plugin for the same sub-module many times.

Any ideas what's wrong?

TIA,
Best regards,
Giovanni
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven-javadoc-plugin question

2010-04-05 Thread Giovanni Azua
Hello Raphael,

Thank you! It is ok now.

Best regards,
Giovanni 

On Apr 5, 2010, at 2:46 PM, Raphael Ackermann wrote:

> I guess you are not specifying the reports it should run. By default
> it also runs the aggregate goal which will loop over all the modules.
> See [1] for info how to only run selected reports.
> 
> e.g. only use
> 
>  
>default
>
>  
>  ...
>
>
>  javadoc
>  test-javadoc
>
>  
> 
> 
> and not aggregate
> 
> [1] 
> http://maven.apache.org/plugins/maven-javadoc-plugin/examples/selective-javadocs-report.html
> 
> Raphael
> 
> On Mon, Apr 5, 2010 at 13:14, Giovanni Azua  wrote:
>> hello,
>> 
>> I have a multi-module project and during build I continuously get the 
>> following output:
>> [INFO] The goal 
>> 'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:javadoc' has not be 
>> previously called for the project: xxx
>> 
>> and so it lists each sub-module over and over again and re-executes the 
>> javadoc plugin for the same sub-module many times.
>> 
>> Any ideas what's wrong?
>> 
>> TIA,
>> Best regards,
>> Giovanni
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 


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



embedding Nabble forum

2010-04-05 Thread Giovanni Azua
Hello,

I would like to embed Nabble forum in the project site. The only show-stopper 
is that site plugin removes or ignore any 

simple branching won't work

2011-03-21 Thread Giovanni Azua
Hello,

I followed the instructions here:
http://maven.apache.org/guides/mini/guide-releasing.html

So my input pom.xml looks like shown below.

Executing: mvn release:branch -DbranchName=4.0
gets me to the FAILED ouput also shown below.

Why is it always trying to create a "branches" folder when the pom.xml clearly 
says tags !?

Why is it not building the war and putting it into the local repo?

I have spent two days on this ... every other online documentation would have a 
completely different idea on how SCM should be configured ...

Can anyone please advice.

TIA,
regards,
Giovanni

**
pom.xml
**
http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  webengineering
  facebookapp
  war
  4.0-SNAPSHOT
  facebookapp Maven Webapp
  http://maven.apache.org
  

  junit
  junit
  3.8.1
  test


  com.restfb
  restfb
  1.6.2


  org.apache.geronimo.specs
  geronimo-servlet_2.5_spec
  1.2

  
  2011
  

  GNU Lesser General Public License
  COPYING.LESSER


  GNU General Public License
  COPYING

  
  

scm:svn:https://svn.vis.ethz.ch/svn/webengineering/trunk
  

scm:svn:file:///Users/bravegag/code/webengineering/trunk
http://svn.vis.ethz.ch/svn/webengineering/trunk
  
  
facebookapp

  
maven-release-plugin

  file:///Users/bravegag/code/webengineering/tags


   
  
org.mortbay.jetty
jetty-maven-plugin
  
  
org.apache.maven.plugins
maven-eclipse-plugin
true

  1.5
  
  
org.eclipse.jdt.launching.JRE_CONTAINER
  
org.eclipse.jdt.USER_LIBRARY/TOMCAT_7.0.8_LIBRARY
  



  



**
OUTPUT
**
/Users/bravegag/code/webengineering/trunk$ mvn release:branch -DbranchName=4.0
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for 
webengineering:facebookapp:war:4.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for 
org.mortbay.jetty:jetty-maven-plugin is missing. @ line 85, column 15
[WARNING] 'build.plugins.plugin.version' for 
org.apache.maven.plugins:maven-eclipse-plugin is missing. @ line 89, column 15
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten 
the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support 
building such malformed projects.
[WARNING] 
[INFO] 
[INFO] 
[INFO] Building facebookapp Maven Webapp 4.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-release-plugin:2.0:branch (default-cli) @ facebookapp ---
[INFO] Verifying that there are no local modifications...
[INFO] Executing: /bin/sh -c cd /Users/bravegag/code/webengineering/trunk && 
svn --non-interactive status
[INFO] Working directory: /Users/bravegag/code/webengineering/trunk
What is the new working copy version for "facebookapp Maven Webapp"? 
(webengineering:facebookapp) 4.1-SNAPSHOT: : 5.0
[INFO] Transforming 'facebookapp Maven Webapp'...
[INFO] Checking in modified POMs...
[INFO] Executing: /bin/sh -c cd /Users/bravegag/code/webengineering/trunk && 
svn --non-interactive commit --file 
/var/folders/5m/5mC0wYCSGMK8NbPZYhBEZE+++TI/-Tmp-/maven-scm-1430166965.commit 
--targets 
/var/folders/5m/5mC0wYCSGMK8NbPZYhBEZE+++TI/-Tmp-/maven-scm-7017833639063773562-targets
[INFO] Working directory: /Users/bravegag/code/webengineering/trunk
[INFO] Branching release with the label 4.0...
[INFO] Executing: /bin/sh -c cd /Users/bravegag/code/webengineering/trunk && 
svn --non-interactive copy --file 
/var/folders/5m/5mC0wYCSGMK8NbPZYhBEZE+++TI/-Tmp-/maven-scm-861040143.commit 
--revision 0 file:///Users/bravegag/code/webengineering/branches/4.0 
file:///Users/bravegag/code/webengineering/branches/4.0
[INFO] Working directory: /Users/bravegag/code/webengineering/trunk
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 4.720s
[INFO] Finished at: Tue Mar 22 00:31:44 CET 2011
[INFO] Final Memory: 5M/528M
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-

Maven site plugin "Doxia" issue ..

2007-07-12 Thread Giovanni Azua
Hi all,

I have spent quite a bit trying to have doxia installed and running.

Basically I need couple of features only available with doxia:

1-. Ability to customize my index.html to something like e.g. maven 2 
site does using the index.xml.vm velocity template.

2-. Use the snippet macro during site generation.

The problem is that I am not able to get the doxia snapshot anywhere ...

Any examples of a working setup?

I have in my pom.xml the settings bellow but I get all kind of errors
Like e.g. mismatch of site plugin version with doxia version, missing 
plugin version etc etc.

TIA,
Regards,
Giovanni



org.apache.maven.plugins
maven-site-plugin
2.0-SNAPSHOT


org.apache.velocity.site

velocity-site-doxia-renderer
1.2-SNAPSHOT




org.apache.velocity.site
velocity-site-doxia-renderer
1.0-SNAPSHOT







pre-site






  
Codehaus Snapshots
http://snapshots.repository.codehaus.org/
   
   
 Apache Snapshot Repository
 http://people.apache.org/repo/m2-snapshot-repository/
   




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Broken build when using doxia ...

2007-07-14 Thread Giovanni Azua
Hi all,

After successfully manually installing site doxia plugin 1.2.0-SNAPSHOT
downloaded from svn 
and following the instructions to have the plugin installed:

http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index.htm
l

I get the broken build stack traces bellow. The first one is with "Apache
Snapshot Repository"
pluginRepository disabled. The second one is with "Apache Snapshot
Repository" pluginRepository 
enabled.

TIA,
Regards,
Giovanni

DISABLING "Apache Snapshot Repository" like this:


  
Codehaus Snapshots
http://snapshots.repository.codehaus.org/
   
   


[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te': Unable to find the mojo
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te' in the plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
org/apache/velocity/context/Context
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te': Unable to find the mojo
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te' in the plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:543)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginManagerException: Unable to find
the mojo
'org.apache.velocity.site:velocity-site-doxia-renderer:1.2.0-SNAPSHOT:pre-si
te' in the plugin 'org.apache.velocity.site:velocity-site-doxia-renderer'
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPlugin
Manager.java:571)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:421)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.velocity.site:velocity-site-doxia-re
nderer:1.2.0-SNAPSHOT:pre-site', it could not be started
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:339)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:440)
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPlugin
Manager.java:562)
... 18 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleExcepti
on: Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponen
tLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCompone
ntInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent
(PerLookupComponentManager.java:48)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.jav
a:331)
... 20 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionExcepti
on: Error composing compon

RE: Broken build when using doxia ...

2007-07-15 Thread Giovanni Azua
Hi all,

Finally managed to have my site generated using site plugin integrated with 
doxia 1.0-alpha-9-SNAPSHOT version. It works LIKE A DREAM :))) both
providing 
xdoc/xxx.xml.vm templates like in Maven 2 site index.xml.vm and xdoc snippet

macro using the following notation:



For the records:

1-. Checked out everything under http://svn.apache.org/repos/asf/maven/
2-. Built $MAVEN_SVN_HOME/doxia/doxia/trunk using "mvn clean install -e"
3-. Manually installed doxia-core jar and each of the doxia modules listed
bellow e.g.

C:\Projects\maven\doxia\doxia\trunk>mvn install:install-file
-Dfile=C:\Projects\maven\doxia\doxia\trunk\doxia-modules\doxia-module-conflu
ence\target\doxia-module-confluence-1.0-alpha-9-SNAPSHOT.jar
-DgroupId=org.apache.maven.doxia -DartifactId=doxia-module-confluence
-Dversion=1.0-alpha-9-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Doxia
[INFO]   Doxia :: Sink API
[INFO]   Doxia :: Core
[INFO]   Doxia :: Modules
[INFO]   Doxia :: Confluence Module
[INFO]   Doxia :: Docbook Simple Module
[INFO]   Doxia :: TWiki Module
[INFO]   Doxia :: XDoc Module
[INFO]   Doxia :: APT Module
[INFO]   Doxia :: iText Module
[INFO]   Doxia :: FML Module
[INFO]   Doxia :: Latex Module
[INFO]   Doxia :: RTF Module
[INFO]   Doxia :: XHTML Module
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO]
-
---
[INFO] Building Doxia
[INFO]task-segment: [install:install-file] (aggregator-style)
[INFO]
-
---
[INFO] [install:install-file]
[INFO] Installing
C:\Projects\maven\doxia\doxia\trunk\doxia-modules\doxia-module-confluence\ta
rget\doxia-moduleconfluence-1.0alpha-9-SNAPSHOT.jar to C:\Documents and
Settings\Giovanni Azua
Garcia\.m2\repository\org\apache\mave\doxia\doxia-module-confluence\1.0-alph
a-9-SNAPSHOT\doxia-module-confluence-1.0-alpha-9-SNAPSHOT.jar
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Sun Jul 15 15:46:30 CEST 2007
[INFO] Final Memory: 3M/9M
[INFO]


4-. Configured my pom.xml like this:


  ...
  

org.apache.maven.plugins
maven-site-plugin
2.0-SNAPSHOT


org.apache.velocity.site

velocity-site-doxia-renderer
1.2.0-SNAPSHOT




org.apache.velocity.site
velocity-site-doxia-renderer






  


Please note that default version of maven-site-plugin will not work, you do
need 2.0-SNAPSHOT installed. Also note that the example shown in
http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index.htm
l execution goals "pre-site" does not exist in this setup so you have to get
rid of the invokation. 

After doing all this my site builds beautifully.

It was kind of disapointing though that the snippet macro generates the
snippets in black and white rather than colored format like in e.g. xref or
how java2html does it. When you include non-trivial code examples in your
site it is difficult to read and follow using such black and white
formatting. Instead of the snippet macro I will switch to use velocity and
xref e.g. xdoc/dp-observer.xml.vm including html generated from xref,
although it is not an elegant solution will do the job until snippet gets
some color formatting? :))

regards,
Giovanni

>-Original Message-
>From: Giovanni Azua [mailto:[EMAIL PROTECTED] 
>Sent: Saturday, July 14, 2007 4:58 PM
>To: 'Maven Users List'
>Subject: Broken build when using doxia ...
>
>Hi all,
>
>After successfully manually installing site doxia plugin 1.2.0-SNAPSHOT
downloaded from svn and following the instructions to >have the plugin
installed:
>
>http://velocity.apache.org/site/tools/velocity-site-doxia-renderer/index.ht
ml
>
>I get the broken build stack traces bellow. The first one is with "Apache
Snapshot Repository"
>pluginRepository disabled. The second one is with "Apache Snapshot
Repository" pluginRepository enabled.
>
>TIA,
>Regards,
>Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Build date variable i.e. ${builtOn} ${date} ${timestamp} ?

2007-08-13 Thread Giovanni Azua
Hi all,

I need accessing a variable that would give me the timestamp of the current
build, is there any? I have tried with all those above and none work (Maven
2.0.7).

Any pointers to documentation of all available variables would be nice ...

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multi project reports ...

2007-08-13 Thread Giovanni Azua
Hi all,

I have a pom (packaging type) project that has many subprojects
(inheritance) it is nice because each subproject can separately manage their
dependencies etc. In the parent project I include the major reporting plugin
settings etc. 

The problem is that since the parent project does not have any sources, I
only get fewer reports. On the other hand each subproject gets generated its
own reporting page independently, I expected somehow they would be combined
into the parent project ...

I wanted to get something like what displaytag does see:
http://displaytag.sourceforge.net/11/

Where all subprojects are shown at the same level as the parent project. I
tried copying what they do but seems not to work in the latest version of
maven? I don't get the site output of my subprojects copied into my parent
project's target site subdirectory besides the subprojects keep generating
the site with the default settings rather than using the theme defined in
the site.css of the parent project.

TIA,
Regards,
Giovanni



  
maven-antrun-plugin

  
site

  run


  

  


  


  
  


  
  

  

  

  
  ...





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven plugin for ckjm ...

2007-08-15 Thread Giovanni Azua
Hi all,

Any existing plugin around ckjm?

http://www.spinellis.gr/sw/ckjm/

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: maven plugin for ckjm ...

2007-08-15 Thread Giovanni Azua
ckjm and Jdepend have overlapping only couple of same metrics e.g. AC but
Jdepend 
misses the most important ones e.g. WMC, RFC and LCOM.

>-Original Message-
>From: Mick Knutson [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, August 15, 2007 8:40 PM
>To: Maven Users List
>Subject: Re: maven plugin for ckjm ...
>
>this sounds like JDepend and there is a plugin for that
>
>On 8/15/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>> Any existing plugin around ckjm?
>>
>> http://www.spinellis.gr/sw/ckjm/
>>
>> regards,
>> Giovanni
>>
>>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: maven plugin for ckjm ...

2007-08-16 Thread Giovanni Azua
Wow cool! That was fast :) so we would get xml but no html or?

Many many thanks! Good job!

Regards,
Giovanni 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 5:23 AM
To: Maven Users List
Subject: Re: maven plugin for ckjm ...

I got bored and wrote the plugin tonight... ;-)

For now, it simply outputs a ckjm.xml file (or plain text file) in ./target.
If you want to do the full "run ckjm, then make a report with it and add it
to the site" then you will really need to handle that bit yourself. At
least, if you want that report in any reasonable time period...

For now, I'll propose this plugin at Codehaus (Mojo project) and, assuming
its accepted, you'll see it in the sandbox shortly. I also built a test
project so you can see it working.

Wayne

On 8/15/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
> If you want to get ckjm functionality in Maven, I'd encourage you to 
> look into creating the plugin yourself. Its really not that tough in 
> general.
>
> Wayne
>
> On 8/15/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> > ckjm and Jdepend have overlapping only couple of same metrics e.g. 
> > AC but Jdepend misses the most important ones e.g. WMC, RFC and 
> > LCOM.
> >
> > >-Original Message-
> > >From: Mick Knutson [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, August 15, 2007 8:40 PM
> > >To: Maven Users List
> > >Subject: Re: maven plugin for ckjm ...
> > >
> > >this sounds like JDepend and there is a plugin for that
> > >
> > >On 8/15/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Hi all,
> > >>
> > >> Any existing plugin around ckjm?
> > >>
> > >> http://www.spinellis.gr/sw/ckjm/
> > >>
> > >> regards,
> > >> Giovanni
> > >>
> > >>
> >
> >
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



running ant script after reporting completes ...

2007-08-18 Thread Giovanni Azua
Hi all,

I would like to run some ant at completion of the maven build process or at
least at completion of the reporting. The problem is that I have a
multi-module project, and the xref reporting leaves the xref folder in each
submodule rather than copying it to the main project pom type.

TIA,
regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: running ant script after reporting completes ...

2007-08-19 Thread Giovanni Azua
Hi Wendy,

Adding the aggregate configuration makes no difference, anyway I would like
to have the sources xref generated per submodule rather than one for all
modules. I have the following structure:


perfectjpattern/trunk/
- pom.xml
- perfectjpattern-api
--- pom.xml
--- src..
- perfectjpattern-core
--- pom.xml
--- src...

Parent pom.xml looks like:


 ...
 
  
   org.codehaus.mojo
   jxr-maven-plugin
   
true
   
  
 
 ...


In every submodule pom.xml I included the following:


 ../target/site/${artifactId}


This setup provides the expected final result of having all site reports
generated under the parent target directory and with correct links (requires
some extra changes in all site.xml) except for xref that leaves the xref
folders in the submodules.

regards,
Giovanni

> Sounds like it's not aggregating correctly.  How did you configure it?
> 
> The option does appear to exist...  if it's not working, 
> please file a bug.
> 
> http://maven.apache.org/plugins/maven-jxr-plugin/examples/aggregate.html
> 
> --
> Wendy



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HTML empty space in xdoc ...

2007-08-19 Thread Giovanni Azua
Hi all,

I would really like to add an empty space in my xdoc document i.e.  
but I get errors for this. 

Any ideas?

TIA,

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HTML empty space in xdoc ...

2007-08-19 Thread Giovanni Azua
Sorry for the lazy post :( it is late and I am very sleepy :)

When I include the empty space in one of my xdoc files I get the following
trace and the html is not generated:

[INFO] Skipped "About" report, file "index.html" already exists for the
English
version.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[ERROR] Error parsing
C:\Projects\perfectjpattern\trunk\src\site\xdoc\index.xml:
 line [-1] Error parsing the model.
org.apache.maven.doxia.parser.ParseException: Error parsing the model.
at
org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:5
5)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:52)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocumen
t(DefaultSiteRenderer.java:264)
at
org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocum
ent(DoxiaDocumentRenderer.java:43)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(
DefaultSiteRenderer.java:239)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(Defaul
tSiteRenderer.java:115)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124
)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: could
not r
esolve entity named 'nbsp' (position: END_TAG seen
...c="images/download.png" bo
rder="0" alt="" title="download"/> ... @14:98)
at
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:127
9)
at
org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
at
org.apache.maven.doxia.module.xdoc.XdocParser.parseXdoc(XdocParser.ja
va:312)
at
org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:5
1)
... 25 more
 
Regards,
Giovanni

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, August 19, 2007 11:35 PM
> To: Maven Users List
> Subject: Re: HTML empty space in xdoc ...
> 
> On 8/19/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> 
> > I would really like to add an empty space in my xdoc document i.e. 
> >   but I get errors for this.
> 
> "I get errors" isn't enough information.  Post what you tried 
> and the error you received, and someone will take a look.
> 
> --
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HTML empty space in xdoc ...

2007-08-19 Thread Giovanni Azua
lol :)))

Okay here it is the snippet:


 
 PerfectJPattern API
1.0.0-SNAPSHOT(1.8mb)
 
 
 Release Notes
 
 

Adding the space between title="download"/> and PerfectJPattern creates the
error.

Many thanks!

regards,
Giovanni

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 20, 2007 7:45 AM
> To: Maven Users List
> Subject: Re: HTML empty space in xdoc ...
> 
> On 8/19/07, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> 
> > When I include the empty space in one of my xdoc files I get the 
> > following trace and the html is not generated:
> 
> Okay, now let's see the xdoc that caused the error...
> 
> --
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



plugin to deploy to sourceforge ...

2007-08-21 Thread Giovanni Azua
Hi all,

I was researching for a plugin to deploy my build tar,zip etc into my
project's sourceforge repository, I found maven sourceforge plugin
(http://maven-plugins.sourceforge.net/maven-sourceforge-plugin/) but does
not smell to support Maven 2 see the last publication date is January 2006.

Any advice on which plugin to use for this? I basically want something
simple to run after my assembly:assembly.

TIA,

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



collapsable project reports ...

2007-08-23 Thread Giovanni Azua
Hi all,

When using the default project reports i.e. ${reports} in site.xml we get
"collapsable" the two sections "project info" and "project reports" but when
you have a multi-project and you have to manually add the  to
site.xml you do not have that possibility ... the question is how can I hack
it in? is there any collapsable xml attribute for the  or something
alike? 

TIA,

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



indiscriminate dependencies ...

2007-09-30 Thread Giovanni Azua
Hi all,

I get very frustrated when I would like to quickly build some project X and
I see maven downloading half internet just because one of the developers of
project X thought that some of the dependencies might be needed at some
point but not now. 

This also happens when you develop project A that depend on B but then
someday you don't depend on B anymore and you forget getting rid of the
dependency entry B in A's pom.xml

I know it is not Maven's fault. It is just that maven makes it very easy to
depend on anything. Is there any way perhaps some fancy plugin that will
prevent maven from downloading every little single dependency but only those
actually used by the project X ... kind of lazy dependency resolution, so
developers suggest but do not command what dependencies are required by the
build ...

You get the idea.

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



diff behavior switch version from SNAPSHOT to RELEASE ...

2007-10-06 Thread Giovanni Azua
Hi all,

Since I am happy with the current state of my proj I was about to release,
then renamed all version 1.0.0-SNAPSHOT ocurrences in my pom.xml files to
1.0.0

I have the parent pom and:

- module 1
- module 2 (that depends on module 1)

Now module 2 does not build anymore complaining can not find
module1-1.0.0.jar of course it hasn't build yet but how can I tell this to
maven?

is this behavior normal?

regards,
Giovanni




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: diff behavior switch version from SNAPSHOT to RELEASE ...

2007-10-06 Thread Giovanni Azua
Hi Wendy,

Many thanks for your quick reply.

Please find my comments below.

> Consider using the release plugin to handle versioning and 
> tagging for you (assuming you're using a supported scm 
> system.)  'mvn release:prepare' and then 'mvn 
> release:perform' means you don't have to change the version 
> numbers manually, among other things.
> 
This sounds great, since I have my project in sourceforge I was trying
to use the sourceforge plugin but does not seem to work with Maven 2.x
http://maven-plugins.sourceforge.net/maven-sourceforge-plugin/index.html

I will have to upload the release files manually, it sucks.

> You didn't say, but I assume you're trying to build only module 2.
> Maven is looking in the local and remote repos for module 1, and not
> finding it.   (Yes, this is normal).
> 
Nop I was building from the parent as I always do. This is why I was 
confused, to see that without the SNAPSHOT part in my versions, the 
"module 1" was not being found anymore.

Switching to having SNAPSHOT in the version works fine.

> If you build from the parent pom, Maven will "see" all the 
> modules and build the project.
> 
Again, I was building from the parent pom but had this issue.

Many thanks!

regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Looking for UML Diagram Plugin

2007-10-20 Thread Giovanni Azua
hi,

Probably you should also have a look at yDoc. It is not free but if your
project is Open Source you might get a free license from them. I saw the
graphs generated from UMLDoc and they do not look as good as yDoc does.

http://www.yworks.com/en/products_ydoc.htm

HTH,

regards,
Giovanni

PS: I use it in my project so if you need help running it from Maven 2 just
ask.

> -Original Message-
> From: Mac-Systems [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 19, 2007 4:26 PM
> To: Maven Users List
> Subject: Looking for UML Diagram Plugin
> 
> Hello,
> 
> i searched a bit the www for an UML Generator Plugin.
> Anyone can point me whats good for Maven 2 ?
> Generation should run unter Linux Maschine, as i read about 
> http://wiki.wsmoak.net/cgi-bin/wiki.pl?UMLGraph
> which seems to run only on Windows...
> 
> Thanks,
> Jens
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: report for many sub modules ...

2007-11-23 Thread Giovanni Azua
Hi Wendy,

I thought sometime ago about using the aggregate option but it is 
not really widely supported.

I could only successfully aggregate the reports for:

- Clover
- Javadoc

These are documented to support aggregation but could not get 
them to work in my multi-project (may be my mistake setting it up):

- Xref even when aggregate is set to true still generates per module.
- Checkstyle aggregate does not work either ... I get issues getting
the build-tools extension part.

Would be very useful to have aggregate support for:

- JDepend (actually only useful when aggregating of course :))
- Surefire
- PMD/CPD
- FindBugs
- StatSVN

This is as far as I am concerned :)

Many thanks for your support!

Best regards,
Giovanni

> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 23, 2007 10:06 PM
> To: Maven Users List
> Subject: Re: report for many sub modules ...
> 
> On Nov 23, 2007 1:55 PM, Giovanni Azua 
> <[EMAIL PROTECTED]> wrote:
> 
> > Is there is a simple way to make a project that has many 
> sub-projects 
> > show all reports collapsable like when the report is 
> generated for a 
> > single project e.g. displaytag below the project page limits the 
> > number of reports per sub-module but when there are many 
> sub-modules 
> > then it really becomes
> > cumbersome:
> >
> > http://displaytag.sourceforge.net/11/
> 
> Some reporting plugins know how to aggregate, and some don't. 
>  It's not something you can do at the project level.  Feel 
> free to open enhancement requests with any plugin that you'd 
> like to see aggregate its reports, if it doesn't do it.
> 
> --
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



report for many sub modules ...

2007-11-23 Thread Giovanni Azua
hi all,

Is there is a simple way to make a project that has many sub-projects show
all reports collapsable like when the report is generated for a single
project e.g. displaytag below the project page limits the number of reports
per sub-module but when there are many sub-modules then it really becomes
cumbersome:

http://displaytag.sourceforge.net/11/

TIA,
regards,
Giovanni



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: report for many sub modules ...

2007-11-23 Thread Giovanni Azua
hi,

I just realized that using the Dashboard plugin I can get rid of explicitly
pointing to these:

- PMD
- CPD
- Checkstyle
- Surefire

even though Dashboard prints for some e.g. no data available but the link to
the detailed report is there.

So ... somehow wanting you can really prune the reports and hence be able to
comfortably fit couple more of sub-modules :)

Thanks!

Best regards,
Giovanni

> -Original Message-
> From: Giovanni Azua [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 23, 2007 11:39 PM
> To: 'Maven Users List'
> Subject: RE: report for many sub modules ...
> 
> Hi Wendy,
> 
> I thought sometime ago about using the aggregate option but 
> it is not really widely supported.
> 
> I could only successfully aggregate the reports for:
> 
> - Clover
> - Javadoc
> 
> These are documented to support aggregation but could not get 
> them to work in my multi-project (may be my mistake setting it up):
> 
> - Xref even when aggregate is set to true still generates per module.
> - Checkstyle aggregate does not work either ... I get issues 
> getting the build-tools extension part.
> 
> Would be very useful to have aggregate support for:
> 
> - JDepend (actually only useful when aggregating of course :))
> - Surefire
> - PMD/CPD
> - FindBugs
> - StatSVN
> 
> This is as far as I am concerned :)
> 
> Many thanks for your support!
> 
> Best regards,
> Giovanni
> 
> > -Original Message-
> > From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 23, 2007 10:06 PM
> > To: Maven Users List
> > Subject: Re: report for many sub modules ...
> > 
> > On Nov 23, 2007 1:55 PM, Giovanni Azua <[EMAIL PROTECTED]> 
> > wrote:
> > 
> > > Is there is a simple way to make a project that has many
> > sub-projects
> > > show all reports collapsable like when the report is
> > generated for a
> > > single project e.g. displaytag below the project page limits the 
> > > number of reports per sub-module but when there are many
> > sub-modules
> > > then it really becomes
> > > cumbersome:
> > >
> > > http://displaytag.sourceforge.net/11/
> > 
> > Some reporting plugins know how to aggregate, and some don't. 
> >  It's not something you can do at the project level.  Feel free to 
> > open enhancement requests with any plugin that you'd like to see 
> > aggregate its reports, if it doesn't do it.
> > 
> > --
> > Wendy
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: errors for hibernate test cases

2007-11-30 Thread Giovanni Azua
Resolved!

I had the following entry in my pom.xml


 
src/test/resources
  
log4j.xml

 


.. therefore it was excluding everything else, so got rid of this entry and
now it works fine.

Thanks!
Giovanni

> -Original Message-
> From: Giovanni Azua [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 30, 2007 11:17 PM
> To: 'Maven Users List'
> Subject: errors for hibernate test cases
> 
> hi,
> 
> I have a set of test cases that pass fine under Eclipse .. 
> but from Maven I get java.lang.NoClassDefFoundError when 
> running TestHibernateGenericReadOnlyDao and 
> TestHibernateGenericDao (see below).
> 
> My gut-feeling is that the auxiliary Fixture class Person 
> (not a TestCase and not Test* pattern) is being filtered out 
> by Maven during testing?
> 
> Also can not tell from the logs that Person.hbm.xml is being 
> picked up properly ... does it belong under 
> /src/test/java/.../ ? or under 
> /src/test/resources/.../ ?
> 
> If interested the sources are available for checkout from:
> http://perfectjpattern.svn.sourceforge.net/svnroot/perfectjpat
> tern/trunk/
> 
> TIA,
> regards,
> Giovanni
> 
> I have implemented a Generic Dao based on Hibernate and then 
> included under my test package:
> 
> trunk/
> - perfectjpattern-j2ee
> -- pom.xml
> -- src/
> --- test/
>  java/
> - perfectjpattern/
> -- j2ee/
> --- database/
>  dao/
> - hibernate/
> -- Person.java
> -- Person.hbm.xml
> -- TestHibernateGenericReadOnlyDao.java
> -- TestHibernateGenericDao.java
>  resources/
> - hibernate.cfg.xml
> - hsql.properties
> - hsql.script
> - log4j.xml
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: errors for hibernate test cases

2007-11-30 Thread Giovanni Azua
ciao Marco,

Please find the stacktrace below

grazie! :)


java.lang.NoClassDefFoundError:
Could not initialize class
perfectjpattern.j2ee.database.dao.hibernate.HibernateGenericDao
at
perfectjpattern.j2ee.database.dao.hibernate.TestHibernateGenericReadOnlyDao.
setUp(TestHibernateGenericReadOnlyDao.java:147)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(Ab
stractDirectoryTestSuite.java:138)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractD
irectoryTestSuite.java:125)
at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireB
ooter.java:290)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818
)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818
)



> -Original Message-
> From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 30, 2007 11:40 PM
> To: Maven Users List
> Subject: Re: errors for hibernate test cases
> 
> Giovanni,
>  could you please post stacktrace of exception? i had also 
> problems with hibernate and got everything sorted out..
> your hbm.xml files  should end up in src/main/resources in 
> order to be present in the classpath during testing(they'll 
> end up in target\classes)
> 
> regards
>  marco
> 
> On Nov 30, 2007 10:17 PM, Giovanni Azua 
> <[EMAIL PROTECTED]> wrote:
> 
> > hi,
> >
> > I have a set of test cases that pass fine under Eclipse .. but from 
> > Maven I get java.lang.NoClassDefFoundError when running 
> > TestHibernateGenericReadOnlyDao and TestHibernateGenericDao 
> (see below).
> >
> > My gut-feeling is that the auxiliary Fixture class Person (not a 
> > TestCase and not Test* pattern) is being filtered out by 
> Maven during testing?
> >
> > Also can not tell from the logs that Person.hbm.xml is 
> being picked up 
> > properly ... does it belong under /src/test/java/ packages>.../ ? 
> > or under /src/test/resources/.../ ?
> >
> > If interested the sources are available for checkout from:
> > 
> http://perfectjpattern.svn.sourceforge.net/svnroot/perfectjpattern/tru
> > nk/
> >
> > TIA,
> > regards,
> > Giovanni
> >
> > I have implemented a Generic Dao based on Hibernate and 
> then included 
> > under my test package:
> >
> > trunk/
> > - perfectjpattern-j2ee
> > -- pom.xml
> > -- src/
> > --- test/
> >  java/
> > - perfectjpattern/
> > -- j2ee/
> > --- database/
> >  dao/
> > - hibernate/
> > -- Person.java
> > -- Person.hbm.xml
> > -- TestHibernateGenericReadOnlyDao.java
> > -- TestHibernateGenericDao.java
> >  resources/
> > - hibernate.cfg.xml
> > - hsql.properties
> > - hsql.script
> > - log4j.xml
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



errors for hibernate test cases

2007-11-30 Thread Giovanni Azua
hi,

I have a set of test cases that pass fine under Eclipse .. but from Maven I
get java.lang.NoClassDefFoundError when running
TestHibernateGenericReadOnlyDao and TestHibernateGenericDao (see below).

My gut-feeling is that the auxiliary Fixture class Person (not a TestCase
and not Test* pattern) is being filtered out by Maven during testing?

Also can not tell from the logs that Person.hbm.xml is being picked up
properly ... does it belong under /src/test/java/.../ ? or
under /src/test/resources/.../ ?

If interested the sources are available for checkout from:
http://perfectjpattern.svn.sourceforge.net/svnroot/perfectjpattern/trunk/

TIA,
regards,
Giovanni

I have implemented a Generic Dao based on Hibernate and then included under
my test package:

trunk/
- perfectjpattern-j2ee
-- pom.xml
-- src/
--- test/
 java/
- perfectjpattern/
-- j2ee/
--- database/
 dao/
- hibernate/
-- Person.java
-- Person.hbm.xml
-- TestHibernateGenericReadOnlyDao.java
-- TestHibernateGenericDao.java
 resources/
- hibernate.cfg.xml
- hsql.properties
- hsql.script
- log4j.xml



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven hangs while using hsqldb and eclipselink

2012-12-21 Thread Giovanni Azua
Hello,

 

My pom includes the dependencies and versions shown below. I get Maven
hanging in the middle of a test. When I investigate what's going on using
jps and jstack I get the following results which looks like an issue with
hsqldb .

 

TIA,

Best regards,

Giovanni

 

  

 

   org.eclipse.persistence

   eclipselink

   2.4.0

  



  org.hsqldb

  hsqldb

  2.2.9

  test



  

  

  

EclipseLink

http://download.eclipse.org/rt/eclipselink/maven.repo

  

 

$ jps -mlvV

4824 sun.tools.jps.Jps -mlvV -Denv.class.path=.;C:\Program Files
(x86)\QuickTime\QTSystem\QTJava.zip
-Dapplication.home=C:\PROGRA~1\Java\jdk1.6.0_37 -Xms8m

 

7552
C:\code\perfectjpattern\trunk\perfectjpattern-eclipselink\target\surefire\su
refirebooter2234852984189786639.jar
C:\code\perfectjpattern\trunk\perfectjpattern-eclipselink\target\surefire\su
refire1362040448567741258tmp
C:\code\perfectjpattern\trunk\perfectjpattern-eclipselink\target\surefire\su
refire7579733066270956770tmp

 

1088 org.codehaus.plexus.classworlds.launcher.Launcher clean install
-Xmx2048M -XX:PermSize=1024m -XX:MaxPermSize=2048m -Djava.awt.headless=true
-XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC
-Dclassworlds.conf=C:\etc\maven\3.0.4\/bin/m2.conf
-Dmaven.home=C:\etc\maven\3.0.4\

 

$ jstack 7552

2012-12-21 22:48:53

Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode):

 

"Low Memory Detector" daemon prio=6 tid=0x06a19000 nid=0x1e00
runnable [0x]

   java.lang.Thread.State: RUNNABLE

 

"C2 CompilerThread1" daemon prio=10 tid=0x06a0a800 nid=0x2184
waiting on condition [0x]

   java.lang.Thread.State: RUNNABLE

 

"C2 CompilerThread0" daemon prio=10 tid=0x069f5000 nid=0x754 waiting
on condition [0x]

   java.lang.Thread.State: RUNNABLE

 

"Attach Listener" daemon prio=10 tid=0x069f3800 nid=0x219c waiting
on condition [0x]

   java.lang.Thread.State: RUNNABLE

 

"Signal Dispatcher" daemon prio=10 tid=0x069a1800 nid=0x2198
runnable [0x]

   java.lang.Thread.State: RUNNABLE

 

"Finalizer" daemon prio=8 tid=0x0699f000 nid=0x2384 in Object.wait()
[0x075ef000]

   java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0007aef280e0> (a
java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)

- locked <0x0007aef280e0> (a java.lang.ref.ReferenceQueue$Lock)

at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)

at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

 

"Reference Handler" daemon prio=10 tid=0x06990800 nid=0x21cc in
Object.wait() [0x074ef000]

   java.lang.Thread.State: WAITING (on object monitor)

at java.lang.Object.wait(Native Method)

- waiting on <0x0007aef38070> (a java.lang.ref.Reference$Lock)

at java.lang.Object.wait(Object.java:485)

at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)

- locked <0x0007aef38070> (a java.lang.ref.Reference$Lock)

 

"main" prio=6 tid=0x0022c000 nid=0xbc0 waiting on condition
[0x0220c000]

   java.lang.Thread.State: WAITING (parking)

at sun.misc.Unsafe.park(Native Method)

- parking to wait for  <0x0007acd840a0> (a
java.util.concurrent.CountDownLatch$Sync)

at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)

at
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(
AbstractQueuedSynchronizer.java:811)

at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterru
ptibly(AbstractQueuedSynchronizer.java:969)

at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterrupt
ibly(AbstractQueuedSynchronizer.java:1281)

at
java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207)

at org.hsqldb.lib.CountUpDownLatch.await(Unknown Source)

at org.hsqldb.Session.executeCompiledStatement(Unknown Source)

at org.hsqldb.Session.execute(Unknown Source)

- locked <0x0007acd83f70> (a org.hsqldb.Session)

at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)

at org.hsqldb.jdbc.JDBCPreparedStatement.executeQuery(Unknown
Source)

- locked <0x0007acdb2518> (a
org.hsqldb.jdbc.JDBCPreparedStatement)

at
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSele
ct(DatabaseAccessor.java:938)

at
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecut
eCall(DatabaseAccessor.java:609)

at
org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall
(DatabaseAccessor.java:537)

at
org.eclipse.persistence.internal.sessions

eclipse plugin SUCCESS but no project?

2013-05-07 Thread Giovanni Azua
Hello,

I am trying to build Spring RCP and I'm very interested in the
spring-richclient-jide-sample-google but when I run the following I see
SUCCESS but no project? How can I troubleshoot this?

TIA,
Best regards,
Giovanni

/Users/bravegag/code/spring-rich-c/tags/spring-richclient-1.1.0/spring-richclient/spring-richclient-integrations/spring-richclient-jide/spring-richclient-jide-samples/spring-richclient-jide-sample-google$
$M2_HOME/bin/mvn eclipse:eclipse -DdownloadSources=true
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
org.springframework.richclient:spring-richclient-jide-sample-google:pom:1.1.0
[WARNING] 'reporting.plugins.plugin.version' for
org.apache.maven.plugins:maven-javadoc-plugin is missing. @
org.springframework.richclient:spring-richclient:1.1.0,
/Users/bravegag/code/spring-rich-c/tags/spring-richclient-1.1.0/spring-richclient/pom.xml,
line 468, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]

[INFO]

[INFO] Building Spring Rich Client integrations : JIDE Google Sample 1.1.0
[INFO]

[INFO]
[INFO] >>> maven-eclipse-plugin:2.5.1:eclipse (default-cli) @
spring-richclient-jide-sample-google >>>
[INFO]
[INFO] <<< maven-eclipse-plugin:2.5.1:eclipse (default-cli) @
spring-richclient-jide-sample-google <<<
[INFO]
[INFO] --- maven-eclipse-plugin:2.5.1:eclipse (default-cli) @
spring-richclient-jide-sample-google ---
[INFO] Not running eclipse plugin goal for pom project
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner:
org.eclipse.jdt.launching.JRE_CONTAINER
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 1.928s
[INFO] Finished at: Tue May 07 11:53:10 CEST 2013
[INFO] Final Memory: 6M/528M
[INFO]

/Users/bravegag/code/spring-rich-c/tags/spring-richclient-1.1.0/spring-richclient/spring-richclient-integrations/spring-richclient-jide/spring-richclient-jide-samples/spring-richclient-jide-sample-google$
ll
total 8
drwxr-xr-x  5 bravegag  staff   170 May  7 11:37 .
drwxr-xr-x  5 bravegag  staff   170 May  7 11:30 ..
-rw-r--r--  1 bravegag  staff  3141 May  7 11:30 pom.xml
drwxr-xr-x  9 bravegag  staff   306 May  7 11:17 .svn
drwxr-xr-x  4 bravegag  staff   136 May  7 11:17 src
/Users/bravegag/code/spring-rich-c/tags/spring-richclient-1.1.0/spring-richclient/spring-richclient-integrations/spring-richclient-jide/spring-richclient-jide-samples/spring-richclient-jide-sample-google$


Re: eclipse plugin SUCCESS but no project?

2013-05-07 Thread Giovanni Azua
Hi Wayne,

Thank you. I tried that using "Import -> Maven -> Existing Maven Project"
then choose the corresponding directory but the dependencies are not
resolved even though they are all in the local repo and all other projects
above this where generated using the eclipse plugin and work fine i.e.
compile from Eclipse np.

Best regards,
Giovanni


On Tue, May 7, 2013 at 4:24 PM, Wayne Fay  wrote:

> > I am trying to build Spring RCP and I'm very interested in the
> > spring-richclient-jide-sample-google but when I run the following I see
> > SUCCESS but no project? How can I troubleshoot this?
> ...
> > [INFO] --- maven-eclipse-plugin:2.5.1:eclipse (default-cli) @
> > spring-richclient-jide-sample-google ---
> > [INFO] Not running eclipse plugin goal for pom project
>
> Apparently the eclipse plugin does not run the eclipse goal for pom
> projects. Can I suggest you simply use M2E like "everyone else"?
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


project mix Java/Scala source folders issue

2013-05-07 Thread Giovanni Azua
Hello,

I have a project where I need to mix Java and Scala and therefore included
the Scala plugin as shown below. The project works, it compiles both Java
and Scala and the Scala test is executed and passes fine. The problem is
again the eclipse plugin does not put the Scala sources folder as part of
the eclipse sources, I think that the sources folder issue was solved
already (I found some posts complaining that the source directory had to be
unique and that two source folders Java and Scala would not work) this
issue was dating back to 2008.

This is really a minor issue but interesting to see whether I am taking the
official path here ...

TIA,
Best regards,
Giovanni


Re: mm project and surefire plugins

2011-10-16 Thread Giovanni Azua
Hello,

Now it works, I can see the aggregated results in the generated site.

However the m-surefire-report-plugin is creating two times the link "Surefire 
Report" under "Project Reports", the first one contains the aggregate test 
results and the second link points to an empty Surefire Report. Why is this 
happening? Please find below the relevant parts of the current configuration I 
am using. 

So I see:

Project Reports
--> Javadocs
--> Surefire Reports (aggregated OK)
--> Surefire Reports (EMPTY ... why does it generates this?)
--> Source Xref
--> Test Source Xref

TIA,
Best regards,
Giovanni

...
  

  

  org.apache.maven.plugins
  maven-site-plugin
  3.0


  org.apache.maven.plugins
  maven-project-info-reports-plugin
  2.4


  org.apache.maven.plugins
  maven-surefire-report-plugin
  2.10


  org.apache.maven.plugins
  maven-jxr-plugin
  2.3

  
  
 
  
org.apache.maven.plugins
maven-site-plugin
3.0
  
  
org.apache.maven.plugins
maven-project-info-reports-plugin
2.4
 
  
org.apache.maven.plugins
maven-enforcer-plugin
1.0.1

  
enforce-versions

  enforce


  

  3.0.3


  1.6

  

  


  
org.apache.maven.plugins
maven-compiler-plugin
2.3.2

  1.6
  1.6

  
  
  
org.codehaus.mojo
animal-sniffer-maven-plugin
1.7

  
check-java16-sun
test

  check


  
org.codehaus.mojo.signature
java16-sun
1.10
  

  


  
org.apache.maven.plugins
maven-javadoc-plugin
2.8



  
aggregate

  aggregate

site


  

  
  
org.apache.maven.plugins
maven-surefire-report-plugin
2.10

  
org.apache.maven.plugins
maven-jxr-plugin
2.3



  

  
org.apache.maven.plugins
maven-project-info-reports-plugin
2.4

  
org.apache.maven.plugins
maven-javadoc-plugin
2.8



  
non-aggregate



  javadoc

  
  
aggregate



  aggregate

  

  
  
org.codehaus.mojo
taglist-maven-plugin
2.4

  
TODO:
  

  

  
org.apache.maven.plugins
maven-surefire-report-plugin
2.10

true
report-only

  
  
org.apache.maven.plugins
maven-jxr-plugin
2.3

  true

 

  
...

On Oct 16, 2011, at 3:12 PM, Giovanni Azua Garcia wrote:

> Hello,
> 
> I have been trying to setup a new multi-module project and would like to have 
> some reports on unit tests. The problem is that apparently there are two 
> plugins for this:  maven-surefire-plugin and maven-surefire-report-plugin. It 
> is really not clear how to setup them both or how they interact ... I have 
> spent some hours doing trial and error on this, the result is that sometimes 
> I get no surefire report at all and sometimes I get two surefire reports both 
> empty in every project parent and sub-module projects. When generated, the 
> actual reports appear twice within the sub-module reports ... 
> very confusing.
> 
> In an ideal-green-land world I would just need to put one of the two plugins 
> in the build of the _parent_ pom with the aggregate option set to true and I 
> would get a single Surefire report on the report generated for the parent 
> pom. But it doesn't work like this.  Why is it s complicated?
> 
> TIA,
> Best regards,
> Giovanni
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.

Re: mm project and surefire plugins

2011-10-17 Thread Giovanni Azua
Hi!

On Oct 17, 2011, at 4:38 PM, Martin Höller wrote:

> Hi!
> 
> This seems to be a problem with the recent maven-surefire-report-plugin and 
> it's new support for the failsafe-maven-plugin.
> 
> Try using version 2.8 of the maven-surefire-report-plugin. In this version 
> there is no support for the  failsafe-plugin.

Yep! changing from maven-surefire-report-plugin version 2.10 to version 2.8 
solved the issue!

Thank you!
Best regards,
Giovanni
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



mm project and surefire plugins

2011-10-16 Thread Giovanni Azua Garcia
Hello,

I have been trying to setup a new multi-module project and would like to have 
some reports on unit tests. The problem is that apparently there are two 
plugins for this:  maven-surefire-plugin and maven-surefire-report-plugin. It 
is really not clear how to setup them both or how they interact ... I have 
spent some hours doing trial and error on this, the result is that sometimes I 
get no surefire report at all and sometimes I get two surefire reports both 
empty in every project parent and sub-module projects. When generated, the 
actual reports appear twice within the sub-module reports ... 
very confusing.

In an ideal-green-land world I would just need to put one of the two plugins in 
the build of the _parent_ pom with the aggregate option set to true and I would 
get a single Surefire report on the report generated for the parent pom. But it 
doesn't work like this.  Why is it s complicated?

TIA,
Best regards,
Giovanni





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