db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Piéroni (JIRA) <j...@apache.org>
Subject [jira] Commented: (TORQUE-2) Torque plugin for Maven 2
Date Sun, 12 Mar 2006 17:31:39 GMT
    [ http://issues.apache.org/jira/browse/TORQUE-2?page=comments#action_12370080 ] 

Raphaël Piéroni commented on TORQUE-2:
--------------------------------------

Copy from Scarab :
Feb 17, 2006 8:52:49 PM GMT | Added by: Raphaël Piéroni

I have found the problem :
here is the pom i had hacked in my local repository :

<project>
<modelVersion>4.0.0</modelVersion>
<groupId>torque</groupId>
<artifactId>torque-gen</artifactId>
<version>3.1.1</version>

<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>velocity</groupId>
<artifactId>velocity</artifactId>
<version>1.3.1</version>
</dependency>
<!--dependency>
<groupId>village</groupId>
<artifactId>village</artifactId>
<version>2.0-dev-20030825</version>
</dependency-->
<dependency>
<groupId>village</groupId>
<artifactId>village</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.6.2</version>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>2.0.2</version>
</dependency>
</dependencies>
</project>

Maybe you can ask the maven evangelism team to update (as you are a torque committer)
Feb 17, 2006 8:14:15 PM GMT | Added by: Raphaël Piéroni

I just attached the result of the command line call of the "clean install" goals.

Maybe the jdk version and/or the use of some repository definitions are in cause for the problem
you see.
Feb 17, 2006 12:30:20 PM GMT | Added by: Raphaël Piéroni

Yep, i always try from the ide first and also from the command line because some times, things
dont work in the ide and works in command line.

can you send me (directly) the reports so i can see.

maybe it is because i had changed the torque-3.1.1.pom file because it defines no dependency.
i had also declared it at the maven-jira-evangelism. It should be modified at ibiblio now.

My system is : linux 2.6 + java 1.5.0 + maven 2.0.2
Feb 17, 2006 11:39:16 AM GMT | Added by: thomas fischer

After looking at the surefire report, the problem is that xerces classes are required but
no xerces reference seems to be made. The missing xerces class is org.apache.xerces.dom.CoreDocumentImpl.
The java version is 1.5.0, but I do not think this causes the problem.

Raphael, have you ever tried to build the plugin standalone (i.e. outside an ide) ? If not,
maybe your IDE has additional classpath references hidden somewhere.
Feb 17, 2006 10:46:11 AM GMT | Added by: Raphaël Piéroni

The status of the patch is : a first draft of the torque pluginfor maven 2 using torque 3.1.1

For the test cases : is any surefire report generated in the target directory ?

For the compilation issue : maybe it is because i use maven 2.0.2

The plexus test case : inherits of junit. and it is used to correctly find the resources when
calling maven from the command line and from netbeans. The real reason : i had made a plugin
for creating a netbeans freeform project by reading the pom.xml files, and i used the plexus
test case in it, so i used the same ways as i was used and confortable with it.

For the construction of the ant tast : i once asked at the mojo list for an example of using
ant tasks in a mojo, i was sent at the clover plugin for maven 2, and i used the same way
of doing.

I do not mind of the package or the mojo name.

I only have tested it by using the test cases (never in real)
Feb 17, 2006 10:17:01 AM GMT | Added by: thomas fischer

Raphael, thanks for uploading the sources.
I have taken a short look and I've got some questions. This is the first m2 plugin where I
look at the source code so some questions might be stupid.
- What is the status of the patch ? When I unpack the jar and type mvn package many testcases
(probably all, but I did not check it) print out <<<<<<<< FAILURE
!! but no reason what failed. Maybe this is related to the next question.
- When I try to compile the sources using your dependencies I get many unresolved dependencies.
For example, the class org.apache.maven.artifact.repository.DefaultArtifactRepository which
is referenced from the TorqueSQLMojoTest, can not be found in maven-artifact-2.0.jar
- Is there any reason why Plexus test cases should be used and not JUnit tests ?
- what is the reason for the ant tasks being constructed by antProject.createTask(ANT_TASK)
instead of by calling their constructor directly ?
- would you mind if the package name would be changed to org.apache.torque.mojo ?

Feb 12, 2006 7:05:47 PM GMT | Added by: Raphaël Piéroni

The patch has been uploaded
Jan 28, 2006 1:42:26 PM GMT | Added by: thomas fischer

Sorry, your attachment did not make it to scarab. Can you try to append it again, please ?

> Torque plugin for Maven 2
> -------------------------
>
>          Key: TORQUE-2
>          URL: http://issues.apache.org/jira/browse/TORQUE-2
>      Project: Torque
>         Type: New Feature
>   Components: Maven-Plugin
>     Versions: 3.1.1
>     Reporter: Raphaël Piéroni

>
> Here is an archive (tgz) of a first draft of a maven 2 plugin for using torque with some
of the features of the torque plugin for maven 1.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message