[ 
https://issues.apache.org/jira/browse/CAMEL-11799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Palaga resolved CAMEL-11799.
----------------------------------
    Resolution: Won't Fix

I am giving up to provide such a profile.

Instead, I was able to come up with a script that does what I need trough 
splitting the build into several Maven invocations using {{-pl}} and {{-am}} 
arguments:
{code:java}
#!/bin/bash

set -x
set -e


LOCAL_MAVEN_REPO=~/.m2/repository

version="$(xmllint --xpath 
'/*[local-name()="project"]/*[local-name()="version"]/text()' pom.xml)"
find ${LOCAL_MAVEN_REPO}/org/apache/camel -type d -name "${version}" -exec rm 
-Rf {} +

mvn --no-snapshot-updates 
org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate 
-Dexpression=project.version

mvn --no-snapshot-updates clean install -Dmaven.test.skip=true -pl 
parent,tooling,tooling/parent,tooling/maven,tooling/spi-annotations,tooling/json-simple-ordered,tooling/apt,tooling/maven/camel-package-maven-plugin,tooling/maven/camel-eip-documentation-enricher-maven-plugin,tooling/maven/camel-api-component-maven-plugin
 -am -Denforcer.skip=true

cd camel-core
mvn --no-snapshot-updates clean install -DskipTests -Denforcer.skip=true

cd ../components
mvn --no-snapshot-updates clean install -Dmaven.test.skip=true 
-Denforcer.skip=true

cd ..
mvn --no-snapshot-updates clean install -Dmaven.test.skip=true 
-Denforcer.skip=true -pl 
platforms,platforms/camel-catalog,connectors,connectors/camel-connector{code}

> Add "components" Maven profile
> ------------------------------
>
>                 Key: CAMEL-11799
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11799
>             Project: Camel
>          Issue Type: Task
>            Reporter: Peter Palaga
>            Assignee: Peter Palaga
>            Priority: Major
>
> Camel build with {{-Pfastinstall}} takes 24+mins on my machine and I'll thus 
> be happy to reach any improvement. Because I work on WildFly-Camel, I will 
> typically need just a subset of Camel artifacts. I have not found a single 
> Maven command that would build only things that I need. The current objective 
> is therefore to add a new "components" profile that would build components 
> and their dependencies, skipping all other modules.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to