Re: Compiler Plugin Extension

2006-11-23 Thread franz see

Good day to you, Markus,

for 1.) maven resources plugin can do that (see [1]). 

And as for two, You can try what Wayne suggested. But those jars have to be
installed in your local repo. Either that, or you use systemPath

dependency
  groupIdsome.eclipse.groupId/groupId 
  artifactIdan-eclipse-jar/artifactId 
  version1.0/version 
  scopesystem/scope 
  systemPath${eclipse.home}/plugins/an-eclipse-jar.jar/systemPath 
/dependency

Cheers,
Franz

[1]
http://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

Markus Wolf-3 wrote:
 
 Hi,
 
 You can always add dependencies directly to the plugin node, but this
 assumes that you have the artifacts available in your repo.
 
 thats no opinion, because there are no artifacts available (but I could
 possibly create some...)
 
 You're going to need to provide more information about these external
 jars, I think, for us to help you much.
 
 I'm creating a bunch of eclipse plugins for a rcp application packaged
 in an ear application for glassfish. When keeping this parts (client and
 server) seperated it is quite easy. Build eclipse parts with eclipse and
 the ear with maven, but I woule like to create everything with maven.
 
 My idea was to add the eclipse install directory to a custom mojo which
 consists of two goals:
   1) In phase process-resources the plugin.xml, MANIFEST.MF and other
 plugin resources would be copied to the target location.
   2) During the compile phase the jars from eclipse-root/plugins would
 be added to the compiler. (It could be extended to only add the plugins
 required by the plugin).
 
 When adding the eclipse dependencies to the POM (statically) and then
 recreating the eclipse project, the dependencies are duplicated. Once in
 plugins-dependencies (managed by ecipse throught the manifest) and once
 because maven adds them to the eclipse dependencies.
 
 Is there a way to accomplish what I want to do?
 Thanks
 Markus
 -- 
 __
 
   Markus Wolf
   Wedeler Landstrasse 63
   22559 Hamburg
 
  tel: (+49) 40 / 550 083 70
  mob: (+49) 177 / 288 48 67
  web: http://www.matrixweb.de
  icq: #109622365
  pgp: http://wwwkeys.de.pgp.net
 __
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Compiler-Plugin-Extension-tf2682273s177.html#a7517180
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compiler Plugin Extension

2006-11-22 Thread Markus Wolf
 You can always add dependencies directly to the plugin node, but this
 assumes that you have the artifacts available in your repo.

 thats no opinion, because there are no artifacts available (but I could
 possibly create some...)
 
I've seen that the maven-eclipse-plugin in the snapshot could add PDE
parts to the created eclipse project and also could create artifacts
from all plugins in an eclipse directory.
So your idea is possibly an option. How do one dynamically add a
dependency to the plugin node? Are there any code examples available? Or
is there a maven plugin doing this already where I could look at the source?

Thanks
Markus
-- 
__

  Markus Wolf
  Wedeler Landstrasse 63
  22559 Hamburg

 tel: (+49) 40 / 550 083 70
 mob: (+49) 177 / 288 48 67
 web: http://www.matrixweb.de
 icq: #109622365
 pgp: http://wwwkeys.de.pgp.net
__

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compiler Plugin Extension

2006-11-22 Thread Wayne Fay

I was simply suggesting along these lines:

project
 build
   plugins
 plugin
   ...
   dependencies
 dependency
 ...
 /dependency
   /dependencies
 /plugin
   /plugins
 /build
/project

This allows you to attach an artifact directly to a plugin used during
the build process, rather than attaching the artifact to the project
itself.

I don't know anything about dynamically adding dependencies via a
plugin etc, personally.

Wayne

On 11/22/06, Markus Wolf [EMAIL PROTECTED] wrote:

 You can always add dependencies directly to the plugin node, but this
 assumes that you have the artifacts available in your repo.

 thats no opinion, because there are no artifacts available (but I could
 possibly create some...)

