Re: aspectj:compile

2003-11-17 Thread Raphaël Piéroni
Hello,
anwser inserted after.

 --- [EMAIL PROTECTED] a écrit :  
 
 Hi,
 
 I want to compile a project with some aspects but I've got this error
 :
 
  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT
 
 aspectj:compile:
 [ajc] Compiling 16 source and 0 arg files to
 C:\projects\j2eeservice\target\classes
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 public void Statement.setResultSetCache(OracleResultSetCache)
 conflicts with
 public void Statement.setResultSetCache(*): defined in same type
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 public abstract void
 OracleStatement.setResultSetCache(OracleResultSetCache)
 conflicts with public abstract void
 OracleStatement.setResultSetCache(*): defined i
 n same type
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 missing type oracle.jdbc.OracleResultSetCache
 12 errors
 
 
 
 I using maven-aspectj-plugin-1.1.jar
 
 and have aspectjrt-1.1.0.jar and aspectjtools-1.1.0.jar in my
 dependencies.
 
 The Java files I wan't to weave are Entity/Session beans. Nothing to
 do with
 oracle.jdbc.OracleResultSetCache.
 
 Have you got any idea ?
yep : the aspectj seems to need all your resources (even the one which
will be needed only when executing) at compile time.

the last time i used it, it complains that a dep was missing. but that
dep was not needed to compile (no import) i believed. but that was not
the case.

R

=

| Raphaël Piéroni  |
| 33+ 223 351 354  |
| mailto:[EMAIL PROTECTED]|
| http://www.dexem.com |
| mailing:[EMAIL PROTECTED] |


___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

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



Re: XDoclet, Struts and Maven: Where to start?

2003-11-17 Thread Konstantin Priblouda

--- Moritz Petersen [EMAIL PROTECTED] wrote:
 Hi Konstantin,
 
 you gave me very helpful pointers, thank you! But I
 still can't get it 
 work. I must have missed something very obvious.
 
 A look into plugin.jelly discovered:
 
 ...
 
 j:set var=subelement_index value=0/
 j:forEach begin=0 end=20
 indexVar=subelement_index
 j:set var=subelement_index_var_name 

value=maven.xdoclet.webdoclet.strutsconfigxml.${subelement_index}/
j:if

test=${context.getVariable(subelement_index_var_name)
 == 
 'true'}
 
 ...
 
 So, I added the property
 
 maven.xdoclet.webdoclet.strutsconfigxml.0=true

maven.xdoclet.webdoclet.strutsconfigxml.0.enybled=true

maven.xdoclet.webdoclet.strutsconfigxml.0.Version=1.1
 
 but it still doesn't work. So I tried additionally:
 
 maven.xdoclet.webdoclet.fileset.4=true
 
 
 because I thought it would ignore my *Action
 classes, but it still 
 didn't made it work. Changing 0 to 4 in the
 strutsconfigxml 
 properties also didn't change anything.
 I am pretty sure, that my properties are not ignored
 in general, 
 because I define properties for other Xdoclet
 modules 
 (hibernatedoclet), which are not ignored.
 
 Do you have any clue about what I am missing?

Well, did you activated maven debug? This produces a
lot of output, where you may find some clues. 

Here are my properties for externalizer  hibernate:
( I do not use struts at all , so can not help with
working example )
---%--
maven.xdoclet.xdoclet.destDir=${basedir}/target/xdoclet/xdoclet
maven.xdoclet.xdoclet.externalizer.0=true
maven.xdoclet.xdoclet.externalizer.0.destinationFile={0}{1}.properties

