You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Baskar D <db...@corelogic.com> on 2012/07/10 08:31:35 UTC

xdoclet not generating EJB (my earlier post not aligned properly)

Hi,

I am using xdoclet maven plug-in for generating EJB's. I configured xdoclet
properly and able to generate EJB when I build the project through Netbeans
IDE and command propmpt.

In Netbeans simple I can right click on project and select Clean and Build.
In command prompt, I use the command mvn clean install.

Build successful in both the ways. However, my requirement want to build the
project through Java API.

I tried to build the project like below ,

Process pb = new ProcessBuilder("cmd.exe", "/C", getMavenHome() +
"\\bin\\mvn.bat -f " + getProjectPath() + " -DskipTests=true clean
install");

and also like below 

process = Runtime.getRuntime().exec(getMavenHome() + "\\bin\\mvn.bat -f " +
getProjectPath() + " -DskipTests=true clean install");


Through the above commands I can able build the project successfully if the
project doesnt depends on xdoclet plugin. But if the project uses xdoclet to
generate EJB, the I am getting below in my console


[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building EJBProject
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory D:\Projects\EJBProject\target
[WARNING] Attempting to build MavenProject instance for Artifact
(org.codehaus.mojo:xdoclet-maven-plugin:1.0-beta-1-internal-FDS) of type:
maven-plugin; constructing POM artifact instead.
[INFO] [xdoclet:xdoclet {execution: default}]
[INFO] Initializing DocletTasks!!!
[INFO] Executing tasks
Generating Remote interface for 'com.XXXXXXXX'.
Generating Local interface for 'com.XXXXXXXX'.
Generating Home interface for 'com.XXXXXXXX'.
Generating Local Home interface for 'com.XXXXXXXX'.

The build is stopped or paused at this point. It never finishe its exection.
I do not know when xdoclet not running if i run with ProcessBuilder or
Runtime.exec() methods.

I searched on net but didnt get any solution to find the reason.

Please someone tell me why and how to solve this issue,

Thanks


--
View this message in context: http://maven.40175.n5.nabble.com/xdoclet-not-generating-EJB-my-earlier-post-not-aligned-properly-tp5713534.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org