Great tip. That worked great for me. Thanks
-Fitz
On 7/20/07, Tobias Vogel <[EMAIL PROTECTED]> wrote:
Hi,
what always works for me is the following:
- mvn eclipse:clean eclipse:eclipse
- Mark the root dir of the project and press F5 to refresh
After that, all depencencies are correct for Eclipse. If not, I always made a
mistake in the maven pom.
HTH,
Tobias
-----Ursprüngliche Nachricht-----
Von: Eric Fitzsimmons [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 20. Juli 2007 16:26
An: users@appfuse.dev.java.net
Betreff: Re: [appfuse-user] Adding extra jar
I have issues with eclipse not picking up library files all the time using
maven. Try closing the project and reopening it and disable and enable the
dependencies. A lot of times I just don't even bother as long as the maven
commands still work from command line. I don't believe the maven eclipse
plugin is a fully completed with no errors.
Can you still run mvn install from the command line and use the jar that you
added? If not, then try deleting the jar from your .m2 local repository and
then reinstall it. Hope that helps.
-Fitz
Msarda wrote:
>Yes,
>I executed command as
>C:\work>mvn install:install-file
>-Dfile=C:\work\repository\HROnline\SML_PeoplePickerControls.jar
>-DgroupId=au.com.suncorp.PeoplePi
>cker -DartifactId=PeoplePicker -Dversion=1.0 -Dpackaging=jar
>-DgeneratePom=true
>
>
>The jar is at
>C:\work\repository\au\com\suncorp\PeoplePicker\PeoplePicker\1.0\PeopleP
>icker-1.0.jar
>
>i am adding dependancy as
><dependency>
> <groupId>au.com.suncorp.PeoplePicker</groupId>
> <artifactId>PeoplePicker</artifactId>
> <version>1.0</version>
> </dependency>
>I executed mvn eclipse:eclipse.In java build path of the project,there
>is jar added.
>But when i am using one class of it in controller,then it is not
>resolving it. :(
>
>Am i doing in right way?
>
>Thanks.
>
>
>
>mraible wrote:
>
>
>>Based on this error, your groupId should be
>>au.com.suncorp.PeoplePicker - is that what it is?
>>
>>Matt
>>
>>On 7/19/07, Msarda <[EMAIL PROTECTED]> wrote:
>>
>>
>>>Hi,
>>>I am getting following thing when running mvn eclipse:eclipse after
>>>running mvn install:install-file
>>>
>>>Downloading:
>>>http://pbnecvs4002:8080/proximity/repository/inhouse/au/com/suncorp/P
>>>eoplePicker/PeoplePicker/1.0/PeoplePicker-1.0-ja
>>>vadoc.jar
>>>Downloading:
>>>http://pbnecvs4002:8080/proximity/repository/appfuse/au/com/suncorp/P
>>>eoplePicker/PeoplePicker/1.0/PeoplePicker-1.0-ja
>>>vadoc.jar
>>>Downloading:
>>>http://pbnecvs4002:8080/proximity/repository/apache.snapshot/au/com/s
>>>uncorp/PeoplePicker/PeoplePicker/1.0/PeoplePicke
>>>r-1.0-javadoc.jar
>>>[INFO] File C:\work\NewEclipseWorkspace\Copy of
>>>EngagementFormreq7\.project already exists.
>>> Additional settings will be preserved, run mvn eclipse:clean
>>>if you want old settings to be removed.
>>>[INFO] Wrote Eclipse project for "TryEngagementForm1" to
>>>C:\work\NewEclipseWorkspace\Copy of EngagementFormreq7.
>>>[INFO]
>>> Sources for some artifacts are not available.
>>> List of artifacts without a source archive:
>>> o au.com.suncorp.PeoplePicker:PeoplePicker:1.0
>>>
>>>[INFO]
>>>---------------------------------------------------------------------
>>>---
>>>[INFO] BUILD SUCCESSFUL
>>>[INFO]
>>>---------------------------------------------------------------------
>>>---
>>>
>>>I think maven is looking for java files in that jar,but there are
>>>class files in that jar.
>>>Will maven not read the class files?
>>>
>>>
>>>
>>>Michael Horwitz wrote:
>>>
>>>
>>>>Could you post the specific error you are seeing in Maven? Maven
>>>>will
>>>>
>>>>
>>>try
>>>
>>>
>>>>and download a pom file for your project too. It may take some time
>>>>
>>>>
>>>before
>>>
>>>
>>>>it generates an error/warning, but after that the build will proceed
>>>>as normal.
>>>>
>>>>Mike.
>>>>
>>>>On 7/19/07, Msarda <[EMAIL PROTECTED]> wrote:
>>>>
>>>>
>>>>>Yes,when i was puting
>>>>><dependency>
>>>>> <groupId>HROnline</groupId>
>>>>> <artifactId>SML_PeoplePickerControls</artifactId>
>>>>> <version>1.0</version>
>>>>> <scope>provided</scope>
>>>>> </dependency>
>>>>>in pom.xml,it was trying to download that jar from repository i
>>>>>have specified in settings.xml But i am not sure if this jar exists
>>>>>there or not.
>>>>>
>>>>>But why it is not taking that jar from local repository,if that
>>>>>jar exists there..
>>>>>
>>>>>
>>>>>fadhlirahim wrote:
>>>>>
>>>>>
>>>>>>Hi, have you define dependency in your pom.xml file?
>>>>>>
>>>>>>On 7/19/07, Msarda <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>>
>>>>>>>Hi,
>>>>>>>Thanks for ur reply.
>>>>>>>I am using appfuse 2.0-m5.
>>>>>>>I tried executing command
>>>>>>>
>>>>>>>C:\work> mvn install:install-file -DgroupId=HROnline
>>>>>>>-DartifactId=SML_PeoplePickerControls -Dversion=1.0
>>>>>>>-Dpackaging=jar
>>>>>>>-Dfile=c:/work/repository/HROnline/SML_PeoplePickerControls.jar
>>>>>>>
>>>>>>>This is executed sussecffully but still it is not recognizing it.
>>>>>>>
>>>>>>>
>>>:(
>>>
>>>
>>>>>>>Eric Fitzsimmons wrote:
>>>>>>>
>>>>>>>
>>>>>>>>What version of appfuse are you using? If you are using any
>>>>>>>>
>>>>>>>>
>>>version
>>>
>>>
>>>>>of
>>>>>
>>>>>
>>>>>>>>appfuse 2.*(aka using maven), you will want to add the
>>>>>>>>dependency
>>>>>>>>
>>>>>>>>
>>>to
>>>
>>>
>>>>>>>>your pom. If the jar does not exist in the repositories you are
>>>>>>>>checking, then you will have to add it manually add it. You can
>>>>>>>>
>>>>>>>>
>>>>>find
>>>>>
>>>>>
>>>>>>>>tons of examples with searches, but here is a quick decent one..
>>>>>>>>http://www.ensode.net/maven_intro_pg2.html
>>>>>>>>Hope that helps.
>>>>>>>>-Fitz
>>>>>>>>
>>>>>>>>Msarda wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hi all,
>>>>>>>>>
>>>>>>>>>I want to add one jar in application.
>>>>>>>>>I copied that jar in WEB-INF/lib folder manuallly and put it in
>>>>>>>>>
>>>>>>>>>
>>>java
>>>
>>>
>>>>>>>build
>>>>>>>
>>>>>>>
>>>>>>>>>path,but it was not getting recognized.
>>>>>>>>>I copied that jar in c:/work/repository and added in java build
>>>>>>>>>
>>>>>>>>>
>>>>>>>path but
>>>>>>>
>>>>>>>
>>>>>>>>>still it was not getting recognized.
>>>>>>>>>
>>>>>>>>>Is there any other way i need to follow?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>-------------------------------------------------------------------
>>>>>--
>>>>>
>>>>>
>>>>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>--
>>>>>>>View this message in context:
>>>>>>>
>>>>>>>
>>>>>>>
>>>http://www.nabble.com/Adding-extra-jar-tf4108467s2369.html#a11683762
>>>
>>>
>>>>>>>Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>--
>>>>>>/fadhli
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>--
>>>>>View this message in context:
>>>>>http://www.nabble.com/Adding-extra-jar-tf4108467s2369.html#a1168398
>>>>>1 Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>>>
>>>>>-------------------------------------------------------------------
>>>>>-- To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>--
>>>View this message in context:
>>>http://www.nabble.com/Adding-extra-jar-tf4108467s2369.html#a11702605
>>>
>>>Sent from the AppFuse - User mailing list archive at Nabble.com.
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>--
>>http://raibledesigns.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]
---------------------------------------------------------------------
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]