You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Brian Carrier (JIRA)" <ji...@apache.org> on 2008/12/03 20:35:44 UTC
[jira] Created: (PDFBOX-393) Maven files in jempbox do not work
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.
[jira] Commented: (PDFBOX-393) Maven files in jempbox do not work
Posted by "Brian Carrier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669792#action_12669792 ]
Brian Carrier commented on PDFBOX-393:
--------------------------------------
What Maven plug-in to Eclipse are you using? The patch works for the command line.
> 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.
[jira] Commented: (PDFBOX-393) Maven files in jempbox do not work
Posted by "Seb V (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (PDFBOX-393) Maven files in jempbox do not work in
Eclipse.
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting resolved PDFBOX-393.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.8.0-incubator
Assignee: Jukka Zitting
I fixed the Eclipse case along with other changes in revision 751029.
> Maven files in jempbox do not work in Eclipse.
> ----------------------------------------------
>
> 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
> Assignee: Jukka Zitting
> Fix For: 0.8.0-incubator
>
>
> 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.
[jira] Updated: (PDFBOX-393) Maven files in jempbox do not work in
Eclipse.
Posted by "Brian Carrier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Carrier updated PDFBOX-393:
---------------------------------
Summary: Maven files in jempbox do not work in Eclipse. (was: Maven files in jempbox do not work)
I checked in this fix since it helps those who use maven from the command line.
Sending pom.xml
Transmitting file data .
Committed revision 740868.
It sounds like at least one Eclipse plug-in is not happy though, so I will rename this issue and keep it open.
> Maven files in jempbox do not work in Eclipse.
> ----------------------------------------------
>
> 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.