You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Robert Dailey <rc...@gmail.com> on 2013/10/24 23:47:22 UTC

Getting restSQL to work with maven

So my goal right now is to generate an Eclipse project for my maven
project. I successfully have done this using:

mvn eclipse:eclipse

Now in my Activator.java file I am adding a new dependency:

import org.restsql.core.Config;

Eclipse tells me it cannot resolve "org.restsql". So what I did was
use install:install-file to install restSQL:

mvn install:install-file
-Dfile=C:\Users\rdailey\Downloads\restsql-0.8.6.jar
-DgroupId=org.restsql -DartifactId=restsql -Dversion=0.8.6
-Dpackaging=jar

This seems to have gone well:

[INFO] --- maven-install-plugin:2.5.1:install-file (default-cli) @
repository ---
[INFO] pom.xml not found in restsql-0.8.6.jar
[INFO] Installing C:\Users\rdailey\Downloads\restsql-0.8.6.jar to
C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.jar
[INFO] Installing
C:\Users\rdailey\AppData\Local\Temp\mvninstall5055305258717126807.pom
to C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.pom

Now when I go back to my eclipse project, it still can't resolve it.
Am I missing something? If it's in the repo now, shouldn't it resolve?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting restSQL to work with maven

Posted by Anders Hammar <an...@hammar.net>.
Import "Existing Maven project".

/Anders (mobile)
Den 25 okt 2013 00:41 skrev "Robert Dailey" <rc...@gmail.com>:

> Should I import it using General >> Existing Projects into Workspace?
> Or should I use the m2e plugin? Which will be Maven > Existing Maven
> Projects?
>
> On Thu, Oct 24, 2013 at 5:22 PM, Adrien Rivard <ad...@gmail.com>
> wrote:
> > Also you should not use eclipse:eclipse , this is the old way to work
> with
> > eclipse.
> > Just run eclipse:clean to remove the generated files, and then in
> eclipse,
> > import the project as existing maven project. If it has a valid pom.xml,
> it
> > will generate and manage the appropriate eclipse files.
> >
> >
> >
> >
> > On Fri, Oct 25, 2013 at 12:07 AM, Russell Gold <russell.gold@oracle.com
> >wrote:
> >
> >> Hi Robert,
> >>
> >> Did you add this to your POM? If so, Eclipse should try to download the
> >> jar from maven central into your local repo. If you didn't, just
> putting it
> >> in the repo probably won't do much.
> >>
> >> - Russ
> >>
> >> On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote:
> >>
> >> > So my goal right now is to generate an Eclipse project for my maven
> >> > project. I successfully have done this using:
> >> >
> >> > mvn eclipse:eclipse
> >> >
> >> > Now in my Activator.java file I am adding a new dependency:
> >> >
> >> > import org.restsql.core.Config;
> >> >
> >> > Eclipse tells me it cannot resolve "org.restsql". So what I did was
> >> > use install:install-file to install restSQL:
> >> >
> >> > mvn install:install-file
> >> > -Dfile=C:\Users\rdailey\Downloads\restsql-0.8.6.jar
> >> > -DgroupId=org.restsql -DartifactId=restsql -Dversion=0.8.6
> >> > -Dpackaging=jar
> >> >
> >> > This seems to have gone well:
> >> >
> >> > [INFO] --- maven-install-plugin:2.5.1:install-file (default-cli) @
> >> > repository ---
> >> > [INFO] pom.xml not found in restsql-0.8.6.jar
> >> > [INFO] Installing C:\Users\rdailey\Downloads\restsql-0.8.6.jar to
> >> > C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.jar
> >> > [INFO] Installing
> >> > C:\Users\rdailey\AppData\Local\Temp\mvninstall5055305258717126807.pom
> >> > to C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.pom
> >> >
> >> > Now when I go back to my eclipse project, it still can't resolve it.
> >> > Am I missing something? If it's in the repo now, shouldn't it resolve?
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> > For additional commands, e-mail: users-help@maven.apache.org
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >
> >
> > --
> > Adrien Rivard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Getting restSQL to work with maven