I've seen that the maven-eclipse-plugin in the snapshot could add PDE
parts to the created eclipse project and also could create artifacts
from all plugins in an eclipse directory.
So your idea is possibly an option. How do one dynamically add a
dependency to the plugin node? Are there any code examples available? Or
is there a maven plugin doing this already where I could look at the source?

Thanks
Markus
--
__

 Markus Wolf
 Wedeler Landstrasse 63
 22559 Hamburg

 tel: (+49) 40 / 550 083 70
 mob: (+49) 177 / 288 48 67
 web: http://www.matrixweb.de
 icq: #109622365
 pgp: http://wwwkeys.de.pgp.net
__

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Compiler Plugin Extension

2006-11-21 Thread Markus Wolf
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Group,

is there a way for a custom plugin to add some internal dependencies to
the compiler classpath which are not available as maven plugins?
In other words is there an API to dynamically add external jars to the
compiler classpath?

Thanks for any hint
Markus Wolf
- --
__

  Markus Wolf
  Wedeler Landstrasse 63
  22559 Hamburg

 tel: (+49) 40 / 550 083 70
 mob: (+49) 177 / 288 48 67
 web: http://www.matrixweb.de
 icq: #109622365
 pgp: http://wwwkeys.de.pgp.net
__
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFY2PwYuGbqyQxpHcRAtraAJ9J0G4rqpkcL2RRu31LjDC7GIhNNQCfbEb8
UsILepXMPDOdFcPkTL7WRRc=
=AsER
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compiler Plugin Extension

2006-11-21 Thread Wayne Fay

You can always add dependencies directly to the plugin node, but this
assumes that you have the artifacts available in your repo.

You're going to need to provide more information about these external
jars, I think, for us to help you much.

Wayne

On 11/21/06, Markus Wolf [EMAIL PROTECTED] wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Group,

is there a way for a custom plugin to add some internal dependencies to
the compiler classpath which are not available as maven plugins?
In other words is there an API to dynamically add external jars to the
compiler classpath?

Thanks for any hint
Markus Wolf
- --
__

 Markus Wolf
 Wedeler Landstrasse 63
 22559 Hamburg

 tel: (+49) 40 / 550 083 70
 mob: (+49) 177 / 288 48 67
 web: http://www.matrixweb.de
 icq: #109622365
 pgp: http://wwwkeys.de.pgp.net
__
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFY2PwYuGbqyQxpHcRAtraAJ9J0G4rqpkcL2RRu31LjDC7GIhNNQCfbEb8
UsILepXMPDOdFcPkTL7WRRc=
=AsER
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compiler Plugin Extension

2006-11-21 Thread Markus Wolf
Hi,

 You can always add dependencies directly to the plugin node, but this
 assumes that you have the artifacts available in your repo.
 
thats no opinion, because there are no artifacts available (but I could
possibly create some...)

 You're going to need to provide more information about these external
 jars, I think, for us to help you much.
 
I'm creating a bunch of eclipse plugins for a rcp application packaged
in an ear application for glassfish. When keeping this parts (client and
server) seperated it is quite easy. Build eclipse parts with eclipse and
the ear with maven, but I woule like to create everything with maven.

My idea was to add the eclipse install directory to a custom mojo which
consists of two goals:
  1) In phase process-resources the plugin.xml, MANIFEST.MF and other
plugin resources would be copied to the target location.
  2) During the compile phase the jars from eclipse-root/plugins would
be added to the compiler. (It could be extended to only add the plugins
required by the plugin).

When adding the eclipse dependencies to the POM (statically) and then
recreating the eclipse project, the dependencies are duplicated. Once in
plugins-dependencies (managed by ecipse throught the manifest) and once
because maven adds them to the eclipse dependencies.

Is there a way to accomplish what I want to do?
Thanks
Markus
-- 
__

  Markus Wolf
  Wedeler Landstrasse 63
  22559 Hamburg

 tel: (+49) 40 / 550 083 70
 mob: (+49) 177 / 288 48 67
 web: http://www.matrixweb.de
 icq: #109622365
 pgp: http://wwwkeys.de.pgp.net
__

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]