B

2018-03-28 Thread Néstor Boscán


Sent from my iPhone

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



Problems compiling source java with different encodings

2015-08-25 Thread Néstor Boscán
Hi

I have a legacy code that compiles correctly using IDEA or JDeveloper. But
if I try to use maven compile it generates error because there are unknoen
characters in the comments. It looks like the legacy code has different
types of character encoding in the file. Is there a way to compile using
maven that will not take into consideration the comments?

Regards,

Néstor


Re: Problems compiling source java with different encodings

2015-08-25 Thread Néstor Boscán
Yes,

The problem is that the legacy code has comments in Cp1252 and Strings in
UTF-8. The weird thing is that IDEA and JDeveloper can compile them using
their internal compilers.

Regards,

Néstor

On Tue, Aug 25, 2015 at 3:36 PM, Russell Gold russell.g...@oracle.com
wrote:

 Do you have the following in your pom.xml?

 properties
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
 /properties

 If not, do you know what encoding is being used in your source file?


  On Aug 25, 2015, at 4:01 PM, Néstor Boscán nesto...@gmail.com wrote:
 
  Hi
 
  I have a legacy code that compiles correctly using IDEA or JDeveloper.
 But
  if I try to use maven compile it generates error because there are
 unknoen
  characters in the comments. It looks like the legacy code has different
  types of character encoding in the file. Is there a way to compile using
  maven that will not take into consideration the comments?
 
  Regards,
 
  Néstor


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




Re: Creating Mojo: Can I have access to the repository information stored in settings.xml?

2015-06-08 Thread Néstor Boscán
Thanks Anders

That solved the problem!

Regards,

Néstor

On Mon, Jun 8, 2015 at 6:41 AM, Anders Hammar and...@hammar.net wrote:

 There's an api for getting a server [1] credentials from the settings
 config. You should use that.

 /Anders

 [1]

 http://maven.apache.org/ref/3.3.3//maven-settings/apidocs/org/apache/maven/settings/Settings.html#getServer(java.lang.String)

 On Mon, Jun 8, 2015 at 1:05 PM, Néstor Boscán nesto...@gmail.com wrote:

  Thanks for your quick answer
 
  In my case all my developers have the company's repository user and
  password configured in settings.xml. I have a code quality tool based on
 a
  maven mojo that connects to the company's website using the same username
  and password. I wanted to see if I coukd extract that user and password
  from the settings file.
 
  Regards,
 
  Nestor
 
  On Sunday, June 7, 2015, Dan Tran dant...@gmail.com wrote:
 
   Hi Néstor,
  
   Could you elaborate on your use case? you may not need access to maven
   settings to look for repos.
  
   -Dan
  
  
   On Sun, Jun 7, 2015 at 4:24 PM, Néstor Boscán nesto...@gmail.com
   javascript:; wrote:
  
Hi
   
I am creating a mojo that requires to get information on the
  repositories
stored in settings.xml? Is this possible?
   
Regards,
   
Néstor
   
  
 



Re: Creating Mojo: Can I have access to the repository information stored in settings.xml?

2015-06-08 Thread Néstor Boscán
Thanks for your quick answer

In my case all my developers have the company's repository user and
password configured in settings.xml. I have a code quality tool based on a
maven mojo that connects to the company's website using the same username
and password. I wanted to see if I coukd extract that user and password
from the settings file.

Regards,

Nestor

On Sunday, June 7, 2015, Dan Tran dant...@gmail.com wrote:

 Hi Néstor,

 Could you elaborate on your use case? you may not need access to maven
 settings to look for repos.

 -Dan


 On Sun, Jun 7, 2015 at 4:24 PM, Néstor Boscán nesto...@gmail.com
 javascript:; wrote:

  Hi
 
  I am creating a mojo that requires to get information on the repositories
  stored in settings.xml? Is this possible?
 
  Regards,
 
  Néstor
 



Creating Mojo: Can I have access to the repository information stored in settings.xml?

2015-06-07 Thread Néstor Boscán
Hi

