On 1/19/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> FWIW, the Maven 1 plugin worked fine.  (Worked as in 'reformatted the
> struts-action code, and it still compiled afterwards.')

Did you have a chance to peek at the CheckStyle report? For Action
right now, we're seeing  a brutal 4733 errors in 281 files.


> http://maven.apache.org/maven-1.x/reference/plugins/jalopy
>
> To install the latest:
>
> maven plugin:download
>   
> -Dmaven.repo.remote=http://www.ibiblio.org/maven,http://cvs.apache.org/repository/
>   -DgroupId=maven
>   -DartifactId=maven-jalopy-plugin
>   -Dversion=1.4
>
> The default config file for it is here:
> <http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/jalopy/src/plugin-resources/jalopy_maven.xml>
> (Assuming it hasn't changed since the release.)
>
> Set the maven.jalopy.style property to the new config file.  The
> project.xml file indicates that this is based on Jalopy 1.5b5.

Did you do anything else besides this, Wendy. Against a fresh
checkout, freshly built, I tried installing the plugin and running the
jalopy:format and jalopy targets, but a dependency seems to be
missing: Here's the screen history:
----

E:\projects\current\build>maven plugin:download -Dmaven.repo.remote=http://www.i
biblio.org/maven,http://cvs.apache.org/repository/ -DgroupId=maven -DartifactId=
maven-jalopy-plugin -Dversion=1.4
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

plugin:download-artifact:
    [mkdir] Created dir: C:\Documents and Settings\ted_2\.maven\repository\maven
\plugins
    [echo] repo is 'http://www.ibiblio.org/maven'
    [echo] trying to download http://www.ibiblio.org/maven/maven/plugins/maven-j
alopy-plugin-1.4.jar
11K downloaded

plugin:download:
    [delete] Deleting 1 files from C:\Program Files\Apache Software Foundation\M
aven 1.0.2\plugins
    [delete] C:\Documents and Settings\ted_2\.maven\plugins not found.
    [delete] Deleting 8 files from C:\Documents and Settings\ted_2\.maven\cache
    [delete] Deleted 3 directories from C:\Documents and Settings\ted_2\.maven\c
ache
    [copy] Copying 1 file to C:\Program Files\Apache Software Foundation\Maven 1
.0.2\plugins
BUILD SUCCESSFUL
Total time: 6 seconds
Finished at: Thu Jan 19 08:50:14 EST 2006

E:\projects\current\build>cd ..\action

E:\projects\current\action>maven jalopy:format
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

plugin maven-jalopy-plugin-1.3.1 is cached (goal) but no longer present
Cache invalidated due to out of date plugins
Attempting to download jalopy-1.5b5.jar.
1292K downloaded
Attempting to download jalopy-ant-0.1-1.5b5.jar.
12K downloaded
Attempting to download aelfred-1.2.jar.
25K downloaded
Attempting to download log4j-1.2.12.jar.
349K downloaded
Attempting to download textarea-2.2.3.jar.
65K downloaded
build:start:

jalopy:taskdef:

java:prepare-filesystem:

java:compile:
    [echo] Compiling to E:\projects\current\action/target/classes

jalopy:format:
    [jalopy] Jalopy Java Source Code Formatter 1.0.0
    [jalopy] [ERROR] ???:0:0: ClassNotFoundException: de.hunsicker.jalopy.langua
ge.ExtendedToken
???:0:0: ClassNotFoundException: de.hunsicker.jalopy.language.ExtendedToken
    [jalopy] [ERROR] ???:0:0: java.lang.NullPointerException
???:0:0: java.lang.NullPointerException
    [jalopy] [ERROR] ???:0:0: ClassNotFoundException: de.hunsicker.jalopy.langua
ge.ExtendedToken
???:0:0: ClassNotFoundException: de.hunsicker.jalopy.language.ExtendedToken
    [jalopy] Format 133 source files
    [jalopy] E:\projects\current\action\src\java\org\apache\struts\action\Action
.java:0:0: Parse
E:\projects\current\action\src\java\org\apache\struts\action\Action.java:0:0: Pa
rse
java.lang.NullPointerException

<snip/>

BUILD FAILED
File...... C:\Documents and Settings\ted_2\.maven\cache\maven-jalopy-plugin-1.4\
plugin.jelly
Element... ant:jalopy
Line...... 64
Column.... 46
Error formatting file
Total time: 17 seconds
Finished at: Thu Jan 19 08:51:59 EST 2006

E:\projects\current\action>

----

I tried again using just "jalopy" as the goal, and running
"jalopy:taskdef" first, but with the same result.

-Ted.

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

Reply via email to