Sometime it works

Words are not enough

All | Java

20041217 Friday December 17, 2004

Maven+Eclipse round 2

If you want set the Eclipse MAVEN_REPO var from the console:


maven eclipse:add-maven-repo -Dmaven.eclipse.workspace=C:\\eclipse\\workspace


--Filippo

(2004-12-17 01:00:43.0) Permalink

20041206 Monday December 06, 2004

Maven, XDoclet and Struts

Using xdoclet 1.2.1 with maven-xdoclet-plugin-1.2.1 I got the message:


Tag library requested that is not present: 'maven' in plugin: 'maven-xdoclet-plugin-1.2.1'


To solve the problem:

  1. run from command line: maven plugin:download -DartifactId=maven-xdoclet-plugin -DgroupId=xdoclet -Dversion=1.2.1
  2. edit the file: plugins/maven-xdoclet-plugin-1.2.1.jar/plugin.jelly
  3. remove: xmlns:m="maven"
  4. regenerate the plugin cache: rm -fR ${user.home}\.maven\cache
--Filippo

(2004-12-06 07:05:49.0) Permalink

20040511 Tuesday May 11, 2004

A Struts project maven+eclipse oriented My steps to create a new Struts project maven+eclipse oriented

First I try that Maven is working:

C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts>maven -v
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2

C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts>
Using the plugin genapp with the template struts-jstl I create the project structure:

C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts>maven
 -Dmaven.genapp.param=mavenstruts,mavenstruts,net.vitale.filippo.mavenstruts,fillo genapp
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2

Enter a project template to use: [default]
struts-jstl
build:start:

genapp:
    [copy] Copying 1 file to C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts\src\java
    [copy] Copying 1 file to C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts\src\test
    [copy] Copying 2 files to C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts\src\test-cactus
    [copy] Copying 6 files to C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts
    [copy] Copying 5 files to C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts
BUILD SUCCESSFUL
Total time: 20 seconds
Finished at: Tue May 11 10:09:11 GMT+01:00 2004

C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts>
I found 2 bugs (just notified to the issue tracking) here the workaround:

modify in project.xml:

      strutstest
      2.1.0

in:

      strutstestcase
      2.1-1.1-2.3

and replace these tag:

@ID@
@ID@
@NAME@
@PACKAGE@
After that invoke the eclipse plugin:

C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts>maven eclipse
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc2

eclipse:generate-project:
    [echo] Creating C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts/.project ...

eclipse:generate-classpath:
    [echo] Creating C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts/.classpath ...
    [echo] Contains JUnit tests
    [echo] Setting compile of src\test to target\test-classes
Plugin 'cactus-maven' in project '@NAME@' is not available
    [echo] Setting default output directory to target\classes

eclipse:
    [echo] Now refresh your project in Eclipse (right click on the project and select "Refresh")
BUILD SUCCESSFUL
Total time: 4 seconds
Finished at: Tue May 11 10:23:36 GMT+01:00 2004

C:\Eclipse\eclipse-3.0M8\workspace\MavenStruts>
Now in Eclipse: Import->"Existing project into Workspace" and browse to the right dir.

Setted also the variable "MAVEN_REPO" with "C:/Documents and Settings/Filippo/.maven/repository"


--Filippo

P.S. I didn't investigate yet about the message
"Tag library requested that is not present: 'cactus' in plugin:
'maven-eclipse-plugin-1.6' build:start:"
(2004-05-11 12:39:45.0) Permalink Comments [2]

20040504 Tuesday May 04, 2004

Graphdefang: the way to understand mimedefang

I was searching for a useful tool for understanding the +10000 lines on my mail server syslog, a friend of mine told me about Graphdefang: http://www.bl.org/~jpk/graphdefang

On my FreeBSD 5.2.1 box I installed the following ports:

/usr/ports/devel/p5-File-ReadBackwards /usr/ports/graphics/p5-GD /usr/ports/graphics/p5-GD-Graph /usr/ports/databases/p5-MLDBM /usr/ports/devel/p5-TimeDate

After that I installed the .tgz in /usr/local, modify the config files,added an Alias in httpd.conf, put in /etc/crontab the graphdefangscript for an execute every 15 min. Everything goes smooth.Next time I want try this mod: http://whatever.frukt.org/graphdefang/

(2004-05-04 17:20:24.0) Permalink

Calendar

« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

RSS Feeds

XML
All
/Java

Search

Links


Navigation



Referers

Today's Page Hits: 3