md4j-user Mailing List for md4j
Status: Beta
Brought to you by:
mbatsis
You can subscribe to this list here.
2007 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
From: Manos B. <man...@ge...> - 2008-11-26 12:12:59
|
iam...@gm... wrote: > Hi, > When I trying to install plugin using “mvn install…” command I am > getting the following error. > ________________________________________ > mvn install:install-file -Dfile d4j-0.2-SNAPSHOT.jar > -DgroupId=gr.abiss.md4j -DartifactId=md4j -Dversion=0.2-SPSHOT > -Dpackaging=jar Snapshot releases for md4j (or anything for that matter) are not hosted by the main maven repo; only 0.2 is available there. Please let us know if you find this usefull or have any issues; we are thinking of working on a new version with fixes and JBoss Seam support. Cheers, Manos |
From: <iam...@gm...> - 2008-11-26 11:16:37
|
Hi, When I trying to install plugin using “mvn install…” command I am getting the following error. ________________________________________ mvn install:install-file -Dfile d4j-0.2-SNAPSHOT.jar -DgroupId=gr.abiss.md4j -DartifactId=md4j -Dversion=0.2-SPSHOT -Dpackaging=jar [INFO] Scanning for projects... [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could no eved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/ma l-plugin/2.2/maven-install-plugin-2.2.pom [INFO] --------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] --------------------------------------------------------------- [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-install-plugin Version: 2.2 Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-install-plugin:pom:2.2 from the specified remote repositories: central (http://repo1.maven.org/maven2) ________________________________________ Can you please let me know what can be the issue out here and how to resolve it. |
From: Manos B. <man...@ge...> - 2007-02-23 16:08:08
|
Hey Wayne, You're fast :-) Quoting Wayne Fay <way...@gm...>: > I wanted to share some bug reports... since it seems you don't have > issue tracking set up yet for MD4J. Ah, guess i need to put that [1] in the POM (plus i need a parent POM as an umbrella for md4j (the core) and quickstarter. > I tried just adding a XML parser in the plugin dependencies and that > didn't work. I also tried adding a plugin-config-systemProperties > section like Surefire plugin uses but it didn't work -- that's not a > parameter for hibernate3 -- so I might see about getting that added. Weird. I'm using 1.5 right now but JAXP should have provided that in 1.4 AFAIK. > I did a little research online and discovered this was a known > problem > in Hibernate. It is happening because you have specified the > <mapping/> in your hibernate.cfg.xml -and- provided *.hbm.xml files. > I > commented out the <mapping/> nodes and got right past that problem. Good catch. > So after those fixes, I was able to successfully run mvn and generate > the files etc in domain. I haven't tried anything in the other > modules yet... ;-) I think you will find those modules much easier to use, plus that is where the fun of MD4J starts :-) > Finally, it might be nice to see some tests added to the > quickstarter, > for no reason other than to encourage people to get in a testing > frame > of mind and demonstrate how to configure Surefire to run tests > against > generated Hibernate source files etc. Obviously the tests can't help > people once they've changed the models, but they would give people a > starting point for implementing new tests of their own. I agree with all that but face some issues: * Domain tests would only make sense if generated as well IMHO. * I have no experience in writing tests that depend on a container (with or without mock objects) so this is rather hard for me when there is so much to do :-/ * writing tests for the core is also hard as i cant figure out what i want to test. Havent tried to test ant tasks before either. BTW i dont want to ask too much, but it would be helpfull for the (currently non-existent) other md4j users if we did this on md4j-user [2] :-) [1] https://sourceforge.net/tracker/?atid=779364&group_id=150959&func=browse++ [2] https://sourceforge.net/mailarchive/forum.php?forum_id=51478 Many thanks, Manos |
From: Manos B. <man...@ge...> - 2007-01-24 14:28:58
|
Quoting Konstantinos Papakonstantinou <kpa...@ma...>: > in my pc the JAVA_HOME,classpath,path etc are set to j2sdk1.4.2 (jre > 1.4.2_10) > yesterday i updated the project and then i builded it using maven in > order to get the md4j-0.1.jar > i used the jar (as you describe in ant-how-to file) to create the ant > target in the build file and > then when i'm trying to run the target i'm getting the error: > > *java.lang.UnsupportedClassVersionError: > com/geekologue/md4j/tools/ant/HibernateMappingProcessorTask > (Unsupported > major.minor version 49.0 That probably means the class has ben compiled for Java 5 (although build.properties says 1.4?). What version of Maven are you using? Right now the project has been ported to M2. I havent removed the old POM (project.xml) yet, but the maven 1 build should be broken. Have you tried the ready-to use jar from the SF project page? Try that one; in the meantime i'll finish up with the maven 2 port and you'll be able to build on java 1.4. hth, Manos |
From: Konstantinos P. <kpa...@ma...> - 2007-01-24 13:53:46
|
in my pc the JAVA_HOME,classpath,path etc are set to j2sdk1.4.2 (jre 1.4.2_10) yesterday i updated the project and then i builded it using maven in order to get the md4j-0.1.jar i used the jar (as you describe in ant-how-to file) to create the ant target in the build file and then when i'm trying to run the target i'm getting the error: *java.lang.UnsupportedClassVersionError: com/geekologue/md4j/tools/ant/HibernateMappingProcessorTask (Unsupported major.minor version 49.0) * |