maven.xdoclet.xdoclet.propertiestranslator.0=true
maven.xdoclet.xdoclet.fileset.0=true
maven.xdoclet.xdoclet.fileset.0.include=**/*.java

---%-

regards,



=
[ Konstantin Pribluda ( ko5tik ) ]
Zu Verstärkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] für die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
[ http://www.pribluda.de ]

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



small error in plugin.jelly in maven-webserver-plugin-2.0-dev

2003-11-17 Thread Mylene Reiners
Hi,

When I tried to run maven site:generate, I got an error stating: a pseudo
attribute name is expected (line 1, pos. 20) of plugin.jelly in
maven-webserver-plugin-2.0-dev.
Checking the plugin.jelly file, I found a missing question mark.
Line 1 is:   ?xml version=1.0
should be: ?xml version=1.0?

Regards,

Mylene

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



PMD report exclusions

2003-11-17 Thread nick.giles

I'm producing a PMD report on my code, but I want to exclude some
classes that are generated by JavaCC, because it makes code analysers go
nuts. Just one parser produces two thousand violations... It seems that
a single exclusion pattern works fine, but as soon as I put in a comma
separated list all the exclusions are ignored. For example:

maven.pmd.includes=com/foo/project/**/*.java
maven.pmd.excludes=com/foo/project/package/SomeParser*.java

works fine, analysing everything except the SomeParser classes. However,


maven.pmd.includes=com/foo/project/**/*.java
maven.pmd.excludes=com/foo/project/package/SomeParser*.java,
com/foo/project/package/ADifferentParser*.java

causes the analyser to match as though only maven.pmd.includes was
specified.

Any ideas here, or should I head off to JIRA?

Cheers,

Nick

---
Research Engineer
Intelligent Systems Lab, BT Exact
Tel:   (+44)1473 605 894
Email: [EMAIL PROTECTED]

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



Checkstyle problem

2003-11-17 Thread Serkan GUNES
Hello

I have some problems about the maven checkstyle plugin.
I am using maven-checkstyle-plugin2.1. I have issued maven checkstyle command at my 
project home directory. First I got a warning like this.

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

checkstyle:init:

checkstyle:license:
[echo]
=
= W A R N I N G =
=
=  Your project doesn't contain a header file specified as: =
=  D:\Rep\myProject\LICENSE.txt
=  Checkstyle needs it to check the existence of the License in =
=  your source files. If it can't find this file, it throws an  =
=  error.   =
=  A temporary solution is to create an empty LICENSE.txt file. =
=  Though, we recommend that you edit this License. =
=

BUILD SUCCESSFUL 

After that I have created an empty LICENSE.txt file and issued the same command again. 
This time I got an error not warning. It is shown below.
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

checkstyle:init:

checkstyle:license:

checkstyle:report:
[echo] Using C:\Documents and Settings\myuser\.maven\plugins\maven-checks
tyle-plugin-2.1\plugin-resources/sun_checks.xml for checkstyle ...

BUILD FAILED
File.. file:/C:/Documents and Settings/myuser/.maven/plugins/maven-checks
tyle-plugin-2.1/
Element... ant:checkstyle
Line.. 127
Column 65
antlr/TokenStreamException

Am I doing something wrong?
I will be very pleased if you help me.
Best Regards,

Serkan Gne
Software Specialist

iNNOVA BiLM ZMLER A..
T Ayazaa Kamps, ARI 1 Teknokent Binas
34469   Maslak Istanbul-Turkey
T: +90 (212) 286 44 10
F: +90 (212) 286 44 02

ODT kizleri Ar-Ge Binas
06531 ODT Teknokent Ankara-Turkey
T: +90 (312) 210 16 86
F: +90 (312) 210 16 96

[EMAIL PROTECTED]
www.innova.com.tr




GIZLILIK NOTU
Bu e-posta mesaji gizli, hassas bilgi ve/ya da ekler icerebilir. Bu mesaj, mesajin 
alici kisminda belirtilen kullanici/kullanicilara gonderilmistir. Eger mesaji 
yanlislikla almissaniz lutfen gondereni acilen bilgilendiriniz, mesaji ve tum 
kopyalarini siliniz.
Bu mesaj bilinen tm viruslere karsi Symantec Antivirus ile taranmistir.

 
CONFIDENTIALITY NOTICE
This email may contain confidential information and/or attachments. This email is 
intended for the use of the addressee only. If you receive this email by mistake, 
please advise the sender immediately and delete the email and any copies of it.
This e-mail has been scanned by Symantec Antivirus for all known viruses. 



