You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Florent Guillaume (JIRA)" <ji...@apache.org> on 2010/09/01 14:48:54 UTC

[jira] Commented: (CMIS-247) Fix maven build when starting from scratch

    [ https://issues.apache.org/jira/browse/CMIS-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905012#action_12905012 ] 

Florent Guillaume commented on CMIS-247:
----------------------------------------

A probably-working solution is to use maven-bundle-plugin but still build jar artifacts.
See http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html#ApacheFelixMavenBundlePlugin%28BND%29-AddingOSGimetadatatoexistingprojectswithoutchangingthepackagingtype


> Fix maven build when starting from scratch
> ------------------------------------------
>
>                 Key: CMIS-247
>                 URL: https://issues.apache.org/jira/browse/CMIS-247
>             Project: Chemistry
>          Issue Type: Bug
>          Components: build&release
>            Reporter: Florent Guillaume
>             Fix For: 0.1.0-incubating
>
>
> A build from scratch (i.e., without older SNAPSHOT versions in the local repository) fails because of a confusion between maven packaging and maven type for the OSGi bundles.
> To reproduce, putting aside the content of .m2/repository/org/apache/chemistry/opencmis and do (assuming all other non-chemistry dependencies have already been loaded):
> mvn -DskipTests -o clean package
> ...
> [INFO] Building OpenCMIS Commons API
> ... (ok) ...
> [INFO] Building OpenCMIS Commons Implementation
> [INFO] Failed to resolve artifact.
> 1) org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:jar:0.1.0-incubating-SNAPSHOT
>  Path to dependency:
>        1) org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl:bundle:0.1.0-incubating-SNAPSHOT
>        2) org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:jar:0.1.0-incubating-SNAPSHOT
> 1 required artifact is missing.
> So it's in the process of building
>   chemistry-opencmis-commons-impl:bundle
> and does not find
>   chemistry-opencmis-commons-api:jar
> which is logical since what it just built is chemistry-opencmis-commons-api:bundle

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