Posted by Robert Dailey <rc...@gmail.com>.
Should I import it using General >> Existing Projects into Workspace?
Or should I use the m2e plugin? Which will be Maven > Existing Maven
Projects?

On Thu, Oct 24, 2013 at 5:22 PM, Adrien Rivard <ad...@gmail.com> wrote:
> Also you should not use eclipse:eclipse , this is the old way to work with
> eclipse.
> Just run eclipse:clean to remove the generated files, and then in eclipse,
> import the project as existing maven project. If it has a valid pom.xml, it
> will generate and manage the appropriate eclipse files.
>
>
>
>
> On Fri, Oct 25, 2013 at 12:07 AM, Russell Gold <ru...@oracle.com>wrote:
>
>> Hi Robert,
>>
>> Did you add this to your POM? If so, Eclipse should try to download the
>> jar from maven central into your local repo. If you didn't, just putting it
>> in the repo probably won't do much.
>>
>> - Russ
>>
>> On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote:
>>
>> > So my goal right now is to generate an Eclipse project for my maven
>> > project. I successfully have done this using:
>> >
>> > mvn eclipse:eclipse
>> >
>> > Now in my Activator.java file I am adding a new dependency:
>> >
>> > import org.restsql.core.Config;
>> >
>> > Eclipse tells me it cannot resolve "org.restsql". So what I did was
>> > use install:install-file to install restSQL:
>> >
>> > mvn install:install-file
>> > -Dfile=C:\Users\rdailey\Downloads\restsql-0.8.6.jar
>> > -DgroupId=org.restsql -DartifactId=restsql -Dversion=0.8.6
>> > -Dpackaging=jar
>> >
>> > This seems to have gone well:
>> >
>> > [INFO] --- maven-install-plugin:2.5.1:install-file (default-cli) @
>> > repository ---
>> > [INFO] pom.xml not found in restsql-0.8.6.jar
>> > [INFO] Installing C:\Users\rdailey\Downloads\restsql-0.8.6.jar to
>> > C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.jar
>> > [INFO] Installing
>> > C:\Users\rdailey\AppData\Local\Temp\mvninstall5055305258717126807.pom
>> > to C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.pom
>> >
>> > Now when I go back to my eclipse project, it still can't resolve it.
>> > Am I missing something? If it's in the repo now, shouldn't it resolve?
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> > For additional commands, e-mail: users-help@maven.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
>
> --
> Adrien Rivard

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting restSQL to work with maven

Posted by Adrien Rivard <ad...@gmail.com>.
Also you should not use eclipse:eclipse , this is the old way to work with
eclipse.
Just run eclipse:clean to remove the generated files, and then in eclipse,
import the project as existing maven project. If it has a valid pom.xml, it
will generate and manage the appropriate eclipse files.




On Fri, Oct 25, 2013 at 12:07 AM, Russell Gold <ru...@oracle.com>wrote:

> Hi Robert,
>
> Did you add this to your POM? If so, Eclipse should try to download the
> jar from maven central into your local repo. If you didn't, just putting it
> in the repo probably won't do much.
>
> - Russ
>
> On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote:
>
> > So my goal right now is to generate an Eclipse project for my maven
> > project. I successfully have done this using:
> >
> > mvn eclipse:eclipse
> >
> > Now in my Activator.java file I am adding a new dependency:
> >
> > import org.restsql.core.Config;
> >
> > Eclipse tells me it cannot resolve "org.restsql". So what I did was
> > use install:install-file to install restSQL:
> >
> > mvn install:install-file
> > -Dfile=C:\Users\rdailey\Downloads\restsql-0.8.6.jar
> > -DgroupId=org.restsql -DartifactId=restsql -Dversion=0.8.6
> > -Dpackaging=jar
> >
> > This seems to have gone well:
> >
> > [INFO] --- maven-install-plugin:2.5.1:install-file (default-cli) @
> > repository ---
> > [INFO] pom.xml not found in restsql-0.8.6.jar
> > [INFO] Installing C:\Users\rdailey\Downloads\restsql-0.8.6.jar to
> > C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.jar
> > [INFO] Installing
> > C:\Users\rdailey\AppData\Local\Temp\mvninstall5055305258717126807.pom
> > to C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.pom
> >
> > Now when I go back to my eclipse project, it still can't resolve it.
> > Am I missing something? If it's in the repo now, shouldn't it resolve?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Adrien Rivard

Re: Getting restSQL to work with maven

Posted by Robert Dailey <rc...@gmail.com>.
Thanks!! That was it... I'm missing obvious stuff :(

I should have remembered to do that. Thanks for the reminder!

On Thu, Oct 24, 2013 at 5:07 PM, Russell Gold <ru...@oracle.com> wrote:
> Hi Robert,
>
> Did you add this to your POM? If so, Eclipse should try to download the jar from maven central into your local repo. If you didn't, just putting it in the repo probably won't do much.
>
> - Russ
>
> On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote:
>
>> So my goal right now is to generate an Eclipse project for my maven
>> project. I successfully have done this using:
>>
>> mvn eclipse:eclipse
>>
>> Now in my Activator.java file I am adding a new dependency:
>>
>> import org.restsql.core.Config;
>>
>> Eclipse tells me it cannot resolve "org.restsql". So what I did was
>> use install:install-file to install restSQL:
>>
>> mvn install:install-file
>> -Dfile=C:\Users\rdailey\Downloads\restsql-0.8.6.jar
>> -DgroupId=org.restsql -DartifactId=restsql -Dversion=0.8.6
>> -Dpackaging=jar
>>
>> This seems to have gone well:
>>
>> [INFO] --- maven-install-plugin:2.5.1:install-file (default-cli) @
>> repository ---
>> [INFO] pom.xml not found in restsql-0.8.6.jar
>> [INFO] Installing C:\Users\rdailey\Downloads\restsql-0.8.6.jar to
>> C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.jar
>> [INFO] Installing
>> C:\Users\rdailey\AppData\Local\Temp\mvninstall5055305258717126807.pom
>> to C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.pom
>>
>> Now when I go back to my eclipse project, it still can't resolve it.
>> Am I missing something? If it's in the repo now, shouldn't it resolve?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting restSQL to work with maven

Posted by Russell Gold <ru...@oracle.com>.
Hi Robert,

Did you add this to your POM? If so, Eclipse should try to download the jar from maven central into your local repo. If you didn't, just putting it in the repo probably won't do much.

- Russ

On Oct 24, 2013, at 5:47 PM, Robert Dailey wrote:

> So my goal right now is to generate an Eclipse project for my maven
> project. I successfully have done this using:
> 
> mvn eclipse:eclipse
> 
> Now in my Activator.java file I am adding a new dependency:
> 
> import org.restsql.core.Config;
> 
> Eclipse tells me it cannot resolve "org.restsql". So what I did was
> use install:install-file to install restSQL:
> 
> mvn install:install-file
> -Dfile=C:\Users\rdailey\Downloads\restsql-0.8.6.jar
> -DgroupId=org.restsql -DartifactId=restsql -Dversion=0.8.6
> -Dpackaging=jar
> 
> This seems to have gone well:
> 
> [INFO] --- maven-install-plugin:2.5.1:install-file (default-cli) @
> repository ---
> [INFO] pom.xml not found in restsql-0.8.6.jar
> [INFO] Installing C:\Users\rdailey\Downloads\restsql-0.8.6.jar to
> C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.jar
> [INFO] Installing
> C:\Users\rdailey\AppData\Local\Temp\mvninstall5055305258717126807.pom
> to C:\maven-repo\org\restsql\restsql\0.8.6\restsql-0.8.6.pom
> 
> Now when I go back to my eclipse project, it still can't resolve it.
> Am I missing something? If it's in the repo now, shouldn't it resolve?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org