Re: Need help with maven poms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.pdfbox:pdfbox: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.pdfbox:pdfbox: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@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux