You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Julio Oliveira <jj...@gmail.com> on 2006/04/04 23:17:49 UTC
How to compile with external .JARS - How to skip compile from the maven site
Hi
1) . I need to compile a java project, that has a fileset like this in ant
<fileset dir="../../libMLI">
<include name="**/*.jar" />
</fileset>
this work fine in ant, but i don't see who to do the declarative for maven2
? can i do a lib declarative. I have a lot of .jar to install it at the
repository .
something like this ??
<dependency>
<groupId>JXT</groupId>
<artifactId>JXT_LATAM</artifactId>
<version>1.1</version>
<scope>system</scope>
<systemPath>${basedir}\libJXTI\jaxt-libs.jar</systemPath>
</dependency>
2) i need to generate de maven site for the project, but always it
depends on compile
? how can i do for do it, with out compile like -
Dmaven.compile.skip=true ???
Thanks in advanced
Julio Oliveira - Buenos Aires
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Eric Redmond <er...@gmail.com>.
Of course, that was just a simple hack. Anyone can extend it into something
more robust, and make a ruby/maven plugin out of it (
http://mojo.codehaus.org/rubyscript-maven-plugin). That way you can run the
thing as part of a maven build. Good luck!
Eric
On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
>
> OK it's fine and working.
>
> tanks to you Eric and Wayne.
>
> Now i'm registered to the Eric web and read some notes.
>
> I'm download ruby and install it, I supose maven need it to work with
> the scrip... ??
>
> I will try the script and send you the result....???'
>
> I have more than 100 jar, and the problem is that all time, it's
> changing dinamic, and there is a problem to maintain it.
>
> regards.
>
> MUCHAS GRACIAS BOTIJAS
>
>
>
>
> On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > While you're at it, why not write out the <dependencies> list for the
> > installed jars at the end of the program run?
> >
> > Otherwise this only solves half the problem. ;-)
> >
> > Wayne
> >
> > On 4/5/06, Eric Redmond <er...@gmail.com> wrote:
> > > Because I'm such a nice guy :), here is a ruby script to install all
> jars in
> > > a given directory to Maven. Just ensure there are no spaces in your
> > > directory path.
> > >
> > > Eric
> > >
> > > ----- BEGIN SCRIPT -----
> > > # Set the MVN SCRIPT
> > > # Eric Redmond / Propellors.net
> > >
> > > MVN_SCRIPT = "C:/maven-2.1-SNAPSHOT/bin/mvn.bat"
> > > VERSION = "1"
> > >
> > > def install_jars( base_dir_name, group_id )
> > > gid_set = !group_id.nil?
> > > Dir.foreach( base_dir_name ) { |file_name|
> > > next unless file_name =~ /\.jar$/
> > > artifact_id = file_name.sub(/.jar$/, '')
> > > group_id = gid_set ? group_id : artifact_id
> > > file_name = "#{base_dir_name}/#{file_name}"
> > > puts
> > >
> system("#{MVN_SCRIPT}","install:install-file","-DgroupId=#{group_id}","-DartifactId=#{artifact_id}","-Dversion=#{VERSION}","-Dpackaging=jar","-Dfile=#{file_name}")
> > > }
> > > end
> > >
> > > begin
> > > bdir, gid = ARGV[0],ARGV[1] unless ARGV[0].nil?&&(puts "usage:
> > > install_jars.rb <BASE_DIR_WITH_JARS> [GROUP_ID]")|exit
> > > install_jars( bdir, gid )
> > > end
> > > ------ END SCRIPT ------
> > >
> > >
> > > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > >
> > > > ok Wayne
> > > >
> > > > I think it will be modified .....
> > > >
> > > >
> > > > But how to do the site without compile, site:site doesn't work
> > > >
> > > > regards
> > > >
> > > >
> > > > On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > > > > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > > > >
> > > > > > For #1 what if i have 100 .jars have i to do it one by one...
> or is
> > > > > > there any tip to do in a one line ( take all a folder with the
> 100
> > > > > > .jar's )
> > > > > >
> > > > >
> > > > > Yes, one by one. So 100 will take a while. Have fun.
> > > > >
> > > > > Wayne
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail: users-help@maven.apache.org
> > > >
> > > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Julio Oliveira <jj...@gmail.com>.
OK it's fine and working.
tanks to you Eric and Wayne.
Now i'm registered to the Eric web and read some notes.
I'm download ruby and install it, I supose maven need it to work with
the scrip... ??
I will try the script and send you the result....???'
I have more than 100 jar, and the problem is that all time, it's
changing dinamic, and there is a problem to maintain it.
regards.
MUCHAS GRACIAS BOTIJAS
On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> While you're at it, why not write out the <dependencies> list for the
> installed jars at the end of the program run?
>
> Otherwise this only solves half the problem. ;-)
>
> Wayne
>
> On 4/5/06, Eric Redmond <er...@gmail.com> wrote:
> > Because I'm such a nice guy :), here is a ruby script to install all jars in
> > a given directory to Maven. Just ensure there are no spaces in your
> > directory path.
> >
> > Eric
> >
> > ----- BEGIN SCRIPT -----
> > # Set the MVN SCRIPT
> > # Eric Redmond / Propellors.net
> >
> > MVN_SCRIPT = "C:/maven-2.1-SNAPSHOT/bin/mvn.bat"
> > VERSION = "1"
> >
> > def install_jars( base_dir_name, group_id )
> > gid_set = !group_id.nil?
> > Dir.foreach( base_dir_name ) { |file_name|
> > next unless file_name =~ /\.jar$/
> > artifact_id = file_name.sub(/.jar$/, '')
> > group_id = gid_set ? group_id : artifact_id
> > file_name = "#{base_dir_name}/#{file_name}"
> > puts
> > system("#{MVN_SCRIPT}","install:install-file","-DgroupId=#{group_id}","-DartifactId=#{artifact_id}","-Dversion=#{VERSION}","-Dpackaging=jar","-Dfile=#{file_name}")
> > }
> > end
> >
> > begin
> > bdir, gid = ARGV[0],ARGV[1] unless ARGV[0].nil?&&(puts "usage:
> > install_jars.rb <BASE_DIR_WITH_JARS> [GROUP_ID]")|exit
> > install_jars( bdir, gid )
> > end
> > ------ END SCRIPT ------
> >
> >
> > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > >
> > > ok Wayne
> > >
> > > I think it will be modified .....
> > >
> > >
> > > But how to do the site without compile, site:site doesn't work
> > >
> > > regards
> > >
> > >
> > > On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > > > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > > >
> > > > > For #1 what if i have 100 .jars have i to do it one by one... or is
> > > > > there any tip to do in a one line ( take all a folder with the 100
> > > > > .jar's )
> > > > >
> > > >
> > > > Yes, one by one. So 100 will take a while. Have fun.
> > > >
> > > > Wayne
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Wayne Fay <wa...@gmail.com>.
While you're at it, why not write out the <dependencies> list for the
installed jars at the end of the program run?
Otherwise this only solves half the problem. ;-)
Wayne
On 4/5/06, Eric Redmond <er...@gmail.com> wrote:
> Because I'm such a nice guy :), here is a ruby script to install all jars in
> a given directory to Maven. Just ensure there are no spaces in your
> directory path.
>
> Eric
>
> ----- BEGIN SCRIPT -----
> # Set the MVN SCRIPT
> # Eric Redmond / Propellors.net
>
> MVN_SCRIPT = "C:/maven-2.1-SNAPSHOT/bin/mvn.bat"
> VERSION = "1"
>
> def install_jars( base_dir_name, group_id )
> gid_set = !group_id.nil?
> Dir.foreach( base_dir_name ) { |file_name|
> next unless file_name =~ /\.jar$/
> artifact_id = file_name.sub(/.jar$/, '')
> group_id = gid_set ? group_id : artifact_id
> file_name = "#{base_dir_name}/#{file_name}"
> puts
> system("#{MVN_SCRIPT}","install:install-file","-DgroupId=#{group_id}","-DartifactId=#{artifact_id}","-Dversion=#{VERSION}","-Dpackaging=jar","-Dfile=#{file_name}")
> }
> end
>
> begin
> bdir, gid = ARGV[0],ARGV[1] unless ARGV[0].nil?&&(puts "usage:
> install_jars.rb <BASE_DIR_WITH_JARS> [GROUP_ID]")|exit
> install_jars( bdir, gid )
> end
> ------ END SCRIPT ------
>
>
> On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> >
> > ok Wayne
> >
> > I think it will be modified .....
> >
> >
> > But how to do the site without compile, site:site doesn't work
> >
> > regards
> >
> >
> > On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > >
> > > > For #1 what if i have 100 .jars have i to do it one by one... or is
> > > > there any tip to do in a one line ( take all a folder with the 100
> > > > .jar's )
> > > >
> > >
> > > Yes, one by one. So 100 will take a while. Have fun.
> > >
> > > Wayne
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Eric Redmond <er...@gmail.com>.
Because I'm such a nice guy :), here is a ruby script to install all jars in
a given directory to Maven. Just ensure there are no spaces in your
directory path.
Eric
----- BEGIN SCRIPT -----
# Set the MVN SCRIPT
# Eric Redmond / Propellors.net
MVN_SCRIPT = "C:/maven-2.1-SNAPSHOT/bin/mvn.bat"
VERSION = "1"
def install_jars( base_dir_name, group_id )
gid_set = !group_id.nil?
Dir.foreach( base_dir_name ) { |file_name|
next unless file_name =~ /\.jar$/
artifact_id = file_name.sub(/.jar$/, '')
group_id = gid_set ? group_id : artifact_id
file_name = "#{base_dir_name}/#{file_name}"
puts
system("#{MVN_SCRIPT}","install:install-file","-DgroupId=#{group_id}","-DartifactId=#{artifact_id}","-Dversion=#{VERSION}","-Dpackaging=jar","-Dfile=#{file_name}")
}
end
begin
bdir, gid = ARGV[0],ARGV[1] unless ARGV[0].nil?&&(puts "usage:
install_jars.rb <BASE_DIR_WITH_JARS> [GROUP_ID]")|exit
install_jars( bdir, gid )
end
------ END SCRIPT ------
On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
>
> ok Wayne
>
> I think it will be modified .....
>
>
> But how to do the site without compile, site:site doesn't work
>
> regards
>
>
> On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > >
> > > For #1 what if i have 100 .jars have i to do it one by one... or is
> > > there any tip to do in a one line ( take all a folder with the 100
> > > .jar's )
> > >
> >
> > Yes, one by one. So 100 will take a while. Have fun.
> >
> > Wayne
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Wayne Fay <wa...@gmail.com>.
You included surefire-report in your reporting plugins section. This
reports on the success and failure of any of your unit tests in your
project.
To generate this report, surefire has to actually go out into your
code, compile it, compile the tests, and execute the tests.
Thus, this report WILL ALWAYS compile and execute tests in your
project before running.
If you don't want to compile the project before generating the site
with site:site, then remove this plugin from your reports. Other
plugins may behave the same, so you might need to remove other plugins
as well.
Wayne
On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> I was working with 2.0.2 now i download 2.0.3 and see
>
> Maven version: 2.0.3
>
> mvn site:site
>
> does'n work do compile to.....
>
> see that ..............................
>
> E:\Work\eclipse3_1\JFP_Site>mvn -v
> Maven version: 2.0.3
>
> E:\Work\eclipse3_1\JFP_Site>mvn site:site
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'site'.
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Hotel Database tutorial application by julio
> [INFO] task-segment: [site:site]
> [INFO] ----------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResource
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] **************************************************************
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File:
> org\apache\velocity\runtime\defaults\velocity.properties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class
> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource
> 'VM_global_library.vm' in any resource loader.
>
> .
> .
> .
> .
>
>
> [INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource
> 'VM_global_library.vm' in any resource
> [INFO] Velocimacro : error using VM library template
> VM_global_library.vm : org.apache.
> [INFO] Velocimacro : VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined
> inline may NOT replace
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline
> will be global in sc
> [INFO] Velocimacro : messages on : VM system will output logging messages
> [INFO] Velocimacro : autoload off : VM system will not automatically
> reload global libr
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] Preparing surefire-report:report
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 14 source files to E:\Work\eclipse3_1\JFP_Site\target\classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> from hear all compilation the error code ....
>
>
> what's wrong ........
>
> ----------------------------------------------------------------------------------------------------------------
>
>
>
>
>
> On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > Then you've got something wrong/weird on your end, because it should
> > work, and I just confirmed that it works for me too... ;-)
> >
> > Are you using Maven 2.0.3 or what?
> >
> > Wayne
> >
> > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > ok Wayne
> > >
> > > I think it will be modified .....
> > >
> > >
> > > But how to do the site without compile, site:site doesn't work
> > >
> > > regards
> > >
> > >
> > > On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > > > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > > >
> > > > > For #1 what if i have 100 .jars have i to do it one by one... or is
> > > > > there any tip to do in a one line ( take all a folder with the 100
> > > > > .jar's )
> > > > >
> > > >
> > > > Yes, one by one. So 100 will take a while. Have fun.
> > > >
> > > > Wayne
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Julio Oliveira <jj...@gmail.com>.
I was working with 2.0.2 now i download 2.0.3 and see
Maven version: 2.0.3
mvn site:site
does'n work do compile to.....
see that ..............................
E:\Work\eclipse3_1\JFP_Site>mvn -v
Maven version: 2.0.3
E:\Work\eclipse3_1\JFP_Site>mvn site:site
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'site'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building Hotel Database tutorial application by julio
[INFO] task-segment: [site:site]
[INFO] ----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResource
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
.
.
.
.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource
'VM_global_library.vm' in any resource
[INFO] Velocimacro : error using VM library template
VM_global_library.vm : org.apache.
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined
inline may NOT replace
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline
will be global in sc
[INFO] Velocimacro : messages on : VM system will output logging messages
[INFO] Velocimacro : autoload off : VM system will not automatically
reload global libr
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] Preparing surefire-report:report
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 14 source files to E:\Work\eclipse3_1\JFP_Site\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
from hear all compilation the error code ....
what's wrong ........
----------------------------------------------------------------------------------------------------------------
On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> Then you've got something wrong/weird on your end, because it should
> work, and I just confirmed that it works for me too... ;-)
>
> Are you using Maven 2.0.3 or what?
>
> Wayne
>
> On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > ok Wayne
> >
> > I think it will be modified .....
> >
> >
> > But how to do the site without compile, site:site doesn't work
> >
> > regards
> >
> >
> > On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > > >
> > > > For #1 what if i have 100 .jars have i to do it one by one... or is
> > > > there any tip to do in a one line ( take all a folder with the 100
> > > > .jar's )
> > > >
> > >
> > > Yes, one by one. So 100 will take a while. Have fun.
> > >
> > > Wayne
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Wayne Fay <wa...@gmail.com>.
Then you've got something wrong/weird on your end, because it should
work, and I just confirmed that it works for me too... ;-)
Are you using Maven 2.0.3 or what?
Wayne
On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> ok Wayne
>
> I think it will be modified .....
>
>
> But how to do the site without compile, site:site doesn't work
>
> regards
>
>
> On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> > On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> > >
> > > For #1 what if i have 100 .jars have i to do it one by one... or is
> > > there any tip to do in a one line ( take all a folder with the 100
> > > .jar's )
> > >
> >
> > Yes, one by one. So 100 will take a while. Have fun.
> >
> > Wayne
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Julio Oliveira <jj...@gmail.com>.
ok Wayne
I think it will be modified .....
But how to do the site without compile, site:site doesn't work
regards
On 4/5/06, Wayne Fay <wa...@gmail.com> wrote:
> On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
> >
> > For #1 what if i have 100 .jars have i to do it one by one... or is
> > there any tip to do in a one line ( take all a folder with the 100
> > .jar's )
> >
>
> Yes, one by one. So 100 will take a while. Have fun.
>
> Wayne
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Wayne Fay <wa...@gmail.com>.
On 4/5/06, Julio Oliveira <jj...@gmail.com> wrote:
>
> For #1 what if i have 100 .jars have i to do it one by one... or is
> there any tip to do in a one line ( take all a folder with the 100
> .jar's )
>
Yes, one by one. So 100 will take a while. Have fun.
Wayne
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Julio Oliveira <jj...@gmail.com>.
Eric
For #1 what if i have 100 .jars have i to do it one by one... or is
there any tip to do in a one line ( take all a folder with the 100
.jar's )
-------------------------------------------------------------------------------------------------
For #2 i probe site:site but also do compile ????
regards
Julio Oliveira - Buenos Aires
-------------------------------------------------------------------------------------------------
On 4/4/06, Eric Redmond <er...@gmail.com> wrote:
> For #2, you can just run the site:site goal directly, without running
> through the build lifecycle.
>
> On 4/4/06, Julio Oliveira <jj...@gmail.com> wrote:
> >
> > Hi
> >
> >
> > 1) . I need to compile a java project, that has a fileset like this in ant
> >
> > <fileset dir="../../libMLI">
> >
> > <include name="**/*.jar" />
> >
> > </fileset>
> >
> > this work fine in ant, but i don't see who to do the declarative for
> > maven2
> >
> > ? can i do a lib declarative. I have a lot of .jar to install it at the
> > repository .
> > something like this ??
> >
> >
> > <dependency>
> > <groupId>JXT</groupId>
> > <artifactId>JXT_LATAM</artifactId>
> > <version>1.1</version>
> > <scope>system</scope>
> > <systemPath>${basedir}\libJXTI\jaxt-libs.jar</systemPath>
> > </dependency>
> >
> > 2) i need to generate de maven site for the project, but always it
> > depends on compile
> >
> > ? how can i do for do it, with out compile like -
> > Dmaven.compile.skip=true ???
> >
> > Thanks in advanced
> >
> >
> > Julio Oliveira - Buenos Aires
> >
> >
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Eric Redmond <er...@gmail.com>.
For #2, you can just run the site:site goal directly, without running
through the build lifecycle.
On 4/4/06, Julio Oliveira <jj...@gmail.com> wrote:
>
> Hi
>
>
> 1) . I need to compile a java project, that has a fileset like this in ant
>
> <fileset dir="../../libMLI">
>
> <include name="**/*.jar" />
>
> </fileset>
>
> this work fine in ant, but i don't see who to do the declarative for
> maven2
>
> ? can i do a lib declarative. I have a lot of .jar to install it at the
> repository .
> something like this ??
>
>
> <dependency>
> <groupId>JXT</groupId>
> <artifactId>JXT_LATAM</artifactId>
> <version>1.1</version>
> <scope>system</scope>
> <systemPath>${basedir}\libJXTI\jaxt-libs.jar</systemPath>
> </dependency>
>
> 2) i need to generate de maven site for the project, but always it
> depends on compile
>
> ? how can i do for do it, with out compile like -
> Dmaven.compile.skip=true ???
>
> Thanks in advanced
>
>
> Julio Oliveira - Buenos Aires
>
>
Re: How to compile with external .JARS - How to skip compile from the maven site
Posted by Wayne Fay <wa...@gmail.com>.
For #1, yes you can use system scope etc like you've written.
But ideally you would use mvn install:install-file and add the jar to
your local repository instead.
So using your example:
mvn install:install-file -DartifactId=JXT_LATAM
-Dfile=./libJXTI/jaxt-libs.jar -DgroupId=JXT -Dpackaging=jar
-Dversion=1.1
Hope that helps.
Wayne
On 4/4/06, Julio Oliveira <jj...@gmail.com> wrote:
> Hi
>
>
> 1) . I need to compile a java project, that has a fileset like this in ant
>
> <fileset dir="../../libMLI">
>
> <include name="**/*.jar" />
>
> </fileset>
>
> this work fine in ant, but i don't see who to do the declarative for maven2
>
> ? can i do a lib declarative. I have a lot of .jar to install it at the
> repository .
> something like this ??
>
>
> <dependency>
> <groupId>JXT</groupId>
> <artifactId>JXT_LATAM</artifactId>
> <version>1.1</version>
> <scope>system</scope>
> <systemPath>${basedir}\libJXTI\jaxt-libs.jar</systemPath>
> </dependency>
>
> 2) i need to generate de maven site for the project, but always it
> depends on compile
>
> ? how can i do for do it, with out compile like -
> Dmaven.compile.skip=true ???
>
> Thanks in advanced
>
>
> Julio Oliveira - Buenos Aires
>
>