-
1. Re: Seam + Maven/Ant
juntao Oct 11, 2007 2:48 AM (in response to marx3)Hmm, what is the error message you got when using my maven project template you mentioned? Thanks.
-
2. Re: Seam + Maven/Ant
marx3 Oct 11, 2007 3:01 AM (in response to marx3)I didn't finish POM editing because I don't have enough skills. What stopped me is to define repository to hold WAR and JAR, because as I understand I need first build JAR, WAR, put to repository and next build EAR from this repository.
So I started by redefining project structure made by seamgen to match those proposed by you, and tried to change Ant buildfile. So for now I could build project with Ant (because I need to start coding), and later give another person task to mavenize project (having proper structure should help). -
3. Re: Seam + Maven/Ant
marx3 Oct 11, 2007 3:43 AM (in response to marx3)mvn errors:
Validation Messages:
[0] 'dependencies.dependency.version' is missing for org.jboss.seam:jboss-s
eam-debug
Reason: Failed to validate POM for project pl.wasko.esp:war at C:\projekty-jsf\e
sp\ear\pom.xml
The same with JUnit package -
4. Re: Seam + Maven/Ant
hamtho2 Oct 11, 2007 9:38 AM (in response to marx3)Then you should probably do, what you´ve been told by this error-message.
Add a version to your artifact you´d like to use.
For example a full artifact should look like this:<dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>1.4</version> </dependency>
By the way: you can also have a look at http://www.mvnrepository.com. There you simply have to search for the artifact you are looking for and the complete code for inserting into your pom is done as well. So it´s only copy & paste.
Good luck
Thomas -
5. Re: Seam + Maven/Ant
marx3 Oct 11, 2007 9:50 AM (in response to marx3)i've added version number, hovewer it's unclear for me why sometimes I need to put this numbe, and sometimes I don't. Also XML validator says version numbe isn't proper in this place, but maybe it's validator's error.
After fixing it:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Project 'pl.xxx.esp:war' is duplicated in the reactor
It seems I need to give diferent ArtifactId for WAR, JAR etc? -
6. Re: Seam + Maven/Ant
hamtho2 Oct 11, 2007 10:29 AM (in response to marx3)Maybe you have a parent-pom included in your pom, where you have already declared a version?
Just an idea! -
7. Re: Seam + Maven/Ant
marx3 Oct 12, 2007 1:57 AM (in response to marx3)i made POMs just like in example from link above, so I have no idea if "mystuff" should be different in every POM (in example they are all the same).
I've finally modifed ANT buildscript so I can build project with mavenized structure, I hope in future there will be working example of mavenized project to adapt my own.