RE: How to get environment variable in maven build property file?

2006-03-03 Thread Chen, Andrew .
Thanks for the hint, however, tools.jar is not in JRE dir :-(  Is there a
jdk.home variable?

137 maven.jar.abbot= ${lib_path}/abbot.jar
138 maven.jar.tools= ${java.home}/lib/tools.jar

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


The build cannot continue because of the following unsatisfied dependency:

tools-.jar; path override doesn't exist:
/a/develop/unix/products/opt/jdk1.5.0_05/jre/lib/tools.jar

Total time: 7 seconds
Finished at: Fri Mar 03 16:38:02 EST 2006



~andrew
x2316 
-Original Message-
From: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 4:10 PM
To: Maven Users List
Subject: Re: How to get environment variable in maven build property file?

If you want to get the java home you can use the system property ${java.home
}

Arnaud

On 3/3/06, Chen, Andrew . <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I use classes from ${JAVA_HOME}/lib/tools.jar .
>
> import com.sun.jdi.Bootstrap;
>
> How do I get enviroment variable such as ${JAVA_HOME} into the 
> property file?
>
> This line doesn't work:
> maven.jar.xerbla= ${JAVA_HOME}/lib/tools.jar
>
> Here is the error:
> [javac] Compiling 1 source file to 
> /a/develop/unix/products/prj/foxfire/foxfire/target/classes
>
>
/a/develop/unix/products/prj/foxfire/foxfire/source/java/src/Tracer.java:10:
> package com.sun.jdi does not exist
>
> I'm using Maven 1.0.
>
> One way I can think of is to copy the tools.jar into my project lib 
> directory.  But I think there got to be a better way doing that.
>
> Thanks
> --
> Andrew Chen
> Engineering Computing
> Nuclear Fuel
> Westinghouse Electric Company
> 1-412-374-2316
>
> -
> 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]



How to get environment variable in maven build property file?

2006-03-03 Thread Chen, Andrew .
Hi,

I use classes from ${JAVA_HOME}/lib/tools.jar .  

import com.sun.jdi.Bootstrap;

How do I get enviroment variable such as ${JAVA_HOME} into the property
file?

This line doesn't work:
maven.jar.xerbla= ${JAVA_HOME}/lib/tools.jar

Here is the error:
[javac] Compiling 1 source file to
/a/develop/unix/products/prj/foxfire/foxfire/target/classes
/a/develop/unix/products/prj/foxfire/foxfire/source/java/src/Tracer.java:10:
package com.sun.jdi does not exist

I'm using Maven 1.0.  

One way I can think of is to copy the tools.jar into my project lib
directory.  But I think there got to be a better way doing that.

Thanks
--
Andrew Chen
Engineering Computing
Nuclear Fuel
Westinghouse Electric Company
1-412-374-2316

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



RE: SmokeTests in Maven

2005-06-07 Thread Chen, Andrew .
We have similar idea.  

There is only one project CVS.  We checked it out into 3 sandboxes, for 3
levels of tests ( be length of testing: unit, acceptance-short,
acceptance-long), then configure project.xml file in each sandbox to include
or exclude certain tests.

The cruisecontrol is setup in different intervals to drive these 3
sandboxes.

--
Andrew Chen
Principal Engineer
Engineering Computing
Nuclear Fuel
Westinghouse Electric Company
1-412-374-2316

-Original Message-
From: Gimbel, Trevor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 07, 2005 1:50 PM
To: Maven Users List
Subject: RE: SmokeTests in Maven


For our application, we have a separate project in CVS and maven (ui-test),
that is used to build and execute our integration tests.

This approach allows us to run the tests on an as needed basis, since they
do take longer than straight JUnit tests.  

-Original Message-
From: Akins, Greg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 1:05 PM
To: Maven Users List
Subject: SmokeTests in Maven


I would like to write some smoke tests against a deployed web application.
 
Seems like I should be able to run Canoo tests after completing a
tomcat:deploy.
 
Can someone advise the easiest/best way to do this?  I had thought about
wrapping some ant/jelly in a postGoal; but thought there might be a better
way?
 
Greg Akins
Software Engineer
Sony Electronics, STP Systems
724.696.7322 (Sony)
724.696.6147 (AV)
724.454.7790 (Cell)
412.590.3973 (Pager)
 

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



Can not generate changelog report, and cruisecontrol email notifi cation list failed

2005-06-06 Thread Chen, Andrew .
Hi,

We use Maven with Cruisecontrol to drive project build.  It was all fine,
until one day...

About several weeks ago, we suddenly have problem about this "CVSROOT/users;
using empty email map" in both maven and cruisecontrol logs.

The problems are:
1. Email could not be sent after cruisecontrol build failed.
2. CVS file change log report can not be generated.  (The report is all
empty)


