Absolutely, I only added the version after seeing the problem in the hope
it solved it.  Frustratingly I cannot recreate the problem here at $work
(last night I was building at $home).  The only difference I know of is
that the PC here is Win7 and at home it's Win10.

Regardless, it appears to be an environment problem with me. I'll test
again tonight and update this thread with more info.

Thanks for looking into it anyhow.

On 14 October 2015 at 08:34, jbonofre [via Karaf] <
ml-node+s922171n4043072...@n3.nabble.com> wrote:

> ${karaf.version} property is not requires in the bootFeatures as you
> should have only one version available. You should define the karaf
> dependency:
>
> <dependencies>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>framework</artifactId>
>              <version>${karaf.version}</version>
>              <type>kar</type>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>standard</artifactId>
>              <classifier>features</classifier>
>             <version>${karaf.version}</version>
>              <type>xml</type>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>spring</artifactId>
>              <classifier>features</classifier>
>             <version>${karaf.version}</version>
>              <type>xml</type>
>              <scope>runtime</scope>
>          </dependency>
>          <dependency>
>              <groupId>org.apache.karaf.features</groupId>
>              <artifactId>enterprise</artifactId>
>              <classifier>features</classifier>
>             <version>${karaf.version}</version>
>              <type>xml</type>
>              <scope>runtime</scope>
>          </dependency>
> </dependencies>
>
> Regards
> JB
>
> On 10/14/2015 08:29 AM, garyhodgson wrote:
>
> > Hi JB,
> >
> > Thanks for the prompt response.  Here's my pom.xml with only $work
> related
> > stuff removed ...
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <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/xsd/maven-4.0.0.xsd";>
> >      <modelVersion>4.0.0</modelVersion>
> >      <parent>
> >          ...
> >      </parent>
> >      <groupId>...</groupId>
> >      <artifactId>distribution</artifactId>
> >      <packaging>karaf-assembly</packaging>
> >      <name>${project.groupId}.${project.artifactId}</name>
> >
> >      <properties>
> >          <karaf.version>4.0.2</karaf.version>
> >      </properties>
> >
> >      <build>
> >          <resources>
> >              <resource>
> >                  <directory>src/main/resources</directory>
> >                  <filtering>false</filtering>
> >                  <includes>
> >                      <include>**/*</include>
> >                  </includes>
> >              </resource>
> >              <resource>
> >                  <directory>src/main/filtered-resources</directory>
> >                  <filtering>true</filtering>
> >                  <includes>
> >                      <include>**/*</include>
> >                  </includes>
> >              </resource>
> >          </resources>
> >
> >          <pluginManagement>
> >              <plugins>
> >                  <plugin>
> >                      <groupId>org.apache.karaf.tooling</groupId>
> >                      <artifactId>karaf-maven-plugin</artifactId>
> >                      <version>${karaf.version}</version>
> >                      <extensions>true</extensions>
> >                  </plugin>
> >              </plugins>
> >          </pluginManagement>
> >
> >          <plugins>
> >              <plugin>
> >                  <groupId>org.apache.maven.plugins</groupId>
> >                  <artifactId>maven-resources-plugin</artifactId>
> >                  <executions>
> >                      <execution>
> >                          <id>process-resources</id>
> >                          <goals>
> >                              <goal>resources</goal>
> >                          </goals>
> >                          <configuration>
> >
> > <outputDirectory>${project.basedir}/target/assembly</outputDirectory>
> >                              <overwrite>true</overwrite>
> >                              <resources>
> >                                  <resource>
> >
> > <directory>${project.basedir}/src/main/assembly</directory>
> >                                      <filtering>false</filtering>
> >                                  </resource>
> >                                  <resource>
> >
> > <directory>${project.basedir}/src/main/filtered-assembly</directory>
> >                                      <filtering>true</filtering>
> >                                  </resource>
> >                              </resources>
> >                          </configuration>
> >                      </execution>
> >                  </executions>
> >              </plugin>
> >              <plugin>
> >                  <groupId>org.apache.karaf.tooling</groupId>
> >                  <artifactId>karaf-maven-plugin</artifactId>
> >                  <version>${karaf.version}</version>
> >                  <configuration>
> >                      <archiveTarGz>false</archiveTarGz>
> >                      <archiveZip>true</archiveZip>
> >
> >                      <startupFeatures/>
> >
> >                      <bootFeatures>
> >                          <feature>jaas/${karaf.version}</feature>
> >                          <feature>shell/${karaf.version}</feature>
> >                          <feature>ssh/${karaf.version}</feature>
> >                          <feature>management/${karaf.version}</feature>
> >                          <feature>bundle/${karaf.version}</feature>
> >                          <feature>config/${karaf.version}</feature>
> >                          <feature>deployer/${karaf.version}</feature>
> >                          <feature>diagnostic/${karaf.version}</feature>
> >                          <feature>instance/${karaf.version}</feature>
> >                          <feature>kar/${karaf.version}</feature>
> >                          <feature>log/${karaf.version}</feature>
> >                          <feature>package/${karaf.version}</feature>
> >                          <feature>service/${karaf.version}</feature>
> >                          <feature>system/${karaf.version}</feature>
> >                          <feature>feature/${karaf.version}</feature>
> >
>  <feature>aries-blueprint/${karaf.version}</feature>
> >
>  <feature>shell-compat/${karaf.version}</feature>
> >                          <feature>wrap/${karaf.version}</feature>
> >                      </bootFeatures>
> >
> >                      <installedFeatures />
> >                  </configuration>
> >              </plugin>
> >          </plugins>
> >      </build>
> >
> >      <dependencies>
> >
> >          <dependency>
> >              <groupId>org.apache.karaf.features</groupId>
> >              <artifactId>framework</artifactId>
> >              <version>${karaf.version}</version>
> >              <type>kar</type>
> >          </dependency>
> >
> >          <dependency>
> >              <groupId>org.apache.karaf.features</groupId>
> >              <artifactId>standard</artifactId>
> >              <version>${karaf.version}</version>
> >              <classifier>features</classifier>
> >              <type>xml</type>
> >              <scope>runtime</scope>
> >          </dependency>
> >
> >          <dependency>
> >              <groupId>org.apache.karaf.features</groupId>
> >              <artifactId>enterprise</artifactId>
> >              <version>${karaf.version}</version>
> >              <classifier>features</classifier>
> >              <type>xml</type>
> >              <scope>runtime</scope>
> >          </dependency>
> >
> >          <dependency>
> >              <groupId>org.apache.karaf.decanter</groupId>
> >              <artifactId>apache-karaf-decanter</artifactId>
> >              <version>1.0.0</version>
> >              <classifier>features</classifier>
> >              <type>xml</type>
> >              <scope>runtime</scope>
> >          </dependency>
> >
> >      </dependencies>
> > </project>
> >
> > Thanks,
> > Gary
> >
> > On 14 October 2015 at 06:05, jbonofre [via Karaf] <
> > [hidden email] <http:///user/SendEmail.jtp?type=node&node=4043072&i=0>>
> wrote:
> >
> >> Hi Gary,
> >>
> >> can you share your pom ?
> >>
> >> It depends the dependency that you define in the pom.
> >>
> >> Regards
> >> JB
> >>
> >> On 10/13/2015 10:54 PM, garyhodgson wrote:
> >>
> >>> Hi,
> >>>
> >>> So maybe this is a misunderstanding on my part, but when I generate an
> >>> assembly using karaf-maven-plugin, and the version is set to 4.0.2, I
> >> see
> >>> that features for both 4.0.2 and 4.0.3-SNAPSHOT are being installed to
> >> the
> >>> system folder of the assembly.  This doesn't seem right to me.
> >>>
> >>> Is there a rogue maven range being used somewhere in the plugin? Or is
> >> there
> >>> a way to explicitly set the version to be used somehow?  I tried
> setting
> >> the
> >>> version in the features list (e.g. "<feature>shell/4.0.2</feature>")
> but
> >>> still the SNAPSHOT version appeared alongside the 4.0.2 version.
> >>>
> >>>
> >>> Cheers,
> >>> Gary
> >>>
> >>>
> >>>
> >>>
> >>> --
> >>> View this message in context:
> >>
> http://karaf.922171.n3.nabble.com/SNAPSHOT-versions-being-installed-in-custom-assembly-tp4043059.html
> >>> Sent from the Karaf - User mailing list archive at Nabble.com.
> >>>
> >>
> >> --
> >> Jean-Baptiste Onofré
> >> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4043065&i=0>
> >> http://blog.nanthrax.net
> >> Talend - http://www.talend.com
> >>
> >>
> >> ------------------------------
> >> If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://karaf.922171.n3.nabble.com/SNAPSHOT-versions-being-installed-in-custom-assembly-tp4043059p4043065.html
> >> To unsubscribe from SNAPSHOT versions being installed in custom
> assembly, click
> >> here
> >> <
> >> .
> >> NAML
> >> <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://karaf.922171.n3.nabble.com/SNAPSHOT-versions-being-installed-in-custom-assembly-tp4043059p4043070.html
> > Sent from the Karaf - User mailing list archive at Nabble.com.
> >
>
> --
> Jean-Baptiste Onofré
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4043072&i=1>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/SNAPSHOT-versions-being-installed-in-custom-assembly-tp4043059p4043072.html
> To unsubscribe from SNAPSHOT versions being installed in custom assembly, 
> click
> here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4043059&code=Y29udGFjdEBnYXJ5aG9kZ3Nvbi5jb218NDA0MzA1OXw4NTU3ODE3OA==>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://karaf.922171.n3.nabble.com/SNAPSHOT-versions-being-installed-in-custom-assembly-tp4043059p4043073.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to