[Design of JBoss jBPM] - Using the maven-jdocbook-plugin
by thomas.diesler@jboss.com
Hi Steve,
I saw you in
| svn log --limit 10 http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/trunk/m...
|
so I assume you are the right guy to talk to ;-)
I am using this forum because I did find a more appropriate channel, is there one?
If not, here my question
| <plugin>
| <groupId>org.jboss.maven.plugins</groupId>
| <artifactId>maven-jdocbook-plugin</artifactId>
| <extensions>true</extensions>
| <configuration>
| <sourceDocumentName>en/master.xml</sourceDocumentName>
| <formats>
| <format>
| <formatName>html</formatName>
| </format>
| </formats>
| </configuration>
| </plugin>
|
Seems to work for
| [tdiesler@tdvaio userguide]$ mvn clean jdocbook:generate jdocbook:bundle
|
| [INFO] [jdocbook:generate]
| [INFO] [jdocbook:bundle]
| [INFO] Building jar: /home/tdiesler/svn/jbpm/jbpm3/trunk/modules/jpdl/userguide/target/classes/jbpm-jpdl-userguide-3.3.0-SNAPSHOT.war
| [INFO] ------------------------------------------------------------------------
| [INFO] BUILD SUCCESSFUL
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: 21 seconds
| [INFO] Finished at: Fri Sep 05 15:52:20 CEST 2008
| [INFO] Final Memory: 15M/103M
| [INFO] ------------------------------------------------------------------------
|
Just using jdocbook:bundle fails
| [tdiesler@tdvaio userguide]$ mvn clean jdocbook:bundle
|
| [INFO] [jdocbook:bundle]
| [INFO] ------------------------------------------------------------------------
| [ERROR] BUILD ERROR
| [INFO] ------------------------------------------------------------------------
| [INFO] Rendering problem
|
| Embedded error: Unable to populate archive [/home/tdiesler/svn/jbpm/jbpm3/trunk/modules/jpdl/userguide/target/classes/jbpm-jpdl-userguide-3.3.0-SNAPSHOT.war]
| /home/tdiesler/svn/jbpm/jbpm3/trunk/modules/jpdl/userguide/target/docbook/publish/en-US/html isn't a directory.
|
Is this expected?
Also I'd like to bind the bundle goal to the package phase. Perhaps like this
| <plugin>
| <groupId>org.jboss.maven.plugins</groupId>
| <artifactId>maven-jdocbook-plugin</artifactId>
| <extensions>true</extensions>
| <executions>
| <execution>
| <phase>package</phase>
| <goals>
| <goal>generate</goal>
| <goal>bundle</goal>
| </goals>
| <configuration>
| <sourceDocumentName>en/master.xml</sourceDocumentName>
| <formats>
| <format>
| <formatName>html</formatName>
| </format>
| </formats>
| </configuration>
| </execution>
| </executions>
| </plugin>
|
Running
| [tdiesler@tdvaio userguide]$ mvn install
|
| [INFO] [jdocbook:generate {execution: default}]
| [INFO] [jdocbook:bundle {execution: default}]
| [INFO] Building jar: /home/tdiesler/svn/jbpm/jbpm3/trunk/modules/jpdl/userguide/target/classes/jbpm-jpdl-userguide-3.3.0-SNAPSHOT.war
| [INFO] [install:install]
| [INFO] Installing /home/tdiesler/svn/jbpm/jbpm3/trunk/modules/jpdl/userguide/pom.xml to /home/tdiesler/.m2/repository/org/jboss/jbpm/jbpm-jpdl-userguide/3.3.0-SNAPSHOT/jbpm-jpdl-userguide-3.3.0-SNAPSHOT.pom
| [INFO] ------------------------------------------------------------------------
| [INFO] BUILD SUCCESSFUL
| [INFO] ------------------------------------------------------------------------
|
Only installs the pom, but not the war. Also please notice that the war is build at a strange location. Shouldn't it just be 'target'?
This is
| [tdiesler@tdvaio userguide]$ mvn help:effective-pom
| ...
| <groupId>org.jboss.maven.plugins</groupId>
| <artifactId>maven-jdocbook-plugin</artifactId>
| <version>2.1.3-20080831.141438-5</version>
|
Please advice
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174615#4174615
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174615
17 years, 7 months
[Design of JBoss Transaction Services] - Re: bundling JTS into AS 5.0
by adrian@jboss.org
"jhalliday" wrote : Umm, JBossTS is already integrated. The AS build system handles the .jar versioning just fine, thanks.
|
Only because you do all the integration in your project which is the wrong way around.
anonymous wrote :
| All I need to do is add a couple of text files to the AS.
|
Configuration is also integration.
anonymous wrote :
| You seem to be telling me that requires messing around with maven artefacts, poms and such. No wonder this thing is behind schedule if it's that hard to get anything done. varia needs to stay, it's far more suitable for my needs :-)
It's even more delayed/broken when to do a simple fix to the integration
(not the implementation) needs a whole new release cycle of a dependent project
and makes integration with other versions impossible.
Implementation -> your project
policy == integration -> jbossas
I've had this argument with the aop, jboss messaging, remoting and webservices projects,
so far I'm winning, but only just.
I'm only winning when I find out somebody is doing it wrong. ;-)
By way of an example, I'm going to need a jbosstm integration project in jbossas
to fix the "port" problem we were discussing, i.e. replace the GUID mechanism.
Now if my mechanism is generic, I can contribute it back to JBossTM.
If it is a JBossAS specific mechanism then it belongs in that source tree.
The real test is whether you created a circular dependency in your build:
jbossas -> jbossts -> jbossas
In your case, it's even worse (you have the same problem jbossws used to have).
You're not even compiling over a version controlled version of jboss
| <condition property="jboss.home" value="${env.JBOSS_HOME}">
| <isset property="env.JBOSS_HOME"/>
| </condition>
|
| <path id="build.classpath">
| <fileset dir="${com.arjuna.mwlabs.installation.lib.directory}">
| <include name="**/*.jar"/>
| <include name="**/*.zip"/>
| </fileset>
| <filelist dir="${jboss.lib.dir}" files="${jboss.libs}"/>
| <filelist dir="${jboss.client.lib.dir}" files="${jboss.client.libs}"/>
| <filelist dir="${jboss.server.lib.dir}" files="${jboss.server.libs}"/>
| </path>
|
Who knows how to reproduce you're binaries?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174581#4174581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174581
17 years, 7 months