where is xdoclet plugin

2003-11-17 Thread Nicolas . CHALUMEAU
It try to find the xdoclet plugin jar. I look in the xdoclet site but I 
don't find it ! So could some one point me to it ...

Nicolas

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



Jalopy and rt.jar

2003-11-17 Thread Brian Burridge
When I run maven jalopy:format I get the error below. How do I tell it
where to find rt.jar?


jalopy:format:
[jalopy] Jalopy Java Source Code Formatter 1.0b10
[jalopy] Could not find the Java runtime library (rt.jar), import
optimization feature will be disabled.

BUILD FAILED
File.. file:/home/bburridg/.maven/plugins/maven-jalopy-plugin-1.1/
Element... ant:jalopy
Line.. 48
Column 46
java.io.IOException: Error in building
Total time: 13 seconds
Finished at: Mon Nov 17 11:33:50 GMT-05:00 2003

Brian


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



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/
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:

table
tr 
td1/td
td2/td
/tr
/table

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 



Maven Article

2003-11-17 Thread Andy Jefferson
I wrote an article on the use of Maven within the world of JDO (Java Data 
Objects) - particularly plugins for JDO implementations. You can read it over 
at JDOcentral

http://www.jdocentral.com/JDO_Articles_20031117.html

Feel free to link to it from the Maven Articles webpage.
-- 
Andy


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



RE: Can I tell checkstyle to ignore certain packages?

2003-11-17 Thread Vincent Massol
Brian,

You can use maven.checkstyle.includes and maven.checkstyle.excludes. See
the doc for the CS plugin:

http://maven.apache.org/reference/plugins/checkstyle/properties.html

-Vincent

 -Original Message-
 From: Brian Burridge [mailto:[EMAIL PROTECTED]
 Sent: 17 November 2003 21:13
 To: Maven Users List
 Subject: Can I tell checkstyle to ignore certain packages?
 
 Is there a way to tell checkstyle, through Maven, to ignore certain
 packages when it runs? Right now Maven apparently just passes on the
 base directory for all source code, but there are a few packages we
have
 that are from a 3rd party, and we don't need to see reports on them
 since we can't change them.
 
 Brian N. Burridge
 IBM
 
 -
 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 and throws

2003-11-17 Thread Brian Burridge
  /***
63  * getProfileData
64  * Gets the profile data like accounting server url, userid,
passwd..etc
65  * from the database by calling the stored procedure and copies
the data in
66  * to a hashmap
67  *
68  * @return HashMap contains the name-value pairs retrieved from
the profile
69  *
70  * @param systemID System ID
71  * @param appInstance Application Instance
72  * @param dbName Database Name
73  *
74  * @throws NamingException
75  * @throws SQLException
76  */
77  public HashMap getProfileData(
78  String systemID,
79  String appInstance,
80  String dbName)
81  throws NamingException, SQLException {
82  HashMap profile;
83  Connection connection = null;

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



war problem

2003-11-17 Thread alain
Hi:

I used war plug in to generate my_project.warbut in the WEB-INF/lib directory 
there is nothing.In fact there are a numbers jar file shoud be there(I have configured 
some dependency/dependency in the project.xml). Can anyone tell me what's the 
problem?

Thanks!

Alain

RE: war problem

2003-11-17 Thread Brett Porter
Inside each dependency:
(Bproperties
(B  war.bundletrue/war.bundle
(B/properties
(B
(B- Brett
(B
(B -Original Message-
(B From: alain [mailto:[EMAIL PROTECTED] 
(B Sent: Tuesday, 18 November 2003 11:45 AM
(B To: Maven Users List
(B Subject: war problem
(B 
(B 
(B Hi:
(B 
(B I used war plug in to generate my_project.war$B!$(Jbut in the 
(B WEB-INF/lib directory there is nothing.In fact there are a 
(B numbers jar file shoud be there(I have configured some 
(B dependency/dependency in the project.xml). Can anyone 
(B tell me what's the problem?
(B 
(B Thanks!
(B 
(B Alain
(B