I do not understand xbean-maven-plugin take care of it
and modify the xbean-maven-plugin in pom.xml before or after executing mvn -Pnochecks install Freeman Fang wrote: > > Hi, > > My comment inline > On 2010-3-23, at 下午5:14, jpepalmero wrote: > > > > >> >> >> I installed the version 2.2.1 of maven. mvn -Pnochecks install >> instruction >> has been executed successfully install. I only have three doubts. >> 1) What files should I modify to change the namespace in my >> http://servicemix.apache.org/http/1.0 to >> http://servicemix.mycompany.org/http/1.0 ServiceMix installation? > You need configure xbean-maven-plugin in pom.xml of the component > you want to change, something like > <plugin> > <groupId>org.apache.xbean</groupId> > <artifactId>maven-xbean-plugin</artifactId> > <executions> > <execution> > <goals> > <goal>mapping</goal> > </goals> > <configuration> > <namespace>http://what_ever_you_want</namespace> > </configuration> > </execution> > </executions> > </plugin> > > >> 2) How does maven recognize this namespace when running mvn clean >> install on >> the service units? > xbean-maven-plugin take care of it >> 3) How do I start ServiceMix to verify that you are OK? > Start smx3 container, drop your revised component into $SMX_HOME/ > hotdeploy folder, and deploy your SU/SA which use new namespace to > verify it works > > Freeman >> >> Thanks >> >> >> >> Freeman Fang wrote: >>> >>> >>> On 2010-3-23, at 下午4:44, jpepalmero wrote: >>> >>>> >>>> I tell what my purpose and the steps I have done: >>>> ServiceMix I have in my company, under a namespace, instead of >>>> http://servicemix.apache.org/htpp/1.0 by >>>> http://servicemix.mycompany.org/htpp/1.0. I have to use the >>>> version of >>>> ServiceMix 3.2.3 I've tried several things: >>>> 1) I installed ServiceMix from >>>> http://servicemix.apache.org/servicemix-323.html. >>>> 2) I have installed maven for compilation of service and assembly >>>> units and >>>> I want to compile under http://servicemix.mycompany.org/htpp/1.0 >>>> namespace. >>>> 3) I downloaded >>>> http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-http >>>> . >>>> But there is a patch for ServiceMix 3.2.3. Only Sevicemix 3.3 and >>>> 3.2.1. >>>> If I edit the version in the pom and put 3.2.3, it compiles >>>> correctly, but >>>> when I compile the service units, generates an error: Versions of >>>> ServiceMix-http direrentes. >>>> 4) If I omit step 3) and placed directly >>>> http://servicemix.mycompany.org/htpp/1.0 namespace in xbeans, there >>>> is an >>>> error: Can not find the namespace http://servicemix. mycompany.org/ >>>> htpp/1.0. >>>> >>>> I have read that I can install the namespace in ServiceMix pretend >>>> as if it >>>> were a component. But I do not like this solution, and I want to be >>>> the main >>>> namespace. >>>> >>>> The other solution I tried is to download ServiceMix from svn. >>>> Through: >>>> http://svn.apache.org/repos/asf/servicemix/smx3/tags/ >>>> servicemix-3.2.3. But >>>> directly contains errors. Duplicate units and can not find xalan. >>>> After >>>> solving this, and running mvn clean install, the following error >>>> occurs: >>>> >>>> Caused by: org.apache.maven.reporting.MavenReportException: Failed >>>> during >>>> configuration Checkstyle >>>> at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport >>>> (CheckstyleReport.java: 591) >>>> at org.apache.maven.reporting.AbstractMavenReport.generate >>>> (AbstractMavenReport.java: 131) >>>> at org.apache.maven.reporting.AbstractMavenReport.execute >>>> (AbstractMavenReport.java: 76) >>>> ... 19 more >>>> Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: >>>> can not >>>> initialize module TreeWalker - TreeWalker is not allowed as a parent >>>> of >>>> RegexpHeader >>>> at com.puppycrawl.tools.checkstyle.Checker.setupChild (Checker.java: >>>> 177) >>>> at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure >>>> (AutomaticBean.java: 207) >>>> at >>>> org >>>> .apache >>>> .maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle >>>> (DefaultCheckstyleExecutor.java: 176) >>>> at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport >>>> (CheckstyleReport.java: 576) >>>> ... 21 more >>>> Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: >>>> TreeWalker is not allowed as a parent of RegexpHeader >>>> at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild >>>> (TreeWalker.java: >>>> 161) >>>> at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure >>>> (AutomaticBean.java: 207) >>>> at com.puppycrawl.tools.checkstyle.Checker.setupChild (Checker.java: >>>> 156) >>>> ... 24 More >>>> And this does not fix it. >>>> I use Java 1.5 and Ubuntu 9.04, maven 2.0 >>>> >>> >>> Hi, >>> >>> What I can tell so far is your maven version is too old, could you >>> use 2.0.9 later? >>> >>> You can use "mvn -Pnochecks install" to avoid checkstyle staff, you >>> may need take a look at the wiki about smx build [1] >>> >>> [1]http://servicemix.apache.org/building.html >>> >>> Freeman >>>> Thanks in advance >>>> >>>> Freeman Fang wrote: >>>>> >>>>> Hi, >>>>> >>>>> Could you tell me where and how you check out servicemix 3.2.3? >>>>> How >>>>> you build it, you java and maven version and platform specs, more >>>>> importantly, what's the error you encounter? >>>>> >>>>> Freeman >>>>> On 2010-3-23, at 上午1:01, jpepalmero wrote: >>>>> >>>>>> >>>>>> >>>>>> >>>>>> ServiceMix 3.2.3 How do I build from svn?. They give me many >>>>>> problems. There >>>>>> are a stable svn? >>>>>> -- >>>>>> View this message in context: >>>>>> http://old.nabble.com/ServiceMix-3.2.3-build-from-svn.-tp27989314p27989314.html >>>>>> Sent from the ServiceMix - User mailing list archive at >>>>>> Nabble.com. >>>>>> >>>>> >>>>> >>>>> -- >>>>> Freeman Fang >>>>> ------------------------ >>>>> Open Source SOA: http://fusesource.com >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://old.nabble.com/ServiceMix-3.2.3-build-from-svn.-tp27989314p27997716.html >>>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>>> >>> >>> >>> -- >>> Freeman Fang >>> ------------------------ >>> Open Source SOA: http://fusesource.com >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/ServiceMix-3.2.3-build-from-svn.-tp27989314p27998001.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> > > > -- > Freeman Fang > ------------------------ > Open Source SOA: http://fusesource.com > > > -- View this message in context: http://old.nabble.com/ServiceMix-3.2.3-build-from-svn.-tp27989314p27998226.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
