You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Martin Schröder <ma...@oneiros.de> on 2015/03/13 13:16:37 UTC

Re: Problem building the project with Eclipse and m2e

2015-01-25 21:18 GMT+01:00 Stefan Falk <s....@student.tugraz.at>:
> Added the repository in the synchronized view:
> http://svn.apache.org/repos/asf/pdfbox
>
> From the right-click context menu on the trunk folder: "Checkout as Maven
> Project..."
>
> That's it. I assume it is supposed to work on the fly without any
> modifications to the pom.xml or something like that.

Thanks,
that gives a lot of projects as expected (after one has the right m2e
connector for subversion (which is difficult with subclipse)).

Methinks this project should have a hacking guide mentioning this
information.

But with m2e the preflight project gives the dreaeded
"Plugin execution not covered by lifecycle configuration:
com.googlecode.maven-download-plugin:download-maven-plugin:1.2.1:wget
(execution: get-bavaria, phase: generate-test-resources)"

Is there a way to get that working with m2e?
I can _circumvent_ it with
https://stackoverflow.com/a/14809920/821436, but that feels unclean...
(and it modifies the pom.xml)

Best
   Martin

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


Re: Problem building the project with Eclipse and m2e

Posted by Andreas Lehmkühler <an...@lehmi.de>.

> Martin Schröder <ma...@oneiros.de> hat am 16. März 2015 um 21:26 geschrieben:
> 
> 
> 2015-03-16 20:27 GMT+01:00 Andreas Lehmkuehler <an...@lehmi.de>:
> > Am 13.03.2015 um 13:16 schrieb Martin Schröder:
> >> that gives a lot of projects as expected (after one has the right m2e
> >> connector for subversion (which is difficult with subclipse)).
> >
> > There are other alternatives. Checkout the trunk/unpack the soure zip and
> > import it as existing maven project.
> 
> I tried that first. Then I get one project. Is that better?
Nope, I guess something is still wrong.

Use File->Import->Maven->Existing Maven Projects and choose the top most
directory. Eclipse should propose to import several subprojects. Import them all
and that's it.

AFAIK the maven import feature is only avaiable if m2e is installed.

> > IMHO, m2e is a crappy piece of software and I guess I'm not alone.
> 
> Agreed. But what's the alternative? :-{
I don't know any.

> Best
>    Martin

BR
Andreas Lehmkühler

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


Re: Problem building the project with Eclipse and m2e

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.

> Am 16.03.2015 um 22:23 schrieb Martin Schröder <ma...@oneiros.de>:
> 
> 2015-03-16 22:12 GMT+01:00 Maruan Sahyoun <sa...@fileaffairs.de>:
>> I'm using Eclipse Luna (had other versions before), subversive and m2e. Works fine for me. What are the issues you are having?
> 
> Yes, Eclipse can work with Maven. Somehow. But e.g. where's the manual for m2e?
> In contrast: http://www.adam-bien.com/roller/abien/entry/nothing_compares_8230_to_netbeans
> :-)
> 

of course we can discuss IDEs, m2e … here - IMHO that's off topic as the question is how to build using Eclipse an m2e - that's what I'm trying to help with.

> Best
>   Martin
> 
> PS: Please stop your top-posting.

wasn't intended but an oversight

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


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


Re: Problem building the project with Eclipse and m2e

Posted by Martin Schröder <ma...@oneiros.de>.
2015-03-16 22:12 GMT+01:00 Maruan Sahyoun <sa...@fileaffairs.de>:
> I'm using Eclipse Luna (had other versions before), subversive and m2e. Works fine for me. What are the issues you are having?

Yes, Eclipse can work with Maven. Somehow. But e.g. where's the manual for m2e?
In contrast: http://www.adam-bien.com/roller/abien/entry/nothing_compares_8230_to_netbeans
:-)

Best
   Martin

PS: Please stop your top-posting.

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


Re: Problem building the project with Eclipse and m2e

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
Hi,

I'm using Eclipse Luna (had other versions before), subversive and m2e. Works fine for me. What are the issues you are having?

With my setup I can right click on the project and then go 

Run As > Maven build > and in the dialog enter 'clean install' under 'Goals:' 

After the initial run it will now be part of Eclipse Run Configurations and I can rerun it from there, copy and edit the configuration …

BR

Maruan

> Am 16.03.2015 um 21:53 schrieb Eric Douglas <ed...@blockhouse.com>:
> 
> Tell me you're not referring to Net...?  Have they improved it much?  I
> tried it once years ago and it took forever to load.
> 
> I installed m2e and I can't get pdfbox to compile using the Maven in
> Eclipse.  Maybe I didn't install something right.  I had a big Maven plugin
> on Eclipse a couple versions ago, on Juno I think.  It had a lot of right
> click menu options I don't see currently.
> I haven't seen many Maven Java projects.  More people use ant.
> I can build an ant project, though for my personal projects I just compile
> then right click the project and select Export to make a jar.  I just copy
> the folder structure and do import existing to copy to another machine.  I
> just got pdfbox to work by downloading a snapshot and doing an import
> existing project.  I could build a new pdfbox jar using ant though it
> didn't have a build file for fontbox.
> 
> On Mon, Mar 16, 2015 at 4:36 PM, Tilman Hausherr <TH...@t-online.de>
> wrote:
> 
>> Am 16.03.2015 um 21:26 schrieb Martin Schröder:
>> 
>>> 2015-03-16 20:27 GMT+01:00 Andreas Lehmkuehler <an...@lehmi.de>:
>>> 
>>>> Am 13.03.2015 um 13:16 schrieb Martin Schröder:
>>>> 
>>>>> that gives a lot of projects as expected (after one has the right m2e
>>>>> connector for subversion (which is difficult with subclipse)).
>>>>> 
>>>> There are other alternatives. Checkout the trunk/unpack the soure zip and
>>>> import it as existing maven project.
>>>> 
>>> I tried that first. Then I get one project. Is that better?
>>> 
>>> IMHO, m2e is a crappy piece of software and I guess I'm not alone.
>>>> 
>>> Agreed. But what's the alternative? :-{
>>> 
>> 
>> I won't mention a specific IDE, but enter this in google:
>> 
>>    ide maven out of the box
>> 
>> :-)
>> 
>> Tilman
>> 
>> 
>> 
>>> Best
>>>    Martin
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>> 
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>> 
>> 


Re: Problem building the project with Eclipse and m2e

Posted by Eric Douglas <ed...@blockhouse.com>.
Tell me you're not referring to Net...?  Have they improved it much?  I
tried it once years ago and it took forever to load.

I installed m2e and I can't get pdfbox to compile using the Maven in
Eclipse.  Maybe I didn't install something right.  I had a big Maven plugin
on Eclipse a couple versions ago, on Juno I think.  It had a lot of right
click menu options I don't see currently.
I haven't seen many Maven Java projects.  More people use ant.
I can build an ant project, though for my personal projects I just compile
then right click the project and select Export to make a jar.  I just copy
the folder structure and do import existing to copy to another machine.  I
just got pdfbox to work by downloading a snapshot and doing an import
existing project.  I could build a new pdfbox jar using ant though it
didn't have a build file for fontbox.

On Mon, Mar 16, 2015 at 4:36 PM, Tilman Hausherr <TH...@t-online.de>
wrote:

> Am 16.03.2015 um 21:26 schrieb Martin Schröder:
>
>> 2015-03-16 20:27 GMT+01:00 Andreas Lehmkuehler <an...@lehmi.de>:
>>
>>> Am 13.03.2015 um 13:16 schrieb Martin Schröder:
>>>
>>>> that gives a lot of projects as expected (after one has the right m2e
>>>> connector for subversion (which is difficult with subclipse)).
>>>>
>>> There are other alternatives. Checkout the trunk/unpack the soure zip and
>>> import it as existing maven project.
>>>
>> I tried that first. Then I get one project. Is that better?
>>
>>  IMHO, m2e is a crappy piece of software and I guess I'm not alone.
>>>
>> Agreed. But what's the alternative? :-{
>>
>
> I won't mention a specific IDE, but enter this in google:
>
>     ide maven out of the box
>
> :-)
>
> Tilman
>
>
>
>> Best
>>     Martin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Re: Problem building the project with Eclipse and m2e

Posted by Martin Schröder <ma...@oneiros.de>.
2015-03-16 21:36 GMT+01:00 Tilman Hausherr <TH...@t-online.de>:
> I won't mention a specific IDE, but enter this in google:
>
>     ide maven out of the box

It's illuminating:
- netbeans
- intellij
- http://stackoverflow.com/questions/15452874/maven-vs-eclipse :-)

Best
   Martin

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


Re: Problem building the project with Eclipse and m2e

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 16.03.2015 um 21:26 schrieb Martin Schröder:
> 2015-03-16 20:27 GMT+01:00 Andreas Lehmkuehler <an...@lehmi.de>:
>> Am 13.03.2015 um 13:16 schrieb Martin Schröder:
>>> that gives a lot of projects as expected (after one has the right m2e
>>> connector for subversion (which is difficult with subclipse)).
>> There are other alternatives. Checkout the trunk/unpack the soure zip and
>> import it as existing maven project.
> I tried that first. Then I get one project. Is that better?
>
>> IMHO, m2e is a crappy piece of software and I guess I'm not alone.
> Agreed. But what's the alternative? :-{

I won't mention a specific IDE, but enter this in google:

     ide maven out of the box

:-)

Tilman

>
> Best
>     Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


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


Re: Problem building the project with Eclipse and m2e

Posted by Martin Schröder <ma...@oneiros.de>.
2015-03-16 20:27 GMT+01:00 Andreas Lehmkuehler <an...@lehmi.de>:
> Am 13.03.2015 um 13:16 schrieb Martin Schröder:
>> that gives a lot of projects as expected (after one has the right m2e
>> connector for subversion (which is difficult with subclipse)).
>
> There are other alternatives. Checkout the trunk/unpack the soure zip and
> import it as existing maven project.

I tried that first. Then I get one project. Is that better?

> IMHO, m2e is a crappy piece of software and I guess I'm not alone.

Agreed. But what's the alternative? :-{

Best
   Martin

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


Re: Problem building the project with Eclipse and m2e

Posted by Andreas Lehmkuehler <an...@lehmi.de>.
Am 13.03.2015 um 13:16 schrieb Martin Schröder:
> 2015-01-25 21:18 GMT+01:00 Stefan Falk <s....@student.tugraz.at>:
>> Added the repository in the synchronized view:
>> http://svn.apache.org/repos/asf/pdfbox
>>
>>  From the right-click context menu on the trunk folder: "Checkout as Maven
>> Project..."
>>
>> That's it. I assume it is supposed to work on the fly without any
>> modifications to the pom.xml or something like that.
>
> Thanks,
> that gives a lot of projects as expected (after one has the right m2e
> connector for subversion (which is difficult with subclipse)).
There are other alternatives. Checkout the trunk/unpack the soure zip and import 
it as existing maven project.

> Methinks this project should have a hacking guide mentioning this
> information.
Patches are welcome ;-)

> But with m2e the preflight project gives the dreaeded
> "Plugin execution not covered by lifecycle configuration:
> com.googlecode.maven-download-plugin:download-maven-plugin:1.2.1:wget
> (execution: get-bavaria, phase: generate-test-resources)"
>
> Is there a way to get that working with m2e?
> I can _circumvent_ it with
> https://stackoverflow.com/a/14809920/821436, but that feels unclean...
> (and it modifies the pom.xml)
IMHO, m2e is a crappy piece of software and I guess I'm not alone.
However, I've added some of the needed m2e magic and the error messages disappear.

> Best
>     Martin


BR
Andreas Lehmkühler


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