Announcement: Atomic multi-module deploys

2010-05-17 Thread jake pezaro

Hi all.  I've written a plugin which allows you to do atomic multi-module
builds.  It's beta at the moment, but should work for simple cases.  Usage
is available on the home page.  Bug reports  enhancement requests welcome!

http://code.google.com/p/maven-deferred-deploy-plugin/
http://code.google.com/p/maven-deferred-deploy-plugin/ 

Jake
-- 
View this message in context: 
http://old.nabble.com/Announcement%3A-Atomic-multi-module-deploys-tp28585091p28585091.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



unable to browse artifacts in snapshot repository

2008-01-09 Thread jake pezaro

i can deploy an artifact into our repository, and have verified that it
deployed correct by checking the copy on disk, however when i attempt to
browse to the artifact i get the following error in the browser:

Error 404 Not Found

The following resource does not exist:
http://deimos:2081/repository//com/vcint/pom/root/javaresinupgrade-SNAPSHOT/root-javaresinupgrade-20080109.223726-1.pom

org.apache.maven.archiva.repository.layout.LayoutException: Invalid path to
Artifact: filename format is invalid,expected timestamp format in filename.
at
org.apache.maven.archiva.repository.content.DefaultPathParser.toArtifactReference(DefaultPathParser.java:134)
at
org.apache.maven.archiva.repository.content.RepositoryRequest.toArtifactReference(RepositoryRequest.java:121)
at
org.apache.maven.archiva.repository.content.RepositoryRequest.toNativePath(RepositoryRequest.java:271)
at
org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:193)
at
org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119)
at
org.apache.maven.archiva.web.repository.RepositoryServlet.service(RepositoryServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

-- 
View this message in context: 
http://www.nabble.com/unable-to-browse-artifacts-in-snapshot-repository-tp14723538p14723538.html
Sent from the archiva-users mailing list archive at Nabble.com.



Re: Dependency Browser Tool

2007-11-25 Thread jake pezaro

there are a couple of reasons why this is not a maven plugin. 

1.  we found it much easier to understand the dependency tree when it was
displayed in a GUI (ie being able open and close branches, see paths being
highlighted etc).   if this were to be a plugin it would need to display
text output, which we couldn't make as easy to understand (although if you
have any ideas here then please send me an example).

2.  maven reactor already provides a more static version of this information
in it's convergence reports.  we didn't want to replicate that
functionality, we just wanted a simple tool to track down rouge transitive
dependencies.


Martin Gilday wrote:
 
 Is there any reason this isn't a Maven plugin though?  --repository could
 be taken from settings.xml
 --workspace could just be the current directory where you run mvn xx:xx. 
 

-- 
View this message in context: 
http://www.nabble.com/Dependency-Browser-Tool-tf4870799s177.html#a13940274
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: Project inheritance

2007-03-09 Thread Jake
By putting the plugins in a pluginManagement section in the parent and then 
just referencing the groupId:artifactId in the plugin section of the children


- Original Message 
From: Aidan O'Donnell [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Friday, March 9, 2007 8:52:25 AM
Subject: Project inheritance


Hi,

I have a POM which is both a parent and a multi-module. When I build from 
this POM I would like the plugins to be executed for the modules and not the 
parent POM i.e. how can I supress the execution for the current POM but 
still inherit the properties?

Aidan

_
Solve the Conspiracy and win fantastic prizes!  
http://www.theconspiracygame.co.uk/


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

Re: Any Archiva download soon?

2007-03-09 Thread Jake
What issues are you having? I've set it up from source just fine (after a few 
modifications of course)...


