Hi,
No, Fuse ESB doesn't rely on environment variables FUSE_ESB set.
When I mentioned the $FUSE_ESB, I just refer to the location where you install Fuse ESB.
Did a close look at the camel-archetype-java, the package in pom.xml is plain jar, so it's not designed to be deployed into OSGi container, you should use camel-archetype-blueprint instead which demonstrate how to generate blueprint bundle and deploy to OSGi container. Take a look at [1] to get different camel archetypes purpose.
However, adapt the camel-archetype-java to be able to deployed into OSGi container isn't difficult, you just need edit the generated pom.xml
change
<packaging>jar</packaging>
to
<packaging>bundle</packaging>
also add
<!-- to generate the MANIFEST-FILE of the bundle -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.4</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>mytest-blueprint</Bundle-SymbolicName>
<Import-Package>*,org.apache.camel.osgi</Import-Package>
</instructions>
</configuration>
</plugin>
to the <plugins> tag, then build it and drop the jar to $FUSE_ESB/deploy folder, then you can see $FUSE_ESB/src/data folder get generated automatically for you, then you can copy message1|2.xml into this folder and you can find in $FUSE_ESB/target there's the output files.
[1]http://camel.apache.org/camel-maven-archetypes.html
Freeman