PDF-Renderer available as dependency?
Hi, i'm searching for a repository which provides the sun pdf-renderer (https://pdf-renderer.dev.java.net/) for the use as a dependency to maven. Together with iText, I want to generate PDF-Files dynamically, show them as a print-preview to the user and print them afterwards (without using adobe as an external program). Anybody aware of such a repository? Or do I have to do it on my own (never did that before.) Thanks in advance! Uli
AW: maven2eclipse ide integration
Hi, install the Maven Central Repository Index which can be found below Maven Optional Components in the eclipse-updater. This should solve your Problem. Regards, Uli -Ursprüngliche Nachricht- Von: msclovis [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 25. November 2008 03:56 An: users@maven.apache.org Betreff: maven2eclipse ide integration I am not sure if this is where to post but here it goes.. Hi all, And thanks in advance... I am using (or trying to) the maven2eclipse IDE integration to edit poms and use it for dependencies. Theoretically ( and I have seen it work) you could search for Spring or org.springframework and choose which part of spring you desire. If I try that , I get zero results. Which tells me I have this configured or installed incorrectly. I followed the Installation guide step by step. Does anyone have any ideas. I am using the Ganymede install and I did see it work at one point. Thanks for any help in advance. Mike -- View this message in context: http://n2.nabble.com/maven2eclipse-ide-integration-tp1574843p1574843.html Sent from the maven users mailing list archive at Nabble.com. - 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]
AW: OpenJPA (together with jtds) cannot find javax.persistence?
How are you adding these jars to your runtime classpath? Maven downloads them from the central repository as soon as I run maven. I did not add any external repositories, I'm using the default one. Why do I assume, that everything is included into the classpath? I've also included itext, junit and javadoc via pom.xml and these work flawlessly without any changes. My .classpath looks like this: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src output=target/classes path=src/main/java/ classpathentry excluding=** kind=src output=target/classes path=src/main/resources/ classpathentry kind=src output=target/test-classes path=src/test/java/ classpathentry excluding=** kind=src output=target/test-classes path=src/test/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry kind=con path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER/ classpathentry kind=output path=target/classes/ /classpath Perhaps this helps to figure out why javax.persistence doesn't work on my project... Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: OpenJPA (together with jtds) cannot find javax.persistence?
Thanks for the hint. I've tried it together with javax.persistence and without, adding some other packages of hibernate, but had no luck. I've solved the problem for now by using a EJB injection. I don't know any other way to solve this. Thanks anyway for your answer! Uli I thought you could use Hibernate's JPA stuff just for JPA, without needing to use the full Hibernate package. For example, dependency groupIdorg.hibernate/groupId artifactIdejb3-persistence/artifactId version1.0.1.GA/version /dependency - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: OpenJPA (together with jtds) cannot find javax.persistence?
What kind of project is this -- jar, war, ear, etc? And are you sure the artifact providing the Persistence class is available in the classpath at runtime? Are you sure the type=pom is appropriate for the openjpa artifact? This was wrong of course, thank you. I've tried too many configurations for openjpa...The correct configuration would be: dependency groupIdorg.apache.openjpa/groupId artifactIdopenjpa/artifactId version1.2.0/version typejar/type scopecompile/scope /dependency The persistence-api is just that, an API, eventually someone has to provide an implementation somewhere in the project for things to work. I've used an example from the manual of openjpa, but now I found a way to solve my issue by using a EJB injection. Hopefully this will work with two databases. I installed the J2EE-SDK, but this didn't solve my issue...for now I will use the injection. Thank you for your answer! Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: OpenJPA (together with jtds) cannot find javax.persistence?
Sorry, I forgot to answer the first two questions, perhaps these could lead to a solution. What kind of project is this -- jar, war, ear, etc? It's a JAR-project. And are you sure the artifact providing the Persistence class is available in the classpath at runtime? As every other artifact is available, I think: Yes, it's available. Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OpenJPA (together with jtds) cannot find javax.persistence?
Hello, in a project of a new customer we have to add several functionalities to an existing desktop application (swing) which accesses a mssql-database-server. To simplify the process of testing and packaging for a team of 4 developers, we've set up maven. Problem is, that we have to use openjpa (the application already uses it). But I have some serious issues with the javax.persistence which is needed for openjpa: [INFO] Exception in thread main java.lang.NoClassDefFoundError: javax/persistence/Persistence [INFO] at tld.company.appname.database.meta (Startup.java:19) [INFO] Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence [INFO] at java.net.URLClassLoader$1.run(Unknown Source) As you can see, javax.persistence is not available in the classpath. I have added the following dependency to my pom.xml to hopefully solve this issue, but it didn't work: dependency groupIdjavax.persistence/groupId artifactIdpersistence-api/artifactId version1.0/version typejar/type scopecompile/scope /dependency Sill doesn't find the persistence api.The other (important) dependencies for the database-connection are: dependency groupIdorg.apache.openjpa/groupId artifactIdapache-openjpa/artifactId version1.2.0/version typepom/type scopecompile/scope /dependency dependency groupIdnet.sourceforge.jtds/groupId artifactIdjtds/artifactId version1.2.2/version typejar/type scopecompile/scope /dependency I've searched a lot, but didn't find other solutions than converting the project to hibernate or to install the j2ee-sdk. The first solution (hibernate) is a little too much at the moment (this would require a bigger amount of time and probably a change-request). The second one would be my last choice, as we have nothing to do with j2ee until now. Is there any easier way (hopefully simply by adding some package to the pom.xml)? Or did I overlook something? Everything works without the database, every additional library (e.g. iText) can be found, so what can I do? If you need any descriptions or additional information, let me know! Thanks in advance! Regards, Uli
Execution of the *.jar-File after successful building of package possible?
Hello, when I build my project with the goal package I get a *.jar-File, which I have to execute manually after the compilation packaging. Is there any way to automatically execute this file directly after maven has completed this task? [INFO] BUILD SUCCESSFUL = java bla.jar Thanks in advance! Best Regards, Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Execution of the *.jar-File after successful building of package possible?
This plugin did the trick, thank you very much. The documentation is really strange, but I got it :) For interested Readers: plugin groupIdorg.codehaus.mojo/groupId artifactIdexec-maven-plugin/artifactId executions execution phasepackage/phase goals goalexec/goal /goals /execution /executions configuration executablejava/executable arguments argument-jar/argument argumenttarget/${name}.${packaging}/argument /arguments /configuration /plugin Thank you very much! Regards, Uli -Ursprüngliche Nachricht- Von: Christian Schulte [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. November 2008 00:37 An: Maven Users List Betreff: Re: Execution of the *.jar-File after successful building of package possible? Ulrich Wolf wrote: Hello, when I build my project with the goal package I get a *.jar-File, which I have to execute manually after the compilation packaging. Is there any way to automatically execute this file directly after maven has completed this task? The exec-maven-plugin can do this, I think. http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html -- Christian - 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]