[java] cvs server: cannot find module `CVSROOT/users' - ignored
[java] [cc]May-26 11:30:35 CVS   - problem getting CVSROOT/users;
using empty email map


It may have something to do with "problem getting CVSROOT/users; using empty
email map".  But I do not have a clue how it happened.  I wonder the problem
is cvs server related.

Anyone had similar problems?  Any hint?  Or what is an intelligent question
to ask?


Thanks in advance
--
Andrew Chen
Senior Engineer
Engineering Computing
Nuclear Fuel
Westinghouse Electric Company
1-412-374-2316


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

How to make executable jar file with dependency?

2005-01-28 Thread Chen, Andrew .
Hi,

Our codes depend on some external libraries, such as xerces.jar, xalan.jar,
..

How to make an executable jar that include everything?

My end command is expected to be:
 java -jar myprj.jar 

What is the best practice in Maven to deploy pure non-j2ee java code?
Should I pack everything into one big jar, or deploy all different jar files
into one directory?

We have tried the manifest in project.properties, and the resource in
project.xml.

Thanks
Andrew H. Chen
Engineering Computing & US BWR
Westinghouse Electric Company

(+1)-412-374-2316

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



Anyone using Doxygen plugin?

2004-07-21 Thread Chen, Andrew .
Has anyone used the Maven plugin for Doxygen.  It is a SourceForge plugin.

How to get started and get it run?

We tried:
  maven doxygen:doxygen

Maven (version 1.0) complained it does not know what is doxygen.

Any hint?

Thanks.
--
Andrew H. Chen
Westinghouse Electric Company, Nuclear Fuel
4350 Northern Pike, Monroeville, PA, 15146
Tel. +1 (412) 374-2316 



Just to convert one xdoc xml file into html?

2004-07-06 Thread Chen, Andrew .
Hi, 
We are keeping our project documents in xdocs xml format, and use Maven to
build html site.  Xdocs are nice, in terms of it is a "semi-standard" way to
having documents in text format.  But it is not WYSIWYG, or it a little hard
to be WYSIWYG.

The default "maven site" or "maven xdoc" are very time consuming, because
each time, all the xml files are re-generated.I looked at the properties
of xdocs, but seems like they all talk about UI and styles, not processing.

Is there a flag or command just to convert with one xml document into html?

Thanks.
--
Andrew H. Chen
Westinghouse Electric Company, Nuclear Fuel
4350 Northern Pike, Monroeville, PA, 15146
Tel. +1 (412) 374-2316 




xdocs build command just to convert one xml file into html?

2004-07-06 Thread Chen, Andrew .
Hi, 
We are keeping our project documents in xdocs xml format, and use Maven to
build html site.  Xdocs are nice, in terms of it is a "semi-standard" way to
having documents in text format.  But it is not WYSIWYG, or it a little hard
to be WYSIWYG.

The default "maven site" or "maven xdoc" are very time consuming, because
each time, all the xml files are re-generated.I looked at the properties
of xdocs, but seems like they all talk about UI and styles, not processing.

Is there a flag or command just to convert with one xml document into html?

Thanks.
--
Andrew H. Chen
Westinghouse Electric Company, Nuclear Fuel
4350 Northern Pike, Monroeville, PA, 15146
Tel. +1 (412) 374-2316 



XML schema for the xdoc (Jakarta site tags)

2003-11-24 Thread Chen, Andrew .
Hi,
Some one may have done it, but since I couldn't find it, so I did it
again...

I'm using the xdocs and site generation functionality of Maven extensively
now for project website.  However, I have trouble validating, and editing
xdoc files.  The site build stops if the xdoc is not valid, and the error
message is not clear enough.  So I need a way to validate xdocs before site
build.

I made a XML schema for Xdocs.  This schema works for the current spec on
this page: http://jakarta.apache.org/site/jakarta-site-tags.html
  

Now I can validate the file in XML Spy ( I have not figured out how to do
XML validation from Jedit though, someone knows how to do it, let me know.),
and Jedit can auto-complete my tags.

To use it, just include this line:

http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://cyber888.com/xsd/xdocs.xsd";>

Currently, the file is located at http://cyber888.com/xsd/xdocs.xsd
  .  Feel free to use in any way.  

Thanks.
--
Andrew H. Chen
Westinghouse Electric Company, Nuclear Fuel
4350 Northern Pike, Monroeville, PA, 15146
Tel. +1 (412) 374-2316 



Maven pdf plugin with missing tables workaround?

2003-11-17 Thread Chen, Andrew .
Hi,
I'm new to maven.  There is a problem with the pdf plugin.  No table is
shown on the final pdf file.  There must be a workaround, since the FOP site
have tables in PDF.

On the first page of pdf plugin
(http://maven.apache.org/reference/plugins/pdf/
 ), there is a line saying
"There is a known problem with the PDF generation tool (Apache's FOP) in
that it doesn't allow for table structures with automatic column widths to
be generated. This means that currently, documents with tables will be
missing content. "

I just found that none of my tables show up in the pdf file, using "maven
pdf".

I guess the problem is in the way I specify tables:


 
1
2



The question is, what does it mean exactly "table structures with automatic
column widths ".  What's the workaround?


Thanks.
--
Andrew H. Chen
Westinghouse Electric Company, Nuclear Fuel
4350 Northern Pike, Monroeville, PA, 15146
Tel. +1 (412) 374-2316