tag:blogger.com,1999:blog-1839316484051079047.post2970600218362523119..comments2024-03-28T06:38:40.958+01:00Comments on Java / Oracle SOA blog: Building with Maven in JDeveloper 11gR2Edwin Biemondhttp://www.blogger.com/profile/02338716126881111629noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-1839316484051079047.post-22164907156094876062011-10-03T09:28:09.557+02:002011-10-03T09:28:09.557+02:00Hi Edwin,
I add jar using "Add from Reposito...Hi Edwin,<br /><br />I add jar using "Add from Repository" in maven dependencies => pom file is updated automaticaly as "Libraries and Classpath" in jdev (added as jar).<br /><br />To compile the war, i only use "package" in the maven goal.<br /><br />I always have few blocking problems : that's why i decided to stop using maven extension. I will use maven as Clémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-52293943195872887702011-09-30T23:02:22.998+02:002011-09-30T23:02:22.998+02:00Hi Clement.
What did you do
My war was using &q...Hi Clement.<br /><br />What did you do <br /><br />My war was using "ADF Libraries".<br />I remove them and select jar after jar, the ones really used in my application ("Adf Library" contain too much jars!). <br /><br />Do you mean the war deployment profile in the projects options and not in the maven settings area.<br /><br />and where did you add the jars. also in the warEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-70715788021109856422011-09-30T22:59:36.062+02:002011-09-30T22:59:36.062+02:00Hi,
indeed you need to clean when you got this er...Hi,<br /><br />indeed you need to clean when you got this error, very strange. Don't know a workaround for this.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-51939834316260862312011-09-30T17:36:31.117+02:002011-09-30T17:36:31.117+02:00Did you resolve the "Cannot construct org.apa...Did you resolve the "Cannot construct org.apache.maven.plugin.war.util.WebappStructure as it does not have a no-args constructor" issue. I am struggling with this one too. What finally worked was to do a "maven clean" before running "maven project". I would prefer a better solution though.Harold Mederhttps://www.blogger.com/profile/05364361630709739852noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-59555499070110686222011-09-29T12:16:19.984+02:002011-09-29T12:16:19.984+02:00Hi,
So for the libs we need to change scope to pr...Hi,<br /><br />So for the libs we need to change scope to provided. And manually add the jars to the war.<br /><br />But how do you generate the ear , use ojdeploy and building is done again. Or do you it manually and include the required files with the possibility we include old outdated files.<br /><br />ThanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-18567008952134888732011-09-29T11:58:08.344+02:002011-09-29T11:58:08.344+02:00Hi again!
My war was using "ADF Libraries&quo...Hi again!<br />My war was using "ADF Libraries".<br />I remove them and select jar after jar, the ones really used in my application ("Adf Library" contain too much jars!). <br />Result : my war has a size of 25 Mo, a good size (less than 10% of war size using ADF Libraries!).Clémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-40596686662665349552011-09-29T10:06:01.301+02:002011-09-29T10:06:01.301+02:00ojdeploy in maven using ant is not a good idea at ...ojdeploy in maven using ant is not a good idea at all...<br /><br />You said that : <br />"The ViewController can now find the Model dependency and you can create the WAR. This is a big one (130) because it adds all the reference jar to the web-inf/lib. You need to control this by deselecting the export option in the Maven project dependency."<br /><br />I've generated a war : 295 Clémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-62745792337984733142011-09-27T10:44:41.329+02:002011-09-27T10:44:41.329+02:00We use maven since 2 years in our ADF development ...We use maven since 2 years in our ADF development (ant task in jdev) without so much problem. But you're right, it's not the best way (some config files are missing, and have to be created ourself). <br /><br />I'll try to use ojdeploy in maven using ant. Perhaps the better solution for now?<br /><br />thanksClémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-3966186959894503612011-09-27T10:27:08.855+02:002011-09-27T10:27:08.855+02:00Hi,
Good to know. I think maven is not very usef...Hi,<br /><br />Good to know. I think maven is not very usefull for ADF development. <br />For Java etc it is very nice.<br /><br />You need to use ojdeploy for making the ear and adf jars. My big frustation. Oracle need to support these artifact in maven or ant. <br /><br />Until then don't use maven or call ojdeploy from maven and do things double. <br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-89615215920911337122011-09-27T09:55:26.912+02:002011-09-27T09:55:26.912+02:00So... it was a bug! With jdev 11gR2, no more probl...So... it was a bug! With jdev 11gR2, no more problem!<br /><br />An other question... is it possible to create an "adf library jar" with maven?<br /><br />ThanksClémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-22274741313106663902011-09-23T13:46:23.705+02:002011-09-23T13:46:23.705+02:00No...
I download it now, and try it.
I'll give...No...<br />I download it now, and try it.<br />I'll give you my feed back<br />ThanksClémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-11403198454675921682011-09-23T12:41:47.879+02:002011-09-23T12:41:47.879+02:00Hi,
Did you have these issues on the 11gR2 versio...Hi,<br /><br />Did you have these issues on the 11gR2 version which is released today. They fixed some maven issues.<br /><br />http://www.oracle.com/technetwork/developer-tools/jdev/jdev-11gr2-nf-404365.html#bugs_fixed_in_11.1.2.1.0<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-60597418996474064002011-09-23T10:43:01.708+02:002011-09-23T10:43:01.708+02:00Hi,
I'm trying to use maven in jdev, but i hav...Hi,<br />I'm trying to use maven in jdev, but i have some dependency problems : <br /><br />For model project : <br />Cannot find parent: com.sun:codemodel for project: com.sun.codemodel:codemodel:jar:null for project com.sun.codemodel:codemodel:jar:null<br /><br />For view project : <br />Cannot find parent: oracle.adf.view.faces:adf-faces for project: null:adf-richclient-api:jar:null for Clémentnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-50983548498543782292011-07-14T11:29:03.023+02:002011-07-14T11:29:03.023+02:00This will not work. There is no simple way to modi...This will not work. There is no simple way to modify "adfm.xml" file. So resulting jarfile will be built but in many cases will not work properly.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-42685190333655159572011-06-16T09:50:04.588+02:002011-06-16T09:50:04.588+02:00I have gone through your post which seems to be mo...I have gone through your post which seems to be more informative. You have explained about the "Maven in JDeveloper" in the detailed manner. <br /><br />Thanx!Anonymousnoreply@blogger.com