RE: How to add class file to build & classpath?

2017-04-06 Thread Robert Patrick
M/373M [INFO] C:\test\maven-test\multi-module-test> -Original Message- From: David Hoffer [mailto:dhoff...@gmail.com] Sent: Thursday, April 06, 2017 3:26 PM To: Maven Users List Subject: Re: How to add class file to build & classpath?

Re: How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
gt; having can be solved by simply moving the exec-maven-plugin execution to > the process-resources phase? > > > > -Original Message- > From: David Hoffer [mailto:dhoff...@gmail.com] > Sent: Thursday, April 06, 2017 12:45 PM > To: Maven Users List > Subject: Re:

RE: How to add class file to build & classpath?

2017-04-06 Thread Robert Patrick
To: Maven Users List Subject: Re: How to add class file to build & classpath? Yes that is the location the class file(s) are being created in. And yes I am binding the exec-maven-plugin to the compile phase in my pom (see prior email). Also the class(s) file is being included in the resulting

Re: How to add class file to build & classpath?

2017-04-06 Thread Curtis Rueden
t? > > > > > > > > -Original Message- > > From: Curtis Rueden [mailto:ctrue...@wisc.edu] > > Sent: Thursday, April 06, 2017 11:34 AM > > To: Maven Users List > > Subject: Re: How to add class file to build & classpath? > > &

Re: How to add class file to build & classpath?

2017-04-06 Thread Russell Gold
Hi David, Is this class generated from data files rather than compiled classes? If so, can you bind the plugin run with the generate-resources phase? That would make it available at compile time. > On Apr 6, 2017, at 11:48 AM, David Hoffer wrote: > > I'm using

Re: How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
uot;jar"). Have you tried that? > > > > -Original Message- > From: Curtis Rueden [mailto:ctrue...@wisc.edu] > Sent: Thursday, April 06, 2017 11:34 AM > To: Maven Users List > Subject: Re: How to add class file to build & classpath? > > Hi Dave, >

RE: How to add class file to build & classpath?

2017-04-06 Thread Robert Patrick
packaging type is "jar"). Have you tried that? -Original Message- From: Curtis Rueden [mailto:ctrue...@wisc.edu] Sent: Thursday, April 06, 2017 11:34 AM To: Maven Users List Subject: Re: How to add class file to build & classpath? Hi Dave, > I'm using exec-maven-plugin to

Re: How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
Yes I know its more common to start with java source files but in this case that is not possible unless someone knows how to generate sources from a javassist generated CtClass. If I could do that then yes I could just add the sources instead of the class. Here is the best I have so far and sort

Re: How to add class file to build & classpath?

2017-04-06 Thread Curtis Rueden
Hi Dave, > I'm using exec-maven-plugin to call a main in my code that uses > javassist to generate a class file at build time. The more common pattern is to generate .java source files, and then include them in the build. Since you are generating .class file(s), could you do it in a separate

How to add class file to build & classpath?

2017-04-06 Thread David Hoffer
I'm using exec-maven-plugin to call a main in my code that uses javassist to generate a class file at build time. My code places the class file in the ./target/classes folder so it gets included in the modules normal binary jar. However the rest of the build and other code needs to know that the