I am creating a mojo that requires to get information on the repositories
stored in settings.xml? Is this possible?

Regards,

Néstor


How to create a Mojo that doesn't require the pom.xml file

2014-06-09 Thread Néstor Boscán
Hi

I want to create a Maven Plugin Mojo that doesn't requiere the pom.xml file
to run like mvn archetype:create. How do I do this?

Regards,

Néstor


Re: Is Maven the answer?

2012-02-29 Thread Néstor Boscán
Although I really like maven, and use it in all my projects, maven is
tightly integrated with the project lifecycle (clean, compile, package,
install, deploy ,etc) so ant looks like a better fit for what you're
looking for.

Néstor

On Wed, Feb 29, 2012 at 11:51 PM, Ron Wheeler 
rwhee...@artifact-software.com wrote:

 I would have suggested Ant since it is easy to use, widely supported with
 documentation, books and examples.
 It can do damn near anything.

 make seems awfully obscure but it is used a lot for installation.

 maven does not seem like a good fit.

 Ron


 On 29/02/2012 10:20 PM, Yuen-Chi Lian wrote:

 For such scripting with phases, I find rake (or make) to be more suitable
 than ant or Maven. Or try BuildR.

 Yuen-Chi Lian | www.yclian.com
 I do not seek; I find. - Pablo Picasso

 2012/3/1 Terence 
 Stephensterence.stephens@**gmail.comterence.steph...@gmail.com
 

  I'm looking for a tool that will help me:
 Build Java Code
 Move Php code to a different location on my computer
 Create New Directories on the server and upload content to them (via
 FTP over SSL or maybe SSH)
 Download whole directories and then zip of the contents


 I know I could do this in a shell script, but I think I would have
 better luck with a Java based tool.  This is outside the scope of
 Maven's uses.  For my needs, should I look into using Maven or find a
 different tool?

 thanks.

 --**--**
 -
 To unsubscribe, e-mail: 
 users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org




 --
 Ron Wheeler
 President
 Artifact Software Inc
 email: rwhee...@artifact-software.com
 skype: ronaldmwheeler
 phone: 866-970-2435, ext 102




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



Re: Maven 2 Archetype how to define a different package

2012-02-28 Thread Néstor Boscán
I'm building my own archetype

On Tuesday, February 28, 2012, Wayne Fay wayne...@gmail.com wrote:
 Is there a way to use a different package variable than groupId. I
want
 it to be groupId.artifactId so that the package structure have the
 artifactId.

 Are you wanting this in your own personal/company archetype or one of
 the publicly-available archetypes?

 Wayne

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




Maven 2 Archetype how to define a different package

2012-02-26 Thread Néstor Boscán
Hi

Is there a way to use a different package variable than groupId. I want
it to be groupId.artifactId so that the package structure have the
artifactId.

Regards,

Néstor Boscán


Re: How to get the full path directory where I'm creating the project using an Archetype

2011-08-15 Thread Néstor Boscán
Yes, we're talking about the pom.xml that the archetype produces. I'm aware
that I should never hard code a path but this is something my client is
asking for. Now I was trying to get some information from the project but it
seems like I can only use ${artifactId} ${groupId} ${version} and ${package}
in my archetype and nothing else. Things like ${project.build.finalName} or
${project.packaging} don't get replace in the process.

Regards,

Néstor Boscán

On Mon, Aug 15, 2011 at 1:56 AM, Anders Hammar and...@hammar.net wrote:

 I'm thinking ${project.basedir} combined with filtering. Or possibly
 without filtering as you should never include a hard-coded path.
 Are we talking about the pom that the archetype produces?

 /Anders

 2011/8/15 Néstor Boscán nesto...@gmail.com:
  Hi
 
  I need in my archetype to get the full path of a the directory where I'm
  creating the project. Is this possible?
 
  Regards,
 
  Néstor Boscán
 

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




How to get the full path directory where I'm creating the project using an Archetype

2011-08-14 Thread Néstor Boscán
Hi

