Forum Ametys

Forum de la communauté Ametys

You are not logged in.

#1 25/07/2014 15:41:21

fahime
Guest
Registered: 27/06/2014
Posts: 18

Compile web component

Hi,

I followed  exactly steps in "Using an Ametys component in the Eclipse IDE"  of

1. I exported
and do setting in Window > Preferences menu of eclipse
2.I exported  , for compile web component
but when I right click on the ivy.xml file in the component's project and choose Add Ivy Library
eclipse get this error:

'IvyDE resolve' has encountered a problem.

Some projects fail to be resolved
Impossible to resolve dependencies of org.ametys.web#web#3.6.x;working@fahime-EX460-EX461
unresolved dependency: org.ametys.tools#tools;1.1.8: not found
unresolved dependency: org.ametys.plugins#explorer#2.6.x;2.6.0.20140625-0347-b1093-SNAPSHOT: not found
unresolved dependency: org.ametys.plugins#repository#2.6.x;2.6.0.20140625-0300-b1159-SNAPSHOT: not found
unresolved dependency: org.ametys.plugins#workflow#1.3.x;1.3.0: not found

Last edited by fahime (26/07/2014 07:28:36)

Offline

#2 28/07/2014 12:13:42

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Compile web component

Your ivyrep seems to be missconfigured ; because as you can see here it should load tool 1.1.8 here :

Can you bring screenshot of your ivy configuration in Eclipse (general conf and project conf)


Raphael Franchet
Expert Ametys

Offline

#3 29/07/2014 09:03:38

fahime
Guest
Registered: 27/06/2014
Posts: 18

Re: Compile web component

I exported ivyrep from svn and my ivysettings.xml file is exactly
I exported web component from  ,so my ivy.xml file is exactly

when I build web component with command:
$ ant -Divy.settings=/path/to/locally/checked-out/ivyrep/ivysettings.xml
build is successful,
then I add builded web component as a new Java project in eclipse,then right click on the ivy.xml file in the component's project and choose Add Ivy Library.in this step I get reported error.

Thank you very much,

Last edited by fahime (29/07/2014 09:55:31)

Offline

#4 29/07/2014 10:06:17

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Compile web component

So it shows that it is an Eclipse configuration problem as I suspected before.
Can you show me with screenshots your Eclipse ivy configuration (in Window/Preference/Ivy) and in the project properties in the java classpath.


Raphael Franchet
Expert Ametys

Offline

#5 30/07/2014 13:32:28

fahime
Guest
Registered: 27/06/2014
Posts: 18

Re: Compile web component

Thanks for your reply.
I can't add my screenshots to  post,img icon in toolbar just add a  tag and don't show browse window

Last edited by fahime (30/07/2014 13:32:54)

Offline

#6 30/07/2014 14:19:23

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Compile web component

Instead of using the fast reply under the post, click on the link "Answer to this post" : this will redirect to a new window where you will be able to add attachments


Raphael Franchet
Expert Ametys

Offline

#7 01/08/2014 08:18:14

fahime
Guest
Registered: 27/06/2014
Posts: 18

Re: Compile web component

Hi,
ا've attached my Eclipse screenshots to this post,
thanks in advance

Offline

#8 01/08/2014 09:10:45

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Compile web component

Parameters seems to be correct.
Is the computer with eclipse connected to internet?

I can see you did add manually "cocoon-2.2.0" jars ; but all dependencies will be retrived by ivy. so remove all manual dependencies.
Can you give me your .classpath file please.


Raphael Franchet
Expert Ametys

Offline

#9 02/08/2014 09:05:37

fahime
Guest
Registered: 27/06/2014
Posts: 18

Re: Compile web component

I deleted old web project from Eclipse,then export  in web folder (I've attached screenshots of my folders)
then I edited  <property name="common-build" location="../deliver/common-build.xml"/> in build.xml file,because my deliver project and web project are in the same level.
after that I build web project with command prompt ant tool and add it as a new java project to Eclipse

my computer is connected to internet, I deleted manually "cocoon-2.2.0" jars and now I have errors like 'org.apache can not be resolved'

I've attached my screenshots and .classpath file

thanks in advance

Offline

#10 25/08/2014 10:40:45

Raphaël Franchet
Expert Team
From: Toulouse
Registered: 10/08/2010
Posts: 1,117

Re: Compile web component

In your classpath I can see this

    <classpathentry kind="lib" path="target/ivy/jars/ametys-web-resources.jar"/>
    <classpathentry kind="lib" path="target/ivy/jars/ametys-web.jar"/>
    <classpathentry kind="lib" path="target/ivy/javadocs/ametys-web.jar"/>
    <classpathentry kind="lib" path="target/ivy/sources/ametys-web.jar"/>

1) do not manually add any lib
2) your ivyrep is configured in your project "target" dir ?! It should be located to Home>Documents>Ametys>ivyrep>ivysettings.xml


Raphael Franchet
Expert Ametys

Offline

Board footer

Powered by FluxBB