Skip to content

Instantly share code, notes, and snippets.

View honghuac's full-sized avatar
💭
TWO-peat speaker and content contributor for Red Hat Summit #rhsummit

Hong honghuac

💭
TWO-peat speaker and content contributor for Red Hat Summit #rhsummit
View GitHub Profile
@honghuac
honghuac / maven-build.log
Created August 24, 2015 07:45
Maven Clean Install Fail
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jboss.tools.fuse.examples.transformation:xml-to-java:bundle:1.0.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 108, column 15
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
@honghuac
honghuac / mvn.log
Created August 24, 2015 09:09
Error in mvn compile
H-Opensack:fabric-labs-0.1 hchin$ mvn compile
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'modules.module[0]' has been specified without a path to the project directory. @ com.redhat.gpe.training:fabric-lab-1-project:[unknown-version], /Users/hchin/Downloads/fabric-labs-0.1/1_introduction_administration/pom.xml, line 17, column 17
[ERROR] 'modules.module[0]' has been specified without a path to the project directory. @ com.redhat.gpe.training:fabric-lab3-project:[unknown-version], /Users/hchin/Downloads/fabric-labs-0.1/3_Advanced_Features/pom.xml, line 17, column 17
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ com.redhat.gpe.training:features:[unknown-version], /Users/hchin/Downloads/fabric-labs-0.1/4_Architectures/fabric-amq-camel/features/pom.xml, line 43, column 21
@
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project com.redhat.gpe.training:fabr
@honghuac
honghuac / gist:d2a4f84180000d366f1f
Created February 8, 2016 16:45
My Container List
JBossFuse:karaf@root> fabric:container-list
[id] [version] [type] [connected] [profiles] [provision status]
root* 1.0 karaf yes fabric success
fabric-ensemble-0000-1
jboss-fuse-full
demo 1.0 karaf no feature-camel
jar2 1.0 karaf yes gpe-exercise-plainjar success
plainjar 1.0 karaf yes gpe-exercise-plainjar success
@honghuac
honghuac / mvn.log
Created June 24, 2016 08:47
Error at Use Case 3 : Routing
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.fuse.usecase2:routing:bundle:1.0
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.camel:camel-sql:jar -> duplicate declaration of version (?) @ org.fuse.usecase2:routing:[unknown-version], /Users/hchin/Downloads/aeiplabs/code/enrich-content-REST-and-WS/routing/pom.xml, line 98, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<features name="usecases" xmlns="http://karaf.apache.org/xmlns/features/v1.2.0">
<feature name="usecase-camel-bindy-json" version="1.0">
<feature version="[2.12,3)">camel</feature>
<feature version="[2.12,3)">camel-bindy</feature>
<feature version="[2.12,3)">camel-jackson</feature>
<feature version="[2.12,3)">camel-dozer</feature>
<bundle>mvn:org.fuse.usecase1/routing/${project.version}</bundle>
</feature>
</features>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:cxf="http://camel.apache.org/schema/cxf"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
<!-- Defined the real JAXRS back end service -->
<jaxrs:server id="restService"
address="http://localhost:${CXFTestSupport.port2}/CxfRsRouterTest/rest"
staticSubresourceResolution="true">
<jaxrs:serviceBeans>
<ref bean="customerService"/>
</jaxrs:serviceBeans>
</jaxrs:server>
<?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>
<groupId>org.fuse.usecase5</groupId>
<artifactId>parent</artifactId>
<version>1.0</version>
[INFO] ------------------------------------------------------------------------
[INFO] Building Fuse :: Use Case 4 :: Features 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ features ---
[INFO] Deleting /Users/hchin/Downloads/AEIlabsol/usecase-5/features/target
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (filter) @ features ---
[debug] execute contextualize
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
QUESTIONBANKCODE|QUESTIONCODE|QUESTIONTYPE|QUESTIONTEXT|QUESTIONTEXTFORMAT|QUESTIONFEEDBACK|OPTION|RIGHTOPTION|OPTIONFEEDBACK|ISCORRECT|OPTIONWEIGHT|ISCASESENSITIVE|RANDOMIZEOPTIONS|STATUS
FUSEEAP|FUSEEAP0401|1|LAB: How do you change the name of the default CamelContext bean?|||Use the @Startup annotation and import the Java package "javax.ejb.Startup" as part of the bean implementation|||0|0|||
FUSEEAP|FUSEEAP0401|1|LAB: How do you change the name of the default CamelContext bean?|||Use the @PersistenceContext annotation and import the Java package "javax.persistence.PersistenceContext" as part of the bean implementation|||0|0|||
FUSEEAP|FUSEEAP0401|1|LAB: How do you change the name of the default CamelContext bean?|||Use the @ContextName("NAME-OF-THE-CAMEL-CONTEXT") annotation and import the Java package "org.apache.camel.cdi.ContextName" as part of the bean implementation|||1|100|||
FUSEEAP|FUSEEAP0401|1|LAB: How do you change the name of the default CamelContext bean?|||Use the @ApplicationScoped annotati