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]
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: 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: 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]
Re: OpenJPA (together with jtds) cannot find javax.persistence?
> This is the jar that contains all of the javax.persistence classes. > You may need the other dependencies listed in the OpenJPA POM too. I've now included the following artifacts, as you suggested. I thought, that these will be resolved by the pom-file itself. Problem is, that the failure is still the same. javax.persistence persistence-api net.sourceforge.jtds jtds org.apache.openjpa openjpa org.apache.geronimo.specs geronimo-jpa_3.0_spec org.apache.geronimo.specs geronimo-jta_1.1_spec org.apache.geronimo.specs geronimo-jms_1.1_spec commons-pool commons-pool commons-collections commons-collections commons-lang commons-lang commons-logging commons-logging net.sourceforge.serp serp org.apache.openjpa openjpa-xmlstore org.apache.openjpa openjpa-persistence-jdbc org.apache.openjpa openjpa-persistence org.apache.openjpa openjpa-jdbc org.apache.openjpa openjpa-kernel org.apache.openjpa openjpa-lib My Code goes like this: EntityManagerFactory emf = Persistence.createEntityManagerFactory("appname"); EntityManager em = emf.createEntityManager(); And the error [INFO] Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Persistence Which comes up in the first line, of this code. Imports are correct, eclipse did them. When I use the Injection like this: @PersistenceContext(unitName = "grademaster") private static EntityManager em; it works, but the main-problem is a really strange Error... The injection solved it (at least for me, we'll see, what my database-coder says) for me ;) 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]
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: org.apache.openjpa openjpa 1.2.0 jar compile > 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?
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, > > >org.hibernate >ejb3-persistence >1.0.1.GA > - 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: javax.persistence persistence-api 1.0 jar compile Sill doesn't find the persistence api.The other (important) dependencies for the database-connection are: org.apache.openjpa apache-openjpa 1.2.0 pom compile net.sourceforge.jtds jtds 1.2.2 jar compile 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
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: org.codehaus.mojo exec-maven-plugin package exec java -jar target/${name}.${packaging} 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]
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]