Source directory not created
----------------------------

                 Key: MOJO-1695
                 URL: http://jira.codehaus.org/browse/MOJO-1695
             Project: Mojo
          Issue Type: Bug
          Components: apt
    Affects Versions: apt-maven-plugin-1.0-alpha-4
         Environment: Linux ps-cube 2.6.35.9-64.fc14.x86_64 #1 SMP Fri Dec 3 
12:19:41 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
            Reporter: Niklas Modin


When running the apt plug-in, some people have issues with a non existent 
directory for the generated code. However,
it seems that it works for some other developers, which suggest an env. 
problem, but wanted to raise the issue anyways, since I noted a similar issue 
directories getting created multiple times.

This is what is executed:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>apt-maven-plugin</artifactId>
    <version>1.0-alpha-4</version>
    <executions>
        <execution>
          <goals>
            <goal>process</goal>
          </goals>
        </execution>
      </executions>
</plugin>

And here is the stack trace:

java.io.IOException: 
/export/home/<user>/workspace/CC/src/target/matrix/matrix.up.provisioning.ws/generated-sources/apt:
 non-existent directory
        at 
com.sun.codemodel.internal.writer.FileCodeWriter.<init>(FileCodeWriter.java:62)
        at 
com.sun.codemodel.internal.writer.FileCodeWriter.<init>(FileCodeWriter.java:55)
        at 
com.sun.tools.internal.ws.wscompile.WSCodeWriter.<init>(WSCodeWriter.java:44)
        at 
com.sun.tools.internal.ws.wscompile.FilerCodeWriter.<init>(FilerCodeWriter.java:47)
        at 
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceWrapperGenerator.doPostProcessWebService(WebServiceWrapperGenerator.java:99)
        at 
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWebService(WebServiceWrapperGenerator.java:90)
        at 
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:136)
        at 
com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(Unknown Source)
        at 
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:315)
        at 
com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:256)
        at 
com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
        at com.sun.tools.apt.comp.Apt.main(Unknown Source)
        at com.sun.tools.apt.main.JavaCompiler.compile(Unknown Source)
        at com.sun.tools.apt.main.Main.compile(Unknown Source)
        at com.sun.tools.apt.main.Main.compile(Unknown Source)
        at com.sun.tools.apt.Main.processing(Unknown Source)
        at com.sun.tools.apt.Main.process(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.mojo.apt.AptUtils.invoke(AptUtils.java:114)
        at 
org.codehaus.mojo.apt.AbstractAptMojo.executeApt(AbstractAptMojo.java:389)
        at 
org.codehaus.mojo.apt.AbstractAptMojo.executeImpl(AbstractAptMojo.java:263)
        at 
org.codehaus.mojo.apt.AbstractAptMojo.execute(AbstractAptMojo.java:240)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to