You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Marc Kaufman <ka...@cs.stanford.edu> on 2018/03/21 21:55:13 UTC
Building from source in Eclipse
I've downloaded the source (PDFBox, Trunk:trunk) via Subversion, but I
can't find instructions on how to set up project Builders or the Maven
Run configurations, or how to configure jUnit to run the tests. The
latest document appears to be Ant related. Are newer setup instructions
available?
Marc Kaufman
Re: Building from source in Eclipse
Posted by Tilman Hausherr <TH...@t-online.de>.
I see that there haven't been answers... the next thing would be to ask
on stackoverflow. Add screenshots so that people can see your settings.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org
Re: Building from source in Eclipse
Posted by Andreas Lehmkuehler <an...@lehmi.de>.
Am 01.04.2018 um 18:54 schrieb Marc Kaufman:
> Thanks. I discovered that you can do this by right-click on the error and
> invoking "Quick Fix"
That's another possible fix, but it modifies the pom.xml and we don't want to
include eclipse specific configuration options as not all devs are using eclipse.
Andreas
>
> Marc
>
>
> On 3/31/2018 3:46 AM, Andreas Lehmkuehler wrote:
>> Am 29.03.2018 um 23:38 schrieb Andreas Lehmkuehler:
>>> On 03/29/2018 08:21 PM, Marc Kaufman wrote:
>>>> Almost there. Thanks. I needed to install the 64-bit version of JavaHL Now I
>>>> have only two errors:
>>>>
>>>> Description Resource Path Location Type
>>>> Plugin execution not covered by lifecycle configuration:
>>>> com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
>>>> (execution: Genko, phase: generate-test-resources) pom.xml /pdfbox line
>>>> 329 Maven Project Build Lifecycle Mapping Problem (19 times)
>>>>
>>>> Description Resource Path Location Type
>>>> Plugin execution not covered by lifecycle configuration:
>>>> com.googlecode.maven-download-plugin:maven-download-plugin:1.1.0:wget
>>>> (execution: get-bavaria, phase: generate-test-resources) pom.xml /preflight
>>>> line 130 Maven Project Build Lifecycle Mapping Problem (2 times)
>>>>
>>> Just ignore that. It's just a glitch in the m2e plugin. I've the same and
>>> everything works as expected.
>>
>> I've just found another way to avoid that annoying error message:
>>
>> - open the preferences menu (Window->Preferences)
>> - goto Maven->Error/Warnings
>> - choose "Ignore" for "Plugin execution not covered by lifecycle configuration"
>>
>> Andreas
>>
>>>
>>> Andreas
>>>
>>>> Marc
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
>>> For additional commands, e-mail: dev-help@pdfbox.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: dev-help@pdfbox.apache.org
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org
Re: Building from source in Eclipse
Posted by Andreas Lehmkuehler <an...@lehmi.de>.
Am 29.03.2018 um 23:38 schrieb Andreas Lehmkuehler:
> On 03/29/2018 08:21 PM, Marc Kaufman wrote:
>> Almost there. Thanks. I needed to install the 64-bit version of JavaHL Now I
>> have only two errors:
>>
>> Description Resource Path Location Type
>> Plugin execution not covered by lifecycle configuration:
>> com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
>> (execution: Genko, phase: generate-test-resources) pom.xml /pdfbox line
>> 329 Maven Project Build Lifecycle Mapping Problem (19 times)
>>
>> Description Resource Path Location Type
>> Plugin execution not covered by lifecycle configuration:
>> com.googlecode.maven-download-plugin:maven-download-plugin:1.1.0:wget
>> (execution: get-bavaria, phase: generate-test-resources) pom.xml /preflight
>> line 130 Maven Project Build Lifecycle Mapping Problem (2 times)
>>
> Just ignore that. It's just a glitch in the m2e plugin. I've the same and
> everything works as expected.
I've just found another way to avoid that annoying error message:
- open the preferences menu (Window->Preferences)
- goto Maven->Error/Warnings
- choose "Ignore" for "Plugin execution not covered by lifecycle configuration"
Andreas
>
> Andreas
>
>> Marc
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: dev-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org
Re: Building from source in Eclipse
Posted by Andreas Lehmkuehler <an...@lehmi.de>.
On 03/29/2018 08:21 PM, Marc Kaufman wrote:
> Almost there. Thanks. I needed to install the 64-bit version of JavaHL Now I
> have only two errors:
>
> Description Resource Path Location Type
> Plugin execution not covered by lifecycle configuration:
> com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
> (execution: Genko, phase: generate-test-resources) pom.xml /pdfbox line
> 329 Maven Project Build Lifecycle Mapping Problem (19 times)
>
> Description Resource Path Location Type
> Plugin execution not covered by lifecycle configuration:
> com.googlecode.maven-download-plugin:maven-download-plugin:1.1.0:wget
> (execution: get-bavaria, phase: generate-test-resources) pom.xml /preflight
> line 130 Maven Project Build Lifecycle Mapping Problem (2 times)
>
Just ignore that. It's just a glitch in the m2e plugin. I've the same and
everything works as expected.
Andreas
> Marc
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org
Re: Building from source in Eclipse
Posted by Marc Kaufman <ma...@eeph.com>.
Almost there. Thanks. I needed to install the 64-bit version of JavaHL
Now I have only two errors:
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration:
com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
(execution: Genko, phase: generate-test-resources) pom.xml /pdfbox
line 329 Maven Project Build Lifecycle Mapping Problem (19 times)
Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration:
com.googlecode.maven-download-plugin:maven-download-plugin:1.1.0:wget
(execution: get-bavaria, phase: generate-test-resources) pom.xml
/preflight line 130 Maven Project Build Lifecycle Mapping Problem
(2 times)
Marc
Re: Building from source in Eclipse
Posted by Andreas Lehmkuehler <an...@lehmi.de>.
On 03/22/2018 04:59 PM, Marc Kaufman wrote:
> I've used Eclipse with Ant, extensively, but this is the first time with SVN and
> Maven. I successfully downloaded Trunk with SVN, but then forgot I had not
> installed Maven. So I did that. Then did a Maven clean install, and that seemed
> to compile and run all the tests. But when I try to edit a file, when I want to
> "Open Declaration" on a symbol, I get "Problems opening an editor. Reason:
> pdfbox does not exist".
>
> Going to stackoverflow for that problem:
> https://stackoverflow.com/questions/10484500/maven-integration-in-eclipse-new-project-checked-out-but-cant-navigate
>
>
> I tried Configure-Convert to Maven Projects, and then Configure subprojects.
> That give me multiple top-level projects (fontbox, debugger, preflight, etc.),
> but the editing problem remains.
You don't have to convert anything as PDFBox is already configured to use maven.
- checkout the source
- import the project to eclipse: File -> Import -> Maven -> Existing Maven projects
- choose the source directory as root directory
- select all poms
- click finish
Eclipse should configure the project automatically.
Andreas
>
> I've also got errors on the top-level versions of fontbox, pdfbox_pdfbox, and
> preflight:
>
> /fontbox Plugin execution not covered by lifecycle configuration:
> com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
> (execution: PDFBOX-3379, phase: generate-test-resources)
>
> /pdfbox_pdfbox Plugin execution not covered by lifecycle configuration:
> com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
> (execution: Genko, phase: generate-test-resources)
>
> [ERROR] Failed to execute goal on project preflight: Could not resolve
> dependencies for project org.apache.pdfbox:preflight:bundle:3.0.0-SNAPSHOT:
> Could not find artifact org.apache.pdfbox:xmpbox:jar:3.0.0-20180321.173925-592
> in apache.snapshots (http://repository.apache.org/snapshots) -> [Help 1]
>
> Mostly, I'd like the editing to work, and be able to run the test cases.
>
> I'm running a fresh Eclipse install with JAVA_VERSION="10"
> JAVA_VERSION_DATE="2018-03-20"
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org
Re: Building from source in Eclipse
Posted by Marc Kaufman <ma...@eeph.com>.
I've used Eclipse with Ant, extensively, but this is the first time with
SVN and Maven. I successfully downloaded Trunk with SVN, but then forgot
I had not installed Maven. So I did that. Then did a Maven clean
install, and that seemed to compile and run all the tests. But when I
try to edit a file, when I want to "Open Declaration" on a symbol, I get
"Problems opening an editor. Reason: pdfbox does not exist".
Going to stackoverflow for that problem:
https://stackoverflow.com/questions/10484500/maven-integration-in-eclipse-new-project-checked-out-but-cant-navigate
I tried Configure-Convert to Maven Projects, and then Configure
subprojects. That give me multiple top-level projects (fontbox,
debugger, preflight, etc.), but the editing problem remains.
I've also got errors on the top-level versions of fontbox,
pdfbox_pdfbox, and preflight:
/fontbox Plugin execution not covered by lifecycle configuration:
com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
(execution: PDFBOX-3379, phase: generate-test-resources)
/pdfbox_pdfbox Plugin execution not covered by lifecycle configuration:
com.googlecode.maven-download-plugin:download-maven-plugin:1.3.0:wget
(execution: Genko, phase: generate-test-resources)
[ERROR] Failed to execute goal on project preflight: Could not resolve
dependencies for project
org.apache.pdfbox:preflight:bundle:3.0.0-SNAPSHOT: Could not find
artifact org.apache.pdfbox:xmpbox:jar:3.0.0-20180321.173925-592 in
apache.snapshots (http://repository.apache.org/snapshots) -> [Help 1]
Mostly, I'd like the editing to work, and be able to run the test cases.
I'm running a fresh Eclipse install with JAVA_VERSION="10"
JAVA_VERSION_DATE="2018-03-20"
Re: Building from source in Eclipse
Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,
What did you do and what happened (or did not happen)? Have you ever
done this before?
Tilman
https://stackoverflow.com/questions/6062428/how-to-open-an-existing-svn-project-in-eclipse
https://stackoverflow.com/questions/16207758/how-to-check-out-from-svn-using-eclipse
Am 21.03.2018 um 22:55 schrieb Marc Kaufman:
> I've downloaded the source (PDFBox, Trunk:trunk) via Subversion, but I
> can't find instructions on how to set up project Builders or the Maven
> Run configurations, or how to configure jUnit to run the tests. The
> latest document appears to be Ant related. Are newer setup
> instructions available?
>
> Marc Kaufman
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org