- Original Message 
From: Marziou, Gael [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Friday, March 9, 2007 12:11:45 PM
Subject: Any Archiva download soon?


Hello,

I have tried several times to build Archiva from sources but each time,
I am unable to resolve all dependencies so I have given up.

How far is the Archiva project from releasing a binary build?

Thanks,

Gael

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

M2 assembly problems with multi-module builds

2006-05-10 Thread Jake Pezaro
i am trying to bind assembly:assembly to the package phase in one of my
parent poms parent-1, the other parent is parent-2 which does not have
an assembly bound.  the assembly plugin is the 2.0.x svn version.

this works as expected when i check out a single project and install it.
ie the assembly is built and installed correctly.

when i check out my multi-module project, the children of parent-2 build
 install correctly, however the children of parent-1 do not get
installed and no assemblies are built at all.

it seems that the multi-module build executes correctly until it hits
the first parent-1 build.  when it hits this build, the build sequence
starts again and nothing gets installed.  for example, if i have a
multi-module build with 3 projects as below, that build in order p1, p2,
p3:

p1 - (non-assembly)
p2 - (assembly bound in parent)
p3 - (non-assembly)

execution is as follows for mvn install:

build p1
install p1
build p2
build p1
build p2
build p3

does anyone know why this might be happening?  does anyone know how the
assembly plugin alters the build lifecycle?

cheers

jake


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

RE: M2: Assembly Plugin Breaks Module Build

2006-05-10 Thread Jake Pezaro
hi dan.  sorry for the delay - i got a bit sidetracked with some other
stuff.

i have checked out the maven-assembly-plugin 2.0.x from svn  can't find
assembly:attached.  i get the following message:

[ERROR] BUILD ERROR
[INFO]
-
[INFO] 'attached' was specified in an execution, but not found in the
plugin

i also can't see listed in any of the mojo's in the source.

is there another version that i am missing?  i am also having problems
when binding assembly to the parent pom for multi-module builds, but
have listed that in a separate email.

jake


-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: 06 May 2006 00:32
To: Maven Users List
Subject: Re: M2: Assembly Plugin Breaks Module Build

Jake, the below structure works for me


parent
  pom.xml
  child-1
pom.xml
  child-2
pom.xml
  .

  child-assembly
pom.xml   bind assembly:attached to package phase   ( you need
to
get the assembly plugin from svn and build it your self  )


On 5/5/06, Jake Pezaro [EMAIL PROTECTED] wrote:

 thanks dan.  my assembly config is in a parent pom, and when i try to 
 configure the binding (i was using assembly:assembly, don't know if 
 that make a difference) i could not install or deploy the pom due to 
 the below error.  is there a way to stop stop this or do i need to 
 configure the assembly in the project poms (rather than in the
parent).

 [INFO] [assembly:assembly {execution: default}] [INFO]
 --
 --
 
 [ERROR] BUILD ERROR
 [INFO]
 --
 --
 
 [INFO] Error creating assembly

 Embedded error: c:\dev\workspace\ServerAppPom\target isn't a directory

 jake

 -Original Message-
 From: dan tran [mailto:[EMAIL PROTECTED]
 Sent: Fri 5/5/2006 6:31 PM
 To: Maven Users List
 Subject: Re: M2: Assembly Plugin Breaks Module Build

 for project that requires assembly, bind assembly:attached to the 
 package phase, then you run

 maven deploy

 -D


 On 5/5/06, Jake Pezaro [EMAIL PROTECTED] wrote:
 
  We have a number of projects which we build nightly using maven.  I 
  have grouped these together using modules so that i can build  
  deploy them all at once with one command (mvn assembly:assembly
deploy).
 
  The problem is that the build fails because the assembly:assembly 
  target requires all projects to have an assembly defined.  Is there 
  a way around this?
 
  thanks
 
  jake
 
 
 
  
  __ This email has been scanned by the MessageLabs Email Security 
  System.
  For more information please visit http://www.messagelabs.com/email 
  
  __
 

 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 __


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email 
 __


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



M2: Assembly Plugin Breaks Module Build

2006-05-05 Thread Jake Pezaro
We have a number of projects which we build nightly using maven.  I have
grouped these together using modules so that i can build  deploy them
all at once with one command (mvn assembly:assembly deploy).  

The problem is that the build fails because the assembly:assembly target
requires all projects to have an assembly defined.  Is there a way
around this?

thanks

jake



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

M2: Embedded error using assembly plugin when packaging=pom

2006-05-05 Thread Jake Pezaro
I want to add my assembly task to one of my parent poms, as follows:

?xml version=1.0 encoding=UTF-8?
project
modelVersion4.0.0/modelVersion
groupIdcom.vcint.pom/groupId
artifactIdserver-app/artifactId
version0.0.1-SNAPSHOT/version
packagingpom/packaging
build
sourceDirectorysrc/sourceDirectory
plugins
plugin
artifactIdmaven-assembly-plugin/artifactId
version2.0.1/version
configuration
descriptorIdbin/descriptorId
/configuration
executions
execution
phasepackage/phase
goals
goalassembly/goal
/goals
/execution
/executions

/plugin
/plugins
/build
/project

The problem is that when i try to install this pom (mvn install) i get
the following error:

[INFO] Building Unnamed - com.vcint.pom:server-app:pom:0.0.1-SNAPSHOT
[INFO]task-segment: [clean, install]
[INFO]


[INFO] [clean:clean]
[INFO] Deleting directory c:\dev\workspace\ServerAppPom\target
[INFO] Deleting directory c:\dev\workspace\ServerAppPom\target\classes
[INFO] Deleting directory
c:\dev\workspace\ServerAppPom\target\test-classes
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] Preparing assembly:assembly
[INFO]


[INFO] Building Unnamed - com.vcint.pom:server-app:pom:0.0.1-SNAPSHOT
[INFO]


[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[WARNING] Removing: assembly from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[WARNING] DEPRECATED [descriptorId]: Please use descriptorRefs instead
[INFO] [assembly:assembly {execution: default}]
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error creating assembly

Embedded error: c:\dev\workspace\ServerAppPom\target isn't a directory.

does anyone have any idea how i can avoid this?

thanks

jake

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

RE: M2: Assembly Plugin Breaks Module Build

2006-05-05 Thread Jake Pezaro
thanks dan.  my assembly config is in a parent pom, and when i try to configure 
the binding (i was using assembly:assembly, don't know if that make a 
difference) i could not install or deploy the pom due to the below error.  is 
there a way to stop stop this or do i need to configure the assembly in the 
project poms (rather than in the parent).

[INFO] [assembly:assembly {execution: default}]
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error creating assembly

Embedded error: c:\dev\workspace\ServerAppPom\target isn't a directory

jake

-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED]
Sent: Fri 5/5/2006 6:31 PM
To: Maven Users List
Subject: Re: M2: Assembly Plugin Breaks Module Build
 
for project that requires assembly, bind assembly:attached to the package
phase, then you run

maven deploy

-D


On 5/5/06, Jake Pezaro [EMAIL PROTECTED] wrote:

 We have a number of projects which we build nightly using maven.  I have
 grouped these together using modules so that i can build  deploy them
 all at once with one command (mvn assembly:assembly deploy).

 The problem is that the build fails because the assembly:assembly target
 requires all projects to have an assembly defined.  Is there a way
 around this?

 thanks

 jake



 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

M2 Repository Size

2006-04-26 Thread Jake Pezaro
we do a nightly snapshot build  deploy of all our apps and our
repository is growing rapidly.  are there any tools or recommended
settings available to control the the size?  we are using maven version
2.0.2

thanks

jake

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

RE: creating and using source archive

2006-04-26 Thread Jake Pezaro
to get the source into your repository then you need to attache the
source plugin to the package phase as below.  this will then
automatically generate the sources and deploy them.

plugin
artifactIdmaven-source-plugin/artifactId
version2.0/version
executions
execution
phasepackage/phase
goals
goaljar/goal
/goals
/execution
/executions
/plugin 

-Original Message-
From: gdub [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2006 17:01
To: Maven Users List
Subject: creating and using source archive

Good morning-

We just completed our first Maven-based
project and are on to the next. First,
thanks to the Maven developers for
their efforts and to the members of
this list who were invariably helpful
and patient during the newbie days.

So, we are moving from the let's see
how Maven works phase to the let's
look at the impact of Maven phase.
Personally, I have grown from Maven
child to Maven rebellious teenager.

Now, a thing that would really cut
time would be to have source and javadoc archives available in the local
repository--for all local and 3rd- party artifacts.

So my question is, how can I
automatically install source and javadoc jars from development projects
to the local repository? I see the instructions on how to upload them to
ibiblio and I can successfully use the source:jar and javadoc:jar goals.
But how do I get those jars into my local repository using Maven?. I
know I can copy them directly but hopefully that's not the recommended
means. Ideally, I'd like it configured so that building the install goal
installs those jars as well.

On the comment side, I would like to
plead with ibiblio uploaders to please
include source and javadoc archives
with your packages if at all possible.
I know it's extra work but it could
have a big impact on Maven usability.

Thanks as always,

   -dub


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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Including jsps in war from external dependency

2006-03-26 Thread Jake Meier
I'm tying to set up a maven project in such a way that I can have a base 
set of jsp, css, javascript, etc files located in 1 project and have 
them included by various other projects.  The goal is to have multiple 
war files being built with generally the same jsps, css, etc (without 
making copies of the jsp files).


Packaging these web files into a jar archive is easy enough, and I could 
obviously list this jar as a dependency for my war projects, but I'd 
like these files to be deployed in the resultant war file as war/css, 
war/js, etc, instead of the jar file simply being included in my 
war/WEB-INF/lib directory.


Is there something out there already that can handle this, or do I need 
some custom code/scripting to do the job.  Could I approach this with a 
custom archetype for the webfiles, so that I can handle it in a custom 
way during war file building?  Is there some way that I can process the 
jar archive during one of the war lifecycle phases so that I can 
included the files like they were generated-sources?  Is there some 
other approach that would help?


Any help or direction would be greatly appreciated.

-Jake

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



eclipse plugin hiding source of compilation error

2006-02-22 Thread Jake Pezaro
the project in question does not fail when run from the command line,
however when run from eclipse it produces the following error:

is there a way to get the eclipse pluging to show what the error is or
do run it in debug mode?

Compiling 918 source files to
C:\dev\workspace\CheltenhamWeb-2-2-1\target\classes
[ERROR] mojo-execute : compiler:compile
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
[ERROR] project-execute : com.vcint:CheltenhamWeb:war:2.2.1-SNAPSHOT (
task-segment: [compile] )
Diagnosis: Compilation failure
FATAL ERROR: Error executing Maven for a project
org.apache.maven.BuildFailureException: Compilation failure
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:552)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:472)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:139)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:472)
at
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:413)
at
org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure
at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMoj
o.java:429)
at
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:110)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:415)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:531)
... 8 more

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

java compiler memory and/or forking problems