I need in my archetype to get the full path of a the directory where I'm
creating the project. Is this possible?

Regards,

Néstor Boscán


Re: Maven Plug-in How do I get the webapp directory

2010-11-09 Thread Néstor Boscán
Wayne, my thanks and respects.

On Mon, Nov 8, 2010 at 12:03 PM, Wayne Fay wayne...@gmail.com wrote:

  So your code would be like:
  /*...@parameter default-value=${warSourceDirectory} */
  private File warSourceDir;

 Hmm actually that's not entirely correct... you may want to just
 inject ${project} and dig through it to find the configuration you are
 trying to access.

 If you fired this up in an IDE and ran your plugin, you could inspect
 the MavenProject and find the proper object path to the directory
 you're looking for.

 Wayne

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




Maven Plug-in How do I get the webapp directory

2010-11-08 Thread Néstor Boscán
Hi

I'm creating my own mojos and I need to get the webapp directory. What
expression can I apply to a path to get the directory?. Can I have a List of
files and create an expression that will fill it with the source path,
resource path and webapp path?

Regards,

Néstor Boscán


Re: [Repetitive]: Maven does not live up to its promises

2010-10-23 Thread Néstor Boscán
Wayne

XML is one of the most widespread and flexible languages out there, accept
it, move on. We could all be investing 5 years in this discussion and we
wouldn't be writing code that pays our salaries. I have been using maven on
at least 70 java projects succesfully and now is a nightmare for me to work
on a project without a pom.xml file.

regards,

Néstor Boscán

