You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Yonas Jongkind (JIRA)" <ji...@apache.org> on 2009/09/06 09:54:57 UTC

[jira] Issue Comment Edited: (PDFBOX-514) maven pom's do not include source artifacts

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

Yonas Jongkind edited comment on PDFBOX-514 at 9/6/09 12:54 AM:
----------------------------------------------------------------

Sorry, I should have mentioned that the plugins section should be in the build section...

For jempbox the complete pom works out to be:

{code:xml} 
<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                             http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>4</version>
  </parent>

  <groupId>org.apache.pdfbox</groupId>
  <artifactId>jempbox</artifactId>
  <version>0.8.0-incubator</version>

  <name>Jempbox - Java library for XMP</name>
  <!-- Keep on a single line, see http://jira.codehaus.org/browse/MJAR-39 -->
  <description>JempBox is an open source Java library that implements Adobe's XMP(TM) specification.</description>

  <dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.5</version>
        <scope>test</scope>
    </dependency>
  </dependencies>

  <scm>
    <url>http://svn.apache.org/viewvc/incubator/pdfbox/jempbox/trunk/</url>
  </scm>
  <build>
	<plugins>
	<plugin>
	   <groupId>org.apache.maven.plugins</groupId>
	   <artifactId>maven-source-plugin</artifactId>
	   <executions>
		   <execution>
			   <id>attach-sources</id>
			   <goals>
				   <goal>jar</goal>
			   </goals>
			</execution>
		</executions>
	</plugin>  
	</plugins>
  </build>
  
</project>
{code} 



      was (Author: yonas.jongkind@gmail.com):
    Sorry, I should have mentioned that the plugins section should be in the build section...

For jempbox the complete pom works out to be:

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                             http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>4</version>
  </parent>

  <groupId>org.apache.pdfbox</groupId>
  <artifactId>jempbox</artifactId>
  <version>0.8.0-incubator</version>

  <name>Jempbox - Java library for XMP</name>
  <!-- Keep on a single line, see http://jira.codehaus.org/browse/MJAR-39 -->
  <description>JempBox is an open source Java library that implements Adobe's XMP(TM) specification.</description>

  <dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.5</version>
        <scope>test</scope>
    </dependency>
  </dependencies>

  <scm>
    <url>http://svn.apache.org/viewvc/incubator/pdfbox/jempbox/trunk/</url>
  </scm>
  <build>
	<plugins>
	<plugin>
	   <groupId>org.apache.maven.plugins</groupId>
	   <artifactId>maven-source-plugin</artifactId>
	   <executions>
		   <execution>
			   <id>attach-sources</id>
			   <goals>
				   <goal>jar</goal>
			   </goals>
			</execution>
		</executions>
	</plugin>  
	</plugins>
  </build>
  
</project>



  
> maven pom's do not include source artifacts
> -------------------------------------------
>
>                 Key: PDFBOX-514
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-514
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: FontBox, JempBox
>    Affects Versions: 0.8.0-incubator
>            Reporter: Yonas Jongkind
>
> For pdfbox, fontbox, and jempbox I have added the following lines to my POM's. This way when eclipse adds them to my classpath it also picks up the source.
> Essentially the following lines tell maven that when running a maven:install to also jar up the source files and include those in the distribution.
> 	<plugins>
> 		<plugin>
> 		   <groupId>org.apache.maven.plugins</groupId>
> 		   <artifactId>maven-source-plugin</artifactId>
> 		   <executions>
> 			   <execution>
> 				   <id>attach-sources</id>
> 				   <goals>
> 					   <goal>jar</goal>
> 				   </goals>
> 				</execution>
> 			</executions>
> 		</plugin>
> 	</plugins>

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