2006-02-21 Thread Jake Pezaro
i need to do some memory-intensive java compilation (918 files, 678 in
one directory alone, largest .java file is around 500K).  setting the
-J-Xmx argument should fix it.  the problems i encountered are:

- i must fork the process in order to do it as the maven compiler will
not accept this option
- forking the process fails with the following error (possibly due to
the command line options being 82789 characters long):

Caused by: java.io.IOException: CreateProcess: CMD.EXE /X /C javac -d
c:\dev\workspace\CheltenhamWeb-2-2-1\target\classes -classpath
c:\dev\...very long command
line\axis-saaj-1.3.jar;C:\DOCUME~1\user\.m2\repository\axi?
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.init(Win32Process.java:66)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:566)
at
org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:692)
... 24 more

i am not sure how to solve this.  is there a way to increase the
compiler memory without forking the process?  is there a way to fix the
problem i am having forking the javac process?  any suggestions welcome.

thanks

jake

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

inheriting generating classpath inside plugins

2006-02-16 Thread Jake Pezaro
i have written a new plugin.  however, no matter what dependencies are
defined by the calling pom, my pluging has only 2 jars on it's
classpath.  they are:

when running maven from the command line:
.../maven-2.0.2/core/boot/classworlds-1.1.jar

when running maven from eclipse:
.../eclipse/configuration/org.eclipse.osgi/bundles/347/1/.cp/lib/maven-e
mbedder-2.0.2-dep.jar
.../eclipse/configuration/org.eclipse.osgi/bundles/347/1/.cp/m2plugin.ja
r

i need to do know how to do the following two things, but i cannot find
any guidelines on how to do them.

1.  inherit the classpath/dependencies from the calling pom, without
having to explicity re-state them in under
build.plugins.plugin.depedencies
2.  add some additional dependencies to the classpath within the plugin.
these dependencies are all jars located in a directory.

thanks

jake



__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

deploying 3rd party jars

2006-01-18 Thread Jake Pezaro
i want to deploy a 3rd party jar (which is already in my local
repository) to the remote repository that we have set up on one of our
servers.  what command should i use to do this?

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Re: multiproject:site problem (Intern)

2005-06-15 Thread Jake
I guess not... Just use subst to create a drive
pointing to it and it should be fine... A workaround,
yes, but it's not too much of a hack.

--- Wim Deblauwe [EMAIL PROTECTED] wrote:

 Hmm.. How can they solve that, windows itself does
 not support it?
 
 2005/6/15, [EMAIL PROTECTED]
 [EMAIL PROTECTED]:
  I think you have come across a bug with Bug ID
 4403166 in java.io.File.
  
  Another longtime bugaboo for many developers, the
 issue with paths with more than 255 characters on
 the Microsoft Windows operating system has finally
 been resolved. Seems to be fixed in b19 of Mustang
 :-)
 

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/Mustang_build39.html
  
  -- David Låås
  
  -Original Message-
  
  For some reason, and I've never gotten this
 before,
  I'm getting aggregate file copy errors.. ex:
  
  Failed to copy C:\Documents and
 Settings\melnicj1\My
 

Documents\IBM\wsappdev51\workspace\BusinessProcessComponents\target\docs\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html
  
  
  to
  
  C:\Documents and Settings\melnicj1\My
 

Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html
  
  
  due to
  
  C:\Documents and Settings\melnicj1\My
 

Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html
  (The system cannot find the path specified)
  
  The source file is there, and the destination
  directory is there...
  
  Any ideas?
  
 

-
  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]
 
 


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



multiproject:site problem

2005-06-14 Thread Jake
For some reason, and I've never gotten this before,
I'm getting aggregate file copy errors.. ex:

Failed to copy C:\Documents and Settings\melnicj1\My
Documents\IBM\wsappdev51\workspace\BusinessProcessComponents\target\docs\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html


to 

C:\Documents and Settings\melnicj1\My
Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html


due to 

C:\Documents and Settings\melnicj1\My
Documents\IBM\wsappdev51\workspace\HorizonEAR-Build\target\docs\HorizonEAR-Build\multiproject\BusinessProcessComponents\xref\com\nationwide\pc\claims\businessprocesscomponents\communication\CommunicationManagementLocal.html
(The system cannot find the path specified)

The source file is there, and the destination
directory is there...

Any ideas?

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



EJB RMIC with Maven and WSAD

2005-06-14 Thread Jake
Ok, this is truly driving me mad... Here's the
situation (NOTE: None of the following is in my sphere
of control besides Maven):

Application:
J2EE app with JAR, EJB, and WAR projects

Development Environment:
WSAD 5.1.2

Development Test Environment:
WTE

Build Tool:
Maven 1.0.2

Here's my problem - In order to have the CI build
consistent with the local developer builds I don't
want two different build processes, meaning I want the
same goals, etc... It's working beautifully for every
project except, of course, the EJB project. 

I don't want to use WSAD's RMIC generation as that
would make it a different process from CI (that and I
believe that the deploy code that is generated by WSAD
is versioned, making CVS maintenance a nightmare). 

I am using the was5 plugin to do the generation on the
CI machine, and that works great. However, since the
developer machines don't have a full instance of WAS,
the plugin (or specifically the ant task it uses)
blows up... Here is a snippet of the error:

[wasEjbDeploy] Failure invoking BootLoader.startup
method
[wasEjbDeploy]
java.lang.reflect.InvocationTargetException
[wasEjbDeploy]  at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[wasEjbDeploy]  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
[wasEjbDeploy]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
[wasEjbDeploy]  at
java.lang.reflect.Method.invoke(Method.java:386)
[wasEjbDeploy]  at
com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.startup(BootLoaderLoader.java:315)
[wasEjbDeploy]  at
com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:207)
[wasEjbDeploy]  at
com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:382)
[wasEjbDeploy]  at
com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:77)
[wasEjbDeploy]  at
com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:307)
[wasEjbDeploy] Caused by:
java.lang.RuntimeException: Fatal Error: Unable to
locate matching org.eclipse.core.runtime plug-in.

Yes, was5.home is set and it finds the ant tasks just
fine...

Any help on this would be greatly appreciated!


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



Re: newbie ques: downloading latest stable jars

2005-06-14 Thread Jake
Right now you can either:

Manually set the version of the dependency to
retrieve, 

or

You can change your dependencies to be SNAPSHOT. This
ensures you get the latest version (with a version of
SNAPSHOT), not necessarily the latest STABLE
dependency...

Hope that helps...

--- Theodore Watson [EMAIL PROTECTED] wrote:

 I understand that maven will download jars from
 remote repositories.  As I far 
 as I can see, human intervention is required to
 ensure that maven builds with 
 the latest jars from these repositories.
 
 Is there a current mechanism or future plans for
 automating this process, so 
 that whenever maven is ran, the project is given the
 latest stable releases 
 of its dependencies?
 
 I apologize if I missed an obvious detail in my
 reading.
 
 Thanks.
 
 Ted Watson
 

-
 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: hsql DB startup

2005-01-06 Thread Jake Ewerdt
On Thursday 06 January 2005 02:28 am, Janos Mucsi wrote:
 This is not a strictly Maven question.
 
 Hi Jake
 This sounds very interesting. I have two questions:
 1. Is testing against an in-process database a better
 idea than using mock-objects to fake Connection,
 ResultSet, etc? (I need to test some hand-coded JDBC
 DAOs which I will redevelop later with Hibernate, but
 I can not throw them away just yet.)

