FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 02-19-2010, 04:03 PM
Fernando Nasser
 
Default Need help with maven poms

Orion Poplawski wrote:
> I've packaged up jempbox and fontbox, prereqs for pdfbox. Now trying to
> build pdfbox I get:
>
> Downloading:
> file:///usr/share/maven2/repository/JPP/maven2/default_poms/org.apache.pdfbox-fontbox.pom
> Downloading:
> file:///usr/share/maven2/repository/JPP/maven2/default_poms/org.apache.pdfbox-jempbox.pom
> ...
> Missing:
> ----------
> 1) org.apache.pdfbox:fontbox:jar:1.0.0
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.pdfbox
> -DartifactId=fontbox -Dversion=1.0.0 -
> Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the
> file there:
> mvn deploy:deploy-file -DgroupId=org.apache.pdfbox
> -DartifactId=fontbox -Dversion=1.0.0 -Dp
> ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.pdfboxdfbox:bundle:1.0.0
> 2) org.apache.pdfbox:fontbox:jar:1.0.0
> 2) org.apache.pdfbox:jempbox:jar:1.0.0
> Try downloading the file manually from the project website.
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.pdfbox
> -DartifactId=jempbox -Dversion=1.0.0 -
> Dpackaging=jar -Dfile=/path/to/file
> Alternatively, if you host your own repository you can deploy the
> file there:
> mvn deploy:deploy-file -DgroupId=org.apache.pdfbox
> -DartifactId=jempbox -Dversion=1.0.0 -Dp
> ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> Path to dependency:
> 1) org.apache.pdfboxdfbox:bundle:1.0.0
> 2) org.apache.pdfbox:jempbox:jar:1.0.0
>
> I don't see
> /usr/share/maven2/repository/JPP/maven2/default_poms/org.apache.pdfbox-fontbox.pom
> or
> /usr/share/maven2/repository/JPP/maven2/default_poms/org.apache.pdfbox-jempbox.pom
>

Of course not, default_poms is just for the maven's own dependencies,
and I believe Deepak wants to get rid of those in the future.
> present, but there is /usr/share/maven2/poms/JPP-fontbox.pom:
>
> <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>6</version>
> </parent>
>
> <groupId>org.apache.pdfbox</groupId>
> <artifactId>fontbox</artifactId>
> <version>1.0.0</version>
> <packaging>bundle</packaging>
>
>
> I suspect I'm not packaging the pom correctly as part of the pdfbox
> project, but not sure how to fix. Help please?
>

This looks OK.
> fontbox spec has:
>
> cp -p pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
>
> %add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
>

The groupId for odfbox is

org.apache.pdfbox

the above line says org.apache.maven. It will never look at that coordinate.

>
> Thanks!
>
>

--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 
Old 02-19-2010, 07:38 PM
Orion Poplawski
 
Default Need help with maven poms

On 02/19/2010 10:03 AM, Fernando Nasser wrote:
> Orion Poplawski wrote:
>> fontbox spec has:
>>
>> cp -p pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
>> %add_to_maven_depmap org.apache.maven %{name} %{version} JPP %{name}
>
> The groupId for odfbox is
>
> org.apache.pdfbox
>
> the above line says org.apache.maven. It will never look at that
> coordinate.

That did the trick. Thanks.

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel
 

Thread Tools




All times are GMT. The time now is 03:43 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org