On Sat, Oct 23, 2010 at 5:29 PM, Wayne Fay wayne...@gmail.com wrote:

  an understandable syntax. With lots of extra libraries. Would it have
 really
  been so bad to base a declarative codebase on Prolog, a mature, proven
  technology?

 I didn't say it before (saved as draft)... but I'd encourage you to
 create this Prolog-based build system in your free time over the next
 few months [perhaps use the time you'd otherwise be writing rants
 about Maven, you'll have it built in no time :)] and if the
 community decides it is a superior system for building Java (and
 other language) applications, the forces of natural selection and
 evolution will win out and Maven will die a quiet death at the hands
 of your Prolog-builder.

 PS- What's the fascination with Prolog? Do you own patents in Prolog
 and get paid every time someone compiles or runs a Prolog
 application... or merely mentions it in an email? :D

 Wayne

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




Re: Checkstyle Plugin doesn't recognize config file URL

2010-06-20 Thread Néstor Boscán
Yes that's it thanks a lot!!.

On Sat, Jun 19, 2010 at 6:40 PM, lukewpatterson lukewpatter...@gmail.comwrote:



 Néstor Boscán wrote:
 
  ... custom checkstyle
  configuration file. ... But the plugin generates:
 
  Could not find resource URL
 


 is this http://jira.codehaus.org/browse/MCHECKSTYLE-129 the problem?

 remember to take into account this
 http://jira.codehaus.org/browse/MSITE-443
 when trying to set version of that reporting plugin

 --
 View this message in context:
 http://maven.40175.n5.nabble.com/Checkstyle-Plugin-doesn-t-recognize-config-file-URL-tp510248p510249.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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




Checkstyle Plugin doesn't recognize config file URL

2010-06-19 Thread Néstor Boscán
Hi

I'm trying to use the checkstyle plugin with a custom checkstyle
configuration file. The documentation says that the configuration file can
be defined as an URL. But the plugin generates:

Could not find resource URL

Regards,

Néstor Boscán


RE: Is there a way to change the webapp directory name?

2010-04-22 Thread Néstor Boscán
Hi Wayne

Thanks a lot for the help.

Regards,

Néstor Boscán

-Mensaje original-
De: Wayne Fay [mailto:wayne...@gmail.com] 
Enviado el: Thursday, April 22, 2010 2:13 AM
Para: Maven Users List
Asunto: Re: Is there a way to change the webapp directory name?

 directories. The JDeveloper plugin reads the java source directory from the
 sourceDirectory element in the pom.xml file but there is no element for the
 webapp directory.

As I said previously... it sounds like you will need to add this
feature to the maven-jdev-plugin. Get the source code, add the
feature, and submit a patch to Myfaces/Trinidad so they might include
your addition in a future release.

Here's the source:
http://svn.apache.org/repos/asf/myfaces/trinidad-maven/trunk/maven-jdev-plugin

If you look at JDeveloperMojo.java file, you'll see they are
definitely NOT reading the webapp config:
  // TODO: read configuration for war:war goal
  File webappDir = new File(project.getBasedir(), src/main/webapp);
  // TODO: read configuration for compiler:complie goal
  File outputDir =
new File(project.getBuild().getDirectory(), classes);

This is not something this email list can help you with. Please go
talk to the Myfaces/Trinidad people.

Wayne

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


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



RE: Is there a way to change the webapp directory name?

2010-04-21 Thread Néstor Boscán
Hi Wendy

What I'm trying to do is generate the JDeveloper Project files (*.jpr) from
the pom.xml the same way you generate the eclipse project files using mvn
eclipse:eclipse or the IDEA project files using mvn idea:idea. In the end I
want the project files to be generated and when I open them with JDeveloper
I want the source and webapp paths to reference the src and public_html
directories. The JDeveloper plugin reads the java source directory from the
sourceDirectory element in the pom.xml file but there is no element for the
webapp directory.

Regards,

Néstor Boscán

-Mensaje original-
De: Wendy Smoak [mailto:wsm...@gmail.com] 
Enviado el: Wednesday, April 21, 2010 9:55 AM
Para: Maven Users List
Asunto: Re: Is there a way to change the webapp directory name?

2010/4/19 Néstor Boscán nestor.bos...@tcs.com.ve:
 And when I generate the JDeveloper project I still get src/main/webapp as
 the directory. Maybe the JDeveloper project plugin is not reading this
 property when it's generating the project file.

What you configured is for the Maven War Plugin to use that directory
when it creates the war at build time.

What do you mean by generate the JDeveloper project?  With what?
Perhaps *that* thing needs to be configured.

-- 
Wendy

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


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



Is there a way to change the webapp directory name?

2010-04-19 Thread Néstor Boscán
Hi

 

Is there a way to change the webapp directory name from webapp to
public_html?

 

Regards,

 

Néstor Boscán

 



RE: Is there a way to change the webapp directory name?

2010-04-19 Thread Néstor Boscán
Wendy thanks for the quick reply and sorry about the confusion. Yes I want
to change the src/main/webapp directory to be the same that JDeveloper uses
(client requirement). Sadly I tried your suggestion:

sourceDirectorysrc/sourceDirectory
plugins
plugin
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
artifactIdmaven-war-plugin/artifactId
groupIdorg.apache.maven.plugins/groupId
configuration
warSourceDirectorypublic_html/warSourceDirectory
/configuration
/plugin
/plugins

And when I generate the JDeveloper project I still get src/main/webapp as
the directory. Maybe the JDeveloper project plugin is not reading this
property when it's generating the project file.

Regards,

Néstor Boscán

-Mensaje original-
De: Wendy Smoak [mailto:wsm...@gmail.com] 
Enviado el: Monday, April 19, 2010 10:08 PM
Para: Maven Users List
Asunto: Re: Is there a way to change the webapp directory name?

2010/4/19 Néstor Boscán nestor.bos...@tcs.com.ve:

 Is there a way to change the webapp directory name from webapp to
 public_html?

You're really making us guess here. :)

Do you mean you want to change the source directory for the files that
go into a war from src/main/webapp to something else?

If so, try configuring warSourceDirectory, see
http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html .

If that's not it, tell us what you're trying to accomplish...

-- 
Wendy

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


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



Re: Differences between app servers

2009-10-08 Thread Néstor Boscán
You know, after a lot of fighting on getting a war file to work with
WebLogic 10.3 I finally was a able to make it work. I did have to create the
weblogic.xml on the WEB-INF directory:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE weblogic-web-app PUBLIC -//BEA Systems, Inc.//DTD Web Application
8.1//EN http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd;
weblogic-web-app
  container-descriptor
prefer-web-inf-classestrue/prefer-web-inf-classes
  /container-descriptor
/weblogic-web-app

But it still is incredibly annoying that I have to send the war file with
all libraries to make it to work.

Regards,

Néstor Boscán

On Wed, Oct 7, 2009 at 11:34 AM, Jim Collings jlistn...@gmail.com wrote:

 Not so much.  Take Weblogic for example. You really can't deploy a
 Struts2 based WAR file to it because of library conflicts. It would be
 cool if I could specify somehow, somewhere that this is a Weblogic
 project.  Then it would always build as an ear and would include a
 weblogic-application.xml with the excludes/prefers set so that the
 conflicts don't happen. Also Weblogic insists on APP-INF rather than
 WEB-INF. Perhaps that is related to the fact that it is now an *.ear
 file though, I don't know.

 On Wed, Oct 7, 2009 at 3:59 AM, Brett Randall javabr...@gmail.com wrote:
  On Wed, Oct 7, 2009 at 11:21 AM, Jim C. jclli...@gmail.com wrote:
 
  Are there archetypes or something else out there that will differentiate
  between application servers?  We try to write cross platform Java and it
  seems like our app server vendors are fighting us tooth and nail. I
  suppose that is the reason for GlassFish but our shop isn't allowed to
  use it.
 
 
  Jim C.
 
 
  What types of issue/differences are you facing? Are they compile/deploy
 or
  runtime issues?
 
  Brett
 

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




Re: Differences between app servers

2009-10-08 Thread Néstor Boscán
Hi jim

The libraries goes on the web-inf/lib directory. I dont think there is
a global library option like oc4j in weblogic, something that im
really missing.

Regards,

Nestor

On 10/8/09, Jim Collings jlistn...@gmail.com wrote:
 But it still is incredibly annoying that I have to send the war file with
 all libraries to make it to work.

 Clarification?  Are you installing the jar libraries as Oracle shared
 libraries or something?  I'm totally gonna blow a gasket if I have to
 do that.

 I've created a new thread with more details of the problem in
 question. It's entitled Porting maven generated war files and ear
 files to weblogic 10.3.


 Jim C.

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



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



RE: Re: Can I use WAR Overlay before packaging?

2009-07-25 Thread Néstor Boscán
Thanks let me check it out.

-Mensaje original-
De: Mark Struberg [mailto:strub...@yahoo.de] 
Enviado el: Saturday, July 25, 2009 3:23 AM
Para: Maven Users List
Asunto: [?? Probable Spam] Re: Can I use WAR Overlay before packaging?


Hi!

I assume you like to debug/test your project in your IDE without needing to
package the whole project every time, right?

It's long ago that I used WAR overlay the last time, but did you try
war:inplace? 
You have to be aware that war:inplace will pollute your src/main/webapp
working directory, though!

LieGrue,
strub

--- On Sat, 7/25/09, Néstor Boscán nestor.bos...@tcs.com.ve wrote:

 From: Néstor Boscán nestor.bos...@tcs.com.ve
 Subject: Can I use WAR Overlay before packaging?
 To: users@maven.apache.org
 Date: Saturday, July 25, 2009, 4:56 AM
 Hi
 
  
 
 Is there a way to use WAR Overlay before packaging?. I
 would like to access
 the overlaid JSP files from my project. Is this possible?
 
  
 
 Regards,
 
  
 
 Néstor Boscán
 
 


  

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


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



Maven Proguard How to obfuscate a war file?

2009-07-25 Thread Néstor Boscán
Hi

 

I’ve checked the web searching how to obfuscate the .class files on a war
file and I read that I have to set proguard on the process-classes goal.
I’ve tried to do this but I don’t know how to specify to generate the
obfuscated classes or jar file to the war file. Can somebody give me an
example on how to do this?

 

Regards,

 

Néstor Boscán



Maven Proguard How to obfuscate a war file?

2009-07-24 Thread Néstor Boscán
Hi

 

I’ve checked the web searching how to obfuscate the .class files on a war
file and I read that I have to set proguard on the process-classes goal.
I’ve tried to do this but I don’t know how to specify to generate the
obfuscated classes or jar file to the war file. Can somebody give me an
example on how to do this?

 

Regards,

 

Néstor Boscán



Can I use WAR Overlay before packaging?

2009-07-24 Thread Néstor Boscán
Hi

 

Is there a way to use WAR Overlay before packaging?. I would like to access
the overlaid JSP files from my project. Is this possible?

 

Regards,

 

Néstor Boscán



RE: Re: Archetype expression ${package.replace ('.', '/')} not a valid reference

2009-01-27 Thread Néstor Boscán
Found something.

It looks like the problem is when I'm using JDK 1.4. If I use JDK 5 it works. I 
use JDK 1.4 so I can compile using that version of java because sadly using JDK 
5 and telling the compiler to compile for 1.4 does not work well.

Regards,

Néstor Boscán

-Mensaje original-
De: Raphaël Piéroni [mailto:raphaelpier...@gmail.com] 
Enviado el: Tuesday, January 27, 2009 3:31 AM
Para: Maven Users List
Asunto: [?? Probable Spam] Re: Archetype expression ${package.replace ('.', 
'/')} not a valid reference

Hello Néstor,

Can you please describe a little bit more your problem?
What command line you use? what is the maven/plugin version?
Can you create a JIRA with all these indication.

Thanks,

Raphaël


2009/1/26 Néstor Boscán nestor.bos...@tcs.com.ve:
 Hi



 I've been working with archetypes for a time and I had some archetypes with
 this expression:



 ${package.replace ('.', '/')}



 And it worked, but for some reason now it doesn't work. It throws a warning
 message is not a valid reference.



 Any ideas?





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


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



RE: Re: Archetype expression ${package.replace ('.', '/')} not a valid reference

2009-01-27 Thread Néstor Boscán
Tried to use Maven 2.0.9 and the problem is still there. Tried using 
expressions:

${groupId.replace('.', '/')}
${packageName.replace('.', '/')}

And I'm still getting the same error.

-Mensaje original-
De: Raphaël Piéroni [mailto:raphaelpier...@gmail.com] 
Enviado el: Tuesday, January 27, 2009 3:31 AM
Para: Maven Users List
Asunto: [?? Probable Spam] Re: Archetype expression ${package.replace ('.', 
'/')} not a valid reference

Hello Néstor,

Can you please describe a little bit more your problem?
What command line you use? what is the maven/plugin version?
Can you create a JIRA with all these indication.

Thanks,

Raphaël


2009/1/26 Néstor Boscán nestor.bos...@tcs.com.ve:
 Hi



 I've been working with archetypes for a time and I had some archetypes with
 this expression:



 ${package.replace ('.', '/')}



 And it worked, but for some reason now it doesn't work. It throws a warning
 message is not a valid reference.



 Any ideas?





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


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



RE: Re: Archetype expression ${package.replace ('.', '/')} not a valid reference

2009-01-27 Thread Néstor Boscán
I'm using Maven 2.0.7.

I'm creating an archetype with a spring beanRefContext.xml file that has to 
reference the other spring applicationContext.xml. So I need to create a 
reference in the form:

com/mycompany/myapplication

based on the package. So what I do is to create a Velocity expression 
${package.replace('.', '/')}. 

When I run the mvn archetype:create command with the reference to the archetype 
I get:

${package.replace ('.', '/')} not a valid reference

Néstor

-Mensaje original-
De: Raphaël Piéroni [mailto:raphaelpier...@gmail.com] 
Enviado el: Tuesday, January 27, 2009 3:31 AM
Para: Maven Users List
Asunto: [?? Probable Spam] Re: Archetype expression ${package.replace ('.', 
'/')} not a valid reference

Hello Néstor,

Can you please describe a little bit more your problem?
What command line you use? what is the maven/plugin version?
Can you create a JIRA with all these indication.

Thanks,

Raphaël


2009/1/26 Néstor Boscán nestor.bos...@tcs.com.ve:
 Hi



 I've been working with archetypes for a time and I had some archetypes with
 this expression:



 ${package.replace ('.', '/')}



 And it worked, but for some reason now it doesn't work. It throws a warning
 message is not a valid reference.



 Any ideas?





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


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



Archetype expression ${package.replace ('.', '/')} not a valid reference

2009-01-26 Thread Néstor Boscán
Hi

 

I’ve been working with archetypes for a time and I had some archetypes with
this expression:

 

${package.replace ('.', '/')}

 

And it worked, but for some reason now it doesn’t work. It throws a warning
message “is not a valid reference”. 

 

Any ideas?

 



Archetype expression ${package.replace ('.', '/')} not a valid reference

2009-01-25 Thread Néstor Boscán
Hi

 

I’ve been working with archetypes for a time and I had some archetypes with
this expression:

 

${package.replace ('.', '/')}

 

And it worked, but for some reason now it doesn’t work. It throws a warning
message “is not a valid reference”. 

 

Any ideas?



Refactoring Plugin

2008-09-22 Thread Néstor Boscán
Hi

 

I need to generate some web service stubs and refactor the code. Is there a
Maven Plugin that I can specify refactor package this to that?

 

Regards,

 

Néstor Boscán



RE: A Maven plugin for obfuscation

2008-07-14 Thread Néstor Boscán
I would like to obfuscate the jar, war and ear packages so class, variables,
methods, attributes names are changed and Strings are encrypted.

-Mensaje original-
De: Wayne Fay [mailto:[EMAIL PROTECTED] 
Enviado el: Viernes, 11 de Julio de 2008 11:05 a.m.
Para: Maven Users List
Asunto: Re: A Maven plugin for obfuscation

What exactly do you want to obfuscate? There are various security tools that
work on Java classes and jars available and at least one or two have been
mentioned on this list recently.

Wayne

On 7/11/08, Néstor Boscán [EMAIL PROTECTED] wrote:
 Hi

 Has anybody worked with a Maven plugin for obfuscation?

 Regads,

 Néstor Boscán



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



A Maven plugin for obfuscation

2008-07-11 Thread Néstor Boscán
Hi
 
Has anybody worked with a Maven plugin for obfuscation?
 
Regads,
 
Néstor Boscán


How to have two poms on the same project to generate WAR/EAR?

2008-06-18 Thread Néstor Boscán
Hi

I need to generate ear files from web applications. So what I understood is
that I need to pom.xml files. One for the project that generates the war
file an another one for the ear files that includes the war files. Is there
a way to have this two pom.xml on the same project and not create two
different projects?. I know is simple, but I want to manage as little
projects as possible.

Regards,

Néstor Boscán


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



RE: Is there a way to deploy project without configuring pom.xml

2008-03-22 Thread Néstor Boscán
Tried that but I keep getting the same error

mvn deploy
-DaltDeploymentRepository=myrepo::default::dav:http://www.myurl.com/maven2 

Failed to configure plugin parameters for: org.apache.maven.plugins:maven
-deploy-plugin:2.3

check that the following section of the pom.xml is present and correct:

distributionManagement
  !-- use the following if you're not using a snapshot version. --
  repository
idrepo/id
nameRepository Name/name
urlscp://host/path/to/repo/url
  /repository
  !-- use the following if you ARE using a snapshot version. --
  snapshotRepository
idrepo/id
nameRepository Name/name
urlscp://host/path/to/repo/url
  /snapshotRepository
/distributionManagement

Néstor

-Mensaje original-
De: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Marzo de 2008 02:56 a.m.
Para: Maven Users List
Asunto: Re: Is there a way to deploy project without configuring pom.xml

You can use -DaltDeploymentRepository=...

http://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html

On Mon, Mar 17, 2008 at 9:40 PM, Néstor Boscán [EMAIL PROTECTED]
wrote:
 I put it inside settings.xml and I get:

 distributionManagement
 repository
 idrepo/id
 nameRepository/name
 urldav:http://someurl/maven2/url
 /repository
 snapshotRepository
 idrepo/id
 nameRepository/name
 urldav:http://someurl/maven2/url
 /snapshotRepository
 /distributionManagement

  Error reading settings.xml: Unrecognised tag: 'distributionManagement'
  (position
  : START_TAG seen .../activeProfiles\r\n  --\r\n  
 distributionManagement..
  . @241:29)
   Line:   241
   Column: 29

  What I need is to set this on a PC level and not at POM level.

  Regards,

  Néstor Boscán
  -Mensaje original-
  De: news [mailto:[EMAIL PROTECTED] En nombre de Jan Torben Heuer  
 Enviado el: Lunes, 17 de Marzo de 2008 08:36 a.m.
  Para: users@maven.apache.org
  Asunto: Re: Is there a way to deploy project without configuring 
 pom.xml



  Néstor Boscán wrote:

   Hi
  
   Is there a way to deploy the project to a remote repository without  
  configuring distributionManagement inside the pom.xml. Can I do this  
  on the settings.xml or pass the info on the command?

  Yes, it works here fine with the settings.xml. we don't have  
 distributionManagement inside our pom.xml

  Jan


  -
  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]



-
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]



Is there a way to deploy project without configuring pom.xml

2008-03-17 Thread Néstor Boscán
Hi
 
Is there a way to deploy the project to a remote repository without
configuring distributionManagement inside the pom.xml. Can I do this on the
settings.xml or pass the info on the command?
 
Regards,
 
Néstor Boscán


RE: Is there a way to deploy project without configuring pom.xml

2008-03-17 Thread Néstor Boscán
I put it inside settings.xml and I get:

distributionManagement
repository
idrepo/id
nameRepository/name
urldav:http://someurl/maven2/url
/repository
snapshotRepository
idrepo/id
nameRepository/name
urldav:http://someurl/maven2/url
/snapshotRepository
/distributionManagement 

Error reading settings.xml: Unrecognised tag: 'distributionManagement'
(position
: START_TAG seen .../activeProfiles\r\n  --\r\n
distributionManagement..
. @241:29)
  Line:   241
  Column: 29

What I need is to set this on a PC level and not at POM level.

Regards,

Néstor Boscán
-Mensaje original-
De: news [mailto:[EMAIL PROTECTED] En nombre de Jan Torben Heuer
Enviado el: Lunes, 17 de Marzo de 2008 08:36 a.m.
Para: users@maven.apache.org
Asunto: Re: Is there a way to deploy project without configuring pom.xml

Néstor Boscán wrote:

 Hi
  
 Is there a way to deploy the project to a remote repository without 
 configuring distributionManagement inside the pom.xml. Can I do this 
 on the settings.xml or pass the info on the command?

Yes, it works here fine with the settings.xml. we don't have
distributionManagement inside our pom.xml

Jan


-
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]



Problem with archetype

2008-03-16 Thread Néstor Boscán
Hi
 
I'm creating an archetype with Maven 2 that contains Velocity files (*.ftl).
When I create a project it tries to run the velocirty expressions inside the
velocity files. Is there a way to tell which files are processed and which
are not?. Or is there a way to tell the Velocity Engine not to process this
expressions?
 
Regards,
 
Néstor Boscán


RV: Using Maven Proguard

2007-09-26 Thread Néstor Boscán
Hi
 
How can I use Maven with Proguard. I did mvn proguard:proguard and the goal
does not exist.
 
Regards,
 
Néstor Boscán


Using Maven Proguard

2007-09-26 Thread Néstor Boscán
Hi
 
How can I use Maven with Proguard. I did mvn proguard:proguard and the goal
does not exist.
 
Regards,
 
Néstor Boscán