For unit testing, I think it is best to use mock objects to mock the layer 
below the code you're testing.  Mocking JDBC objects like Connection and 
ResultSet can be a lot of work, but it is well worth it because you can force 
exceptional behavior that is very difficult or impossible to reliably create in 
a testing environment with a real database.

For functional tests that are testing functionality with the database, then I 
use a real database.

 2. Can you please tell me an example for dealing with
 SQL dialect differences. (I guess if you use
 Hibernate, this is taken care of with the dialect
 setting.)

For Schemas, I have 2 different ways of dealing with the differences:
1) Create a custom SQL loading script that replaces macros in the schema file 
with the correct text for that database.  For example, %datetype% in the 
schema file might get replaced to DATE in oracle and TIME in sqlserver.
2) Use an ER application like CASE Studio that can automatically generate 
different schema files for different databases.

The insert, select, update, and delete sql statements can just be written 
carefully enough that they work with all databases you support.  I haven't had 
any real problems with doing this.  However, if you are not aiming at database 
independence, then you will not be needlesly removing the ability to use 
specific optimizations with certain databases.


 Janos 
 
 This is why and how we use HSQL for testing.
 
 - It is much faster for developers who are in the
 habit of continuous 
 testing to use HSQL instead of (for example) Oracle.
 - We don't have enough Oracle resources (connections,
 accounts, cpu) to 
 support all the developers using it for continuous
 testing.
 - When running inside a debugger (like Eclipse or
 IntelliJ's), you can 
 step down all the way into the database to see exactly
 what the sql is 
 doing.
 
 - HSQL is only used for developer testing. 
 Cruisecontrol and Maven and 
 QA and everything else use both Oracle and SqlServer.
 - The driver, uri, username, and password are all in
 configuration 
 files, so the same TestSetup is used for all
 databases.
 - The differences in the databases can be solved the
 same way as you 
 would solve compatibility issues between Oracle and
 SqlServer.
 
 So developing against HSQL and going live against
 Oracle could have 
 some issues, all problems should be found and fixed by
 always running 
 against Oracle with infrastructure tools and in QA.
 
 

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



Re: hsql DB startup

2005-01-05 Thread Jake Ewerdt
I set up the HSQL database in the JUnit TestSetup.  This drops and re-creates 
the database for each test class that need the database, but the overhead is 
quite low, only a few test classes need the database running, and it ensures 
left over database artifacts will not have any side-effects on future tests.  
Only starting the database and creating the tables once for all tests can be 
easily accomplished by keeping around the static connection and have all test 
classes get that connection instead of doing the setup themselves.

The code looks something like this:

public class JDBCTest extends TestCase {
  private static Connection conn;

  public static Test suite() {
TestSuite suite = new TestSuite(JDBCTest.class);

TestSetup wrapper = new TestSetup(suite) {
  protected void setUp()
throws Exception {
Class.forName(org.hsqldb.jdbcDriver);
conn = DriverManager.getConnection(jdbc:hsqldb:., sa, );
// LOAD SCHEMA HERE
  }
  protected void tearDown()
throws Exception {
  conn.close();
  }
};
return wrapper;
  }

  public void testSomething() {
  }
}

I use a file-based db by replacing jdbc:hsqldb:. with something like 
jdbc:hsqldb:tmpdb only if I need to view the actual tables or data in the 
database.

-jake


On Wednesday 05 January 2005 11:35 am, Charles N. Harvey III wrote:
 Hello.
 I have been doing lots of reading about how great it is to use an in-process
 DB like Hypersonic for testing.  Thing is, there are not many examples of
 how to do this.  What I want to do is start an in-memory DB (not a file DB
 because the test is small) when I run my tests, and then run tests.
 
 So the first thing that has to happen when I run maven test is that the
 DB has to be created.  Then I have to execute CREATE statements for the
 necessary tables.  Then I can proceed with my tests.
 
 Has anyone done this?  Should I use a file-based DB instead of in memory?
 How do I get the maven test suite to do this one thing first, and only
 once?
 
 Any help is greatly appreciated.
 
 
 Charlie
 
 
 -
 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: hsql DB startup

2005-01-05 Thread Jake Ewerdt
This all has to do with JUnit, nothing maven specific.

If you want to write a TestSuite that runs all of the tests you specify, you 
can use a solution like 
http://junit.sourceforge.net/doc/faq/faq.htm#organize_3.  I'm almost positive 
that maven will not pick up a test class unless the name of the class ends in 
Test.  However, you can specify that maven runs only the TestSuite like 
maven -Dtestcase=AllTests test:single.


Here's an example of having a TestSetup run only once for all unittests using a 
different method.

// This is not a test class
public class DbSetup extends TestSetup {
  private static Connection _conn;

  public DbSetup(Test suite) { super(suite); }

  public void setUp() throws Exception {
if (_conn == null) { // will only start database once for all tests
  Class.forName(org.hsqldb.jdbcDriver);
  _conn = DriverManager.getConnection(jdbc:hsqldb:., sa, );
  // LOAD SCHEMA HERE
}
  }

  public void tearDown() {
// do nothing, db will shut down when JVM exists or _conn is closed
  }

  public Connection getConnection() { return _conn; }
}

// This is a test class
public class JDBCTest extends TestCase {
  private static DbSetup _db;

  public static Test suite() {
    TestSuite suite = new TestSuite(JDBCTest.class);
_db = new DbSetup(suite);
    return _db;
  }

  public void testSomething() {
Connection conn = _db.getConnection();
  }
}


If you go with that solution

-jake



On Wednesday 05 January 2005 04:01 pm, Charles N. Harvey III wrote:
 This is exactly what I was looking for.  I'm still playing with it
 to get it to work out correctly, but it is in the right direction, thanks.
 
 If I write a TestSuite (AllTests.java), will it run first?  That's one
 thing that I was never sure of.  Do the tests all run individually or
 does the Suite get executed and then it runs the tests?
 
 Just curious, I just didn't know how that part of the test framework
 of maven worked.
 
 Thanks again.
 
 
 Charlie
 
 
 
 Jake Ewerdt said the following on 1/5/2005 3:09 PM:
 
 I set up the HSQL database in the JUnit TestSetup.  This drops and 
 re-creates the database for each test class that need the database, but the 
 overhead is quite low, only a few test classes need the database running, 
 and it ensures left over database artifacts will not have any side-effects 
 on future tests.  Only starting the database and creating the tables once 
 for all tests can be easily accomplished by keeping around the static 
 connection and have all test classes get that connection instead of doing 
 the setup themselves.
 
 The code looks something like this:
 
 public class JDBCTest extends TestCase {
   private static Connection conn;
 
   public static Test suite() {
 TestSuite suite = new TestSuite(JDBCTest.class);
 
 TestSetup wrapper = new TestSetup(suite) {
   protected void setUp()
 throws Exception {
 Class.forName(org.hsqldb.jdbcDriver);
 conn = DriverManager.getConnection(jdbc:hsqldb:., sa, );
 // LOAD SCHEMA HERE
   }
   protected void tearDown()
 throws Exception {
   conn.close();
   }
 };
 return wrapper;
   }
 
   public void testSomething() {
   }
 }
 
 I use a file-based db by replacing jdbc:hsqldb:. with something like 
 jdbc:hsqldb:tmpdb only if I need to view the actual tables or data in the 
 database.
 
 -jake
 
 
 On Wednesday 05 January 2005 11:35 am, Charles N. Harvey III wrote:
   
 
 Hello.
 I have been doing lots of reading about how great it is to use an in-process
 DB like Hypersonic for testing.  Thing is, there are not many examples of
 how to do this.  What I want to do is start an in-memory DB (not a file DB
 because the test is small) when I run my tests, and then run tests.
 
 So the first thing that has to happen when I run maven test is that the
 DB has to be created.  Then I have to execute CREATE statements for the
 necessary tables.  Then I can proceed with my tests.
 
 Has anyone done this?  Should I use a file-based DB instead of in memory?
 How do I get the maven test suite to do this one thing first, and only
 once?
 
 Any help is greatly appreciated.
 
 
 Charlie
 
 
 -
 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]
 
 

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



Re: hsql DB startup

2005-01-05 Thread Jake Ewerdt
This is why and how we use HSQL for testing.

- It is much faster for developers who are in the habit of continuous testing 
to use HSQL instead of (for example) Oracle.
- We don't have enough Oracle resources (connections, accounts, cpu) to support 
all the developers using it for continuous testing.
- When running inside a debugger (like Eclipse or IntelliJ's), you can step 
down all the way into the database to see exactly what the sql is doing.

- HSQL is only used for developer testing.  Cruisecontrol and Maven and QA and 
everything else use both Oracle and SqlServer.
- The driver, uri, username, and password are all in configuration files, so 
the same TestSetup is used for all databases.
- The differences in the databases can be solved the same way as you would 
solve compatibility issues between Oracle and SqlServer.

So developing against HSQL and going live against Oracle could have some 
issues, all problems should be found and fixed by always running against Oracle 
with infrastructure tools and in QA.



On Wednesday 05 January 2005 04:54 pm, Janos Mucsi wrote:
 But this means your live system also has to run using
 HSQL otherwise this test does not make sense right?
 (Because of the differences in the SQL dialects, for
 example.)
 
 I set up the HSQL database in the JUnit TestSetup. 
 This drops and 
 re-creates the database for each test class that need
 the database, but 
 the overhead is quite low, only a few test classes
 need the database 
 running, and it ensures left over database artifacts
 will not have any 
 side-effects on future tests.  Only starting the
 database and creating the 
 tables once for all tests can be easily accomplished
 by keeping around 
 the static connection and have all test classes get
 that connection 
 instead of doing the setup themselves.
 
 The code looks something like this:
 
 public class JDBCTest extends TestCase {
   private static Connection conn;
 
   public static Test suite() {
 TestSuite suite = new TestSuite(JDBCTest.class);
 
 TestSetup wrapper = new TestSetup(suite) {
   protected void setUp()
 throws Exception {
 Class.forName(org.hsqldb.jdbcDriver);
 conn =
 DriverManager.getConnection(jdbc:hsqldb:., sa,
 );
 // LOAD SCHEMA HERE
   }
   protected void tearDown()
 throws Exception {
   conn.close();
   }
 };
 return wrapper;
   }
 
   public void testSomething() {
   }
 }
 
 -
 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]



Checkstyle source directory

2004-04-16 Thread Jake Ewerdt
I am preprocessing my src directory using Jass into target/src-jass.  My 
pom.build.sourceDirectory and maven.src.dir values are set to target/src-jass, and I 
have a preGoal on java:compile that preprocesses the src dir.

This is fine for every case except Checkstyle, since Jass messes up the code style 
when it preprocesses.  I would like to get Checkstyle to check the src directory 
instead of target/src-jass.

Looking at the documentation, 
http://maven.apache.org/reference/plugins/checkstyle/properties.html, it seems like I 
should be able to do something like 'maven -Dmaven.src.dir=src checkstyle'.  However, 
looking at the checkstyle project.xml file from CVS, line 151, it is using 
pom.build.sourceDirectory which I can't set from the command line.

Is this a problem with the documentation, or is it something I'm overlooking?

Is there any way around this problem without changing the checkstyle project.xml and 
building a customized maven-checkstyle.jar?

Thanks,

Jake

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



Linkcheck and FindBugs OutOfMemoryError

2004-01-19 Thread Jake Ewerdt
I'm getting a java.lang.OutOfMemoryError when running the Linkcheck and 
FindBugs plugins on my project.  I have these env vars set:

export JAVA_OPTS=-mx1024m
export ANT_OPTS=-Xmx1024m
export MAVEN_OPTS=-Xmx1024m

Here are the errors:

maven-linkcheck-plugin: Not using a proxy
Found 0 files so far.
  Memory: 110M/132M
Found 1000 files so far.
  Memory: 105M/132M
Found 2000 files so far.
  Memory: 107M/132M
Found 3000 files so far.
  Memory: 109M/132M
Found 4000 files so far.
  Memory: 111M/132M
Found 5000 files so far.
  Memory: 107M/132M
 a ton of output ...
BUILD FAILED
File.. file:/home/jake/.maven/plugins/maven-linkcheck-plugin-1.1/
Element... linkcheck:linkcheck
Line.. 73
Column 9
java.lang.OutOfMemoryError
Total time: 32 minutes 25 seconds

maven-findbugs-plugin:report:
[echo] Running the FindBugs task...
[findbugs] Running FindBugs...
[findbugs] Exception in thread main java.lang.OutOfMemoryError
[findbugs] Output saved to ./target/findbugs-raw-report.txt
BUILD SUCCESSFUL
Total time: 1 minutes 40 seconds

All of the other plugins work fine.  Anything else I can try?

-jake

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



Re: javadoc plugin

2004-01-14 Thread Jake Ewerdt
Yeah, same thing happened to me.  I modified the javadoc's plugin.jelly to get it 
working.  Here's the diff:

93,94c93
 packagenames=${pom.package}
 sourcepath=${pom.build.sourceDirectory}
---
 packagenames=${pom.package}.*
109a108,124
 ant:fileset dir=${pom.build.sourceDirectory}
   ant:include name=**/*.java/
   !-- FIXME: This is a bad cut and paste --
   !-- handle source modifications --
   j:forEach var=sm items=${pom.build.sourceModifications}
 ant:available property=classPresent classname=${sm.className}/
 j:if test=${classPresent != 'true'}
   j:forEach var=exclude items=${sm.excludes}
 ant:exclude name=${exclude}/
   /j:forEach
   j:forEach var=include items=${sm.includes}
 ant:include name=${include}/
   /j:forEach
 /j:if
   /j:forEach
 /ant:fileset

and then in your project.xml file, put a line like:

packagejava.util,java.lang,javax.xml.parsers/package

I'm using JDK 1.3.1 and Maven 1.0-rc1

-jake


On Wednesday 14 January 2004 07:25 am, Ebersole, Steven wrote:
 whenever I run the maven javadoc plugin, it does not generate any package
 information (package-list is blank and package-summary is missing).  Any
 ideas what I am missing?

 -
 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: maven jelly tag and build.properties properties

2004-01-14 Thread Jake Ewerdt
I've had various problems when the variable has a . or - in it.  I use a 
workaround like this:

property name=buildnumber value=${build.number} /
j:if test=${empty(buildnumber)} 
  failUsage:  maven -Dbuild.number=x releaseNotes/fail
/j:if

If I put j:if test=${empty(build.number)} , it doesn't work.  This is a 
different code example then yours, but you can apply the idea.

-jake


On Wednesday 14 January 2004 03:25 pm, Ebersole, Steven wrote:
 Same error message.  Tried using a bunch of different plugin contexts
 (test, java, idea)...


 -Original Message-
 From: Gilles Dodinet [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 1:43 PM
 To: Maven Users List
 Subject: Re: maven jelly tag and build.properties properties

 Ebersole, Steven wrote:
 How is it possible to reference a property defined in one of the maven
  properties files (specifically the ~/build.properties) in one of the
  maven jelly tags?  The tag I am trying to use is
  maven:makeRelativePath/.  What I have tried so far is:
 
 1) maven:makeRelativePath var=testDest basedir=${basedir}
  path=${maven.test.dest} separator=/ / 2) maven:makeRelativePath
  var=testDest basedir=${basedir}
  path=${context.getVariable('maven.test.dest')} separator=/ /

 what if you try
 path='${pom.getPluginContext(maven-test-plugin).getVariable(maven.test.d
est)}' ?

 -- gd


 -
 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: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-09 Thread Jake Ewerdt
The 1.3.1 version included with Tru64 in the /usr/java1.3 directory.

java version 1.3.1
Java(TM) 2 Runtime Environment, Standard Edition
Fast VM (build 1.3.1-6, native threads, mixed mode, precompiled rt.jar, 
07/14/2003-13:20)


On Friday 09 January 2004 09:18 am, Erik Husby wrote:
 What version of the JVM were you using?

 I've currently using 1.4.1-1 but I believe I have access to other
 versions which I will be trying today and reporting on.

 I don't have the option to move to Linux for this process.

 Jake Ewerdt wrote:
 I had exactly the same problem with Maven (1.0-rc1) and Tru64.  I could
  run all ant tasks but no ant-optional tasks (junit, chown, replaceregexp,
  ...). I tried with ant 1.5.4 and 1.6.  Spent a day or so trying to get it
  to work, and eventually gave up and moved everything over to Linux where
  it works correctly.
 
 I would also be very interested in a solution!
 
 -jake
 
 On Thursday 08 January 2004 12:05 pm, Erik Husby wrote:
 I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha using
 Compaq Tru64 UNIX V5.1B (Rev. 2650);
 
 Using a shared drive, if I build the project on the Windows XP system,
 it works fine. But if I build, using the same set of files on the Unix
 box, Maven fails to load the JUnitTask as shown below.
 
 
 
 --- Unix Maven
 107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  maven
 test:test
  __  __
 
 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
 
 java:prepare-filesystem:
 
 java:compile:
 [echo] Compiling to
 /home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes
 
 BUILD FAILED
 File..
  file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
  Element... taskdef
 Line.. 89
 Column 9
 taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
 cannot be found
 Total time: 12 seconds
 Finished at: Thu Jan 08 11:41:49 EST 2004
 
 7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
 108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 
 
 --- Windows XP Maven
 F:\workarea\SquidBuild\sequence\commonmaven test
  __  __
 
 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
 
 Attempting to download maven-SNAPSHOT.jar.
 Overriding previous definition of reference to clover.classpath
 java:prepare-filesystem:
 
 java:compile:
 [echo] Compiling to
 F:\workarea\SquidBuild\sequence\common/target/classes
 
 java:jar-resources:
 
 test:prepare-filesystem:
 
 test:test-resources:
 
 test:compile:
 
 test:test:
 [junit] Running edu.mit.wi.genome.common.dba.AllTests
 [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225
  sec 
 
 Its like Maven can't find its jar files. I've verified that
 $MAVEN_HOME/lib contains the same set of jar files on both systems.
 
 Any suggestions on things to look at would be really appreciated.
 
 -
 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: Problem running Maven on an Alpha using Compaq Tru64 UNIX V5.1B (Rev. 2650)

2004-01-08 Thread Jake Ewerdt
I had exactly the same problem with Maven (1.0-rc1) and Tru64.  I could run 
all ant tasks but no ant-optional tasks (junit, chown, replaceregexp, ...).  
I tried with ant 1.5.4 and 1.6.  Spent a day or so trying to get it to work, 
and eventually gave up and moved everything over to Linux where it works 
correctly.

I would also be very interested in a solution!

-jake


On Thursday 08 January 2004 12:05 pm, Erik Husby wrote:
 I've installed Maven-1.0-RC1 on my Windows XP system and my Alpha using
 Compaq Tru64 UNIX V5.1B (Rev. 2650);

 Using a shared drive, if I build the project on the Windows XP system,
 it works fine. But if I build, using the same set of files on the Unix
 box, Maven fails to load the JUnitTask as shown below.



 --- Unix Maven
 107 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common  maven
 test:test
  __  __

 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

 java:prepare-filesystem:

 java:compile:
 [echo] Compiling to
 /home/radon00/mhusby/workarea/SquidBuild/sequence/common/target/classes

 BUILD FAILED
 File.. file:/home/radon00/mhusby/.maven/plugins/maven-test-plugin-1.4/
 Element... taskdef
 Line.. 89
 Column 9
 taskdef class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
 cannot be found
 Total time: 12 seconds
 Finished at: Thu Jan 08 11:41:49 EST 2004

 7.487u 5.990s 0:14.39 93.6%0+581k 10+30io 0pf+0w
 108 11:41am [EMAIL PROTECTED] ~/workarea/SquidBuild/sequence/common 

 --- Windows XP Maven
 F:\workarea\SquidBuild\sequence\commonmaven test
  __  __

 |  \/  |__ _Apache__ ___
 |
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

 Attempting to download maven-SNAPSHOT.jar.
 Overriding previous definition of reference to clover.classpath
 java:prepare-filesystem:

 java:compile:
 [echo] Compiling to
 F:\workarea\SquidBuild\sequence\common/target/classes

 java:jar-resources:

 test:prepare-filesystem:

 test:test-resources:

 test:compile:

 test:test:
 [junit] Running edu.mit.wi.genome.common.dba.AllTests
 [junit] Tests run: 29, Failures: 0, Errors: 1, Time elapsed: 3.225 sec
 

 Its like Maven can't find its jar files. I've verified that
 $MAVEN_HOME/lib contains the same set of jar files on both systems.

 Any suggestions on things to look at would be really appreciated.


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



Java output

2004-01-08 Thread Jake Ewerdt
I need to capture the result of running the java task in the maven.xml file.  The same 
code works in an ant build.xml file, and it should work in the maven.xml file.

 Java file 
package com.jake;
public class Jake {
public static void main(String []args) {
System.out.println(Regular Output);
System.out.println(Error Output);
System.exit(1);
}
}


 build.xml target 
  target name=java-output
path id=test.classpath
fileset dir=target/classesinclude name=com/jake/Jake.class //fileset
/path
java classname=com.jake.Jake classpath=target/classes fork=true 
failonerror=false outputproperty=testoutput errorproperty=testerror 
resultproperty=testresult /
echo message=testresult = ${testresult} /
echo message=testerror  = ${testerror} /
echo message=testoutput = ${testoutput} /
  /target


 maven.xml goal 
  goal name=java-output
path id=test.classpath
  fileset dir=target/classesinclude name=com/jake/Jake.class //fileset
/path
java classname=com.jake.Jake classpath=target/classes fork=true 
failonerror=false outputproperty=testoutput errorproperty=testerror 
resultproperty=testresult /
echo message=testresult = ${testresult} /
echo message=testerror  = ${testerror} /
echo message=testoutput = ${testoutput} /
  /goal


 Ant output 
java-output:
 [java] Java Result: 1
 [echo] testresult = 1
 [echo] testerror  =
 [echo] testoutput = Regular Output
 [echo] Error Output


 Maven output 
java-output:
[java] Regular Output
[java] Error Output
[java] [ERROR] Java Result: 1
[echo] testresult =
[echo] testerror  =
[echo] testoutput =


I should probably complain that the testerror property in the ant call isn't being set 
either, but the testresult is the only property I really need set =)  Any ideas how to 
get the exit value of a java task in maven?

-jake



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



Re: Multiproject and jelly scripting

2004-01-06 Thread Jake Ewerdt
In my maven.xml file, I just reference them like

${pom.artifactId}
${pom.currentVersion}

-jake


On Tuesday 06 January 2004 07:36 am, Hahne, Ronald wrote:
 I need to write a jelly script at the top level of the multiproject
 which
 will optain the POM id and currentVersion of each of the subordinate
 projects. Can anyone tell how to obtain this info?


 Thanks,
   \/
 Ron Hahne(* *)
 C3C032 oo0()0oo
 Brooker Creek : (813) 366-4052
 Cell Phone  : (727) 638-0690


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



Deploy info

2004-01-05 Thread Jake Ewerdt
Where is the documentation on the deploy namespace?  I found a reference to it in some 
documentation, but didn't find any documentation on it.  I would like to know more 
about it and if it includes any more tags.  This is how I am using it.

project xmlns:deploy=deploy
goal name=packagedeploy:copy-deps todir=lib excludes=*unit*.jar//goal
/project

Thanks,

-jake

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



Re: Where and how to set environment variables?

2004-01-02 Thread Jake Ewerdt
In the Ant Optional task documentation under JavaCC, it says you can set the 
javacchome variable for that task, so you wouldn't need an env var.  If maven 
has a javacc plugin, but it won't take a property for javacchome, you'll have 
to modify the plugin.jelly for that plugin or just use the ant task.

http://ant.apache.org/manual/OptionalTasks/javacc.html

-jake


On Friday 02 January 2004 05:43 pm, [EMAIL PROTECTED] wrote:
 Hi, I was wondering, where and how would I set environment variables within
 Maven?  For example, I'm trying to convert the following task attribute
 within my 'maven.xml':

 javacchome=${env.JAVACC_HOME}/bin/lib

 Thanks in advance,

 -Conrad


 -
 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]



Last Sequential File

2004-01-02 Thread Jake Ewerdt
I'm currenly working on moving a build system that comprises mainly of shell scripts 
to maven.  One of the things that the current system does is create a changelog file 
(changelog.${build.number}) that contains all CVS commit logs since the last release.  
We use build numbers, but releases are around every 100 builds, so the number is not 
sequential.

The code I have currently works, but it's not easy to understand and it seems like 
there should be an easier way.  Below is an example goal that works! and gets the last 
modified time from the last sequential file, which in my build process is used to get 
commit log entries from CVS.


--project.xml snippet---
!-- for the script tag --
dependency
  groupIdant/groupId
  artifactIdant-apache-bsf/artifactId
  version1.6/version
  propertiesclassloaderroot/classloader/properties
  urlhttp://jakarta.apache.org/bsf//url
/dependency
!-- for the script tag --
dependency
  groupIdbsf/groupId
  artifactIdbsf/artifactId
  version2.2/version
  propertiesclassloaderroot/classloader/properties
  urlhttp://www-124.ibm.com/developerworks/projects/bsf/url
/dependency
!-- for the javascript-specific script tag --
dependency
  groupIdrhino/groupId
  artifactIdjs/artifactId
  version1.5R4-RC3/version
  propertiesclassloaderroot/classloader/properties
  urlhttp://www.mozilla.org/rhino//url
/dependency


--maven.xml snippet--
  goal name=last-sequential-file description=Finds the last file in a directory 
taskdef name=script classname=org.apache.tools.ant.taskdefs.optional.Script /

!-- the oldest messages log, last sequentially (just an example, not actual use) 
--
fileset id=files dir=/var/loginclude name=messages.*.gz//fileset

!-- Get the count of files --
script language=javascript ![CDATA[
  project.setProperty(count, 
files.getDirectoryScanner(project).getIncludedFiles().length);
]] /script

!-- if no file found, output all changelog entries since the beginning --
j:if test=${count == 0}
  echo taskname=count message=No files were found/
/j:if

j:if test=${count != 0}
  !-- find the last file in that directory --
  script language=javascript ![CDATA[
srcFiles = files.getDirectoryScanner(project).getIncludedFiles();
filename = new java.lang.String(srcFiles[0]);
for (i = 1; i != srcFiles.length; i++) {
  var j = filename.compareTo(srcFiles[i]);
  // the jelly parser can't have a greater than or less than sign or ampersand 
in the script section?
  if (j != 0) if (j != Math.abs(j)) filename = srcFiles[i];
}
project.setProperty(file, filename);
  ]] /script

  !-- Get the last modification time of the last file --
  echo message=Last file (/var/log/${file})/
  u:file name=/var/log/${file} var=lastfile/
  j:set var=mseconds value=${lastfile.lastModified()}/

  !-- transform from seconds to regular time --
  script language=javascript ![CDATA[
importClass(java.lang.Long);
importClass(java.text.SimpleDateFormat);
var formatter = new java.text.SimpleDateFormat(-MM-dd HH:mm);
project.setProperty(from, formatter.format(new 
java.util.Date(Long.parseLong(project.getProperty(mseconds);
  ]] /script

  echo message=The last file was modified at ${from}/
/j:if
  /goal

--END--


I've looked through ant, jelly, and maven documentation, but I couldn't find an easier 
way to do this.  Any ideas?

-jake


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



JUnitTask not found in test:test goal

2003-12-30 Thread Jake Ewerdt
Hello,

I run maven test:test and I get this error:

BUILD FAILED
File.. file:/usr/users/jake/.maven/plugins/maven-test-plugin-1.4/
Element... junit
Line.. 94
Column 39
org/apache/tools/ant/taskdefs/optional/junit/JUnitTask
Total time: 11 seconds
Finished at: Tue Dec 30 12:24:31 EST 2003


I run maven with the -X flag, and it prints out this error (along with 
thousands of other lines):

Root cause
java.lang.NoClassDefFoundError: 
org/apache/tools/ant/taskdefs/optional/junit/JUnitTask


I also see this line, which shows ant-optional and junit in the classpath:

[DEBUG] Adding reference: maven.dependency.classpath - 
...:/usr/users/jake/.maven/repository/junit/jars/junit-3.8.1.jar:/usr/users/jake/.maven/repository/ant/jars/ant-optional-1.5.3-1.jar:...


I have ant-optional and junit in my project.xml dependancies:

dependency
  groupIdant/groupId
  artifactIdant-optional/artifactId
  version1.5.3-1/version
  urlhttp://ant.apache.org/url
/dependency
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  urlhttp://www.junit.org/url
/dependency

and I have also tried adding this line to each of the above, which doesn't 
work:

propertiesclassloaderroot/classloader/properties


The test:compile successfully completes, and the compiled unittests are in the 
target/test-classes directory, so it looks like the main problem is 
ant-optional is not being found.

I'm using Maven 1.0-rc1.

Thanks,

Jake



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



Re: JUnitTask not found in test:test goal

2003-12-30 Thread Jake Ewerdt
No, that didn't work, but thanks for the tip.

I got it to work on my Linux box, but the server I'm trying to get it to work 
on is an HP Alpha running Tru64.  The versions of Ant and Maven are exactly 
the same and all the other JAR files are exactly the same.  The only 
difference is the Java 1.3.1 version and build.
 Linux ---
  java version 1.3.1_10
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_10-b03)
  Java HotSpot(TM) Client VM (build 1.3.1_10-b03, mixed mode)
 Alpha ---
  java version 1.3.1
  Java(TM) 2 Runtime Environment, Standard Edition
  Fast VM (build 1.3.1-6, native threads, mixed mode, precompiled rt.jar, 
07/14/2003-13:20)

That should not be the problem since HP says It passes all the tests in Sun's 
Java Compatibility test suite (JCK V1.3a), and I don't want to be so quick 
to blame it.

So, here's more information that can narrow it down.  The only difference in 
the output generated by maven -X test:test is the second 
maven.dependency.classpath reference.  The Alpha box has ant-optional in that 
line and the Linux box doesn't.  Since the problem is with ant-optional, I 
think the cause of this could be the core of the problem.
 Linux ---
  [DEBUG] Adding reference: maven.dependency.classpath - 
/home/jake/.maven/repository/xerces/jars/xercesImpl-2.6.0.jar:/home/jake/.maven/repository/xerces/jars/xmlParserAPIs-2.6.0xerces.jar:/home/jake/.maven/repository/commons-jelly/jars/commons-jelly-tags-log-20030211.142821.jar:/home/jake/.maven/repository/ant/jars/ant-optional-1.5.3-1.jar:/home/jake/.maven/repository/junit/jars/junit-3.8.1.jar
[available] [VERBOSE] Found: src
[available] [VERBOSE] Found: test
  [DEBUG] Adding reference: maven-classpath -
  [DEBUG] Adding reference: maven.compile.src.set -
  [DEBUG] Adding reference: maven.test.compile.src.set -
  [DEBUG] Adding reference: maven.dependency.classpath -
  [DEBUG] Adding reference: maven-classpath -
  [DEBUG] Adding reference: maven.compile.src.set -
  [DEBUG] Adding reference: maven.test.compile.src.set -
  [DEBUG] Adding reference: maven.dependency.classpath - 
/home/jake/.maven/repository/junit/jars/junit-3.8.1.jar:/home/jake/.maven/repository/xml-apis/jars/xml-apis-1.0.b2.jar:/home/jake/.maven/repository/xerces/jars/xerces-2.4.0.jar
 Alpha ---
  [DEBUG] Adding reference: maven.dependency.classpath - 
/home/jake/.maven/repository/xerces/jars/xercesImpl-2.6.0.jar:/home/jake/.maven/repository/xerces/jars/xmlParserAPIs-2.6.0xerces.jar:/home/jake/.maven/repository/commons-jelly/jars/commons-jelly-tags-log-20030211.142821.jar:/home/jake/.maven/repository/ant/jars/ant-optional-1.5.3-1.jar:/home/jake/.maven/repository/junit/jars/junit-3.8.1.jar
[available] [VERBOSE] Found: src
[available] [VERBOSE] Found: test
  [DEBUG] Adding reference: maven-classpath -
  [DEBUG] Adding reference: maven.compile.src.set -
  [DEBUG] Adding reference: maven.test.compile.src.set -
  [DEBUG] Adding reference: maven.dependency.classpath -
  [DEBUG] Adding reference: maven-classpath -
  [DEBUG] Adding reference: maven.compile.src.set -
  [DEBUG] Adding reference: maven.test.compile.src.set -
  [DEBUG] Adding reference: maven.dependency.classpath - 
/home/jake/.maven/repository/junit/jars/junit-3.8.1.jar:/home/jake/.maven/repository/xml-apis/jars/xml-apis-1.0.b2.jar:/home/jake/.maven/repository/xerces/jars/xerces-2.4.0.jar:/home/jake/.maven/repository/ant/jars/ant-optional-1.5.3-1.jar

The ~/.maven/repository/ant/jars directories are exactly the same.  I even 
deleted the ~/.maven/repository directories and made them pull everything 
fresh from the same repository again.

It seems like the ant-optional on the Alpha box can't be read for some reason, 
and therefore Maven tries to include it again, and then it fails at the end 
because Maven can never read it.

Here are the Ant and Maven versions that are common between boxes:
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

Apache Ant version 1.5.4 compiled on August 12 2003

Thanks,

Jake



On Tuesday 30 December 2003 02:26 pm, Paul Spencer wrote:
 Jake,
 Try adding the following to project.properties

maven.junit.fork=yes

 Paul Spencer

 Jake Ewerdt wrote:
  Hello,
 
  I run maven test:test and I get this error:
 
  BUILD FAILED
  File.. file:/usr/users/jake/.maven/plugins/maven-test-plugin-1.4/
  Element... junit
  Line.. 94
  Column 39
  org/apache/tools/ant/taskdefs/optional/junit/JUnitTask
  Total time: 11 seconds
  Finished at: Tue Dec 30 12:24:31 EST 2003
 
 
  I run maven with the -X flag, and it prints out this error (along with
  thousands of other lines):
 
  Root cause
  java.lang.NoClassDefFoundError:
  org/apache/tools/ant/taskdefs/optional/junit/JUnitTask
 
 
  I also see this line, which shows ant-optional and junit in the
  classpath:
 
  [DEBUG] Adding reference: maven.dependency.classpath -
  ...:/usr/users/jake/.maven

multiproject sample maven.xml ?

2003-09-24 Thread jake stone
I'm new to Maven and my first task is to implement a multiproject environment. 

Could someone possibly post a sample maven.xml that implements the multiproject plugin 
? It would be a nice thing to have in an FAQ sometime as well.


Also, I am curious as to why Maven requires a plugin for what seems to be a task 
intrinsic to its purpose. In my case, I am not trying to build separate projects, but 
rather compile the modules for both the standalone and the client versions of the same 
project. 


thanks a lot

Jake


Re: multiproject sample maven.xml ?

2003-09-24 Thread jake stone
Thanks a lot for everyone's advice. The comment made by Andy Jefferson 
that it's called architecture however, is  a little odd.
Surely architecture should  attempt to  handle gracefully tasks that 
seem intuitive to the user but do not perform as expected.
A user creates a goal that calls two attainGoals, and these two 
attainGoals both call reactors that may share one or more sub projects. 
The build then fails with a very obscure error message. At the very 
least, this should be handled as an exception.

Now, I'm not suggesting that maven is badly architected. On the 
contrary, I will never go back to any other build/project management 
tool, but I do question this specific behaviour and whether it is being 
handled as well as it could be.

Jake

Andy Jefferson wrote:

 

   

A plugin performs a particular task ... whether it is a core plugin, or a 
plugin for an extension task is not important. multiproject is a core 
plugin. Maven provides its capability via plugins, rather than lumping 
everything in a big binary, so you can use what bits you want ... its called 
architecture.



 





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