You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Seb V (JIRA)" <ji...@apache.org> on 2009/01/27 14:10:59 UTC

[jira] Commented: (PDFBOX-393) Maven files in jempbox do not work

    [ https://issues.apache.org/jira/browse/PDFBOX-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667662#action_12667662 ] 

Seb V commented on PDFBOX-393:
------------------------------

I had the same problem but the patch suggested above fails in Eclipse which apparently does not like inconsistent source directory hierarchies.

To fix the problem, I suggest to either :

A. rename/move:
- src/test to src-test/test
and change the pom.xml:
<build>
  <sourceDirectory>src</sourceDirectory>
  <testSourceDirectory>src-test</testSourceDirectory>
</build>

B. Or to adhere to Maven project layout, rename/move:
- src/org to src/main/java/org
- src/test to src/test/java/test
and remove the <build>...</build> element from pom.xml.

> Maven files in jempbox do not work
> ----------------------------------
>
>                 Key: PDFBOX-393
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-393
>             Project: PDFBox
>          Issue Type: Bug
>          Components: JempBox
>    Affects Versions: 0.8.0-incubator
>            Reporter: Brian Carrier
>
> When I tried to use the Maven files in JempBox, I got errors in the test code that it could not find the junit packages. Changing the pom file to better specify the test and source directories fixed it.  
> --- jempbox/trunk/pom.xml       (revision 723007)
> +++ jempbox/trunk/pom.xml       (working copy)
> @@ -36,7 +36,8 @@
>         <description>JempBox is an open source Java library that implements Adobe's XMP(TM) specification.</description>
>      <build>
> -      <sourceDirectory>src</sourceDirectory>
> +      <sourceDirectory>src/org</sourceDirectory>
> +      <testSourceDirectory>src/test</testSourceDirectory>
>         </build>
>    <dependencies>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.