Re: Velocity - Archetypes Question

2015-12-03 Thread Greg Trasuk
Hi Maria:

It isn’t obvious from the documentation, but if you try creating an archetype 
following the instructions in 
http://maven.apache.org/archetype/maven-archetype-plugin/examples/create-multi-module-project.html,
 and look at the generated project, yes, it is velocity templates that are 
generated.

Cheers,

Greg Trasuk
Web Age Solutions. http://www.webagesolutions.com

> On Dec 3, 2015, at 8:44 PM, Maria Beckham  
> wrote:
> 
> 
> 
> Hi there,
> Are archetypes in maven by default based on velocity engine/templates 
> processing?
> Thanks,Maria
> 


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



Re: Installing on Solaris

2015-11-06 Thread Greg Trasuk
I think Curtis has the right answer.  And when you set JAVA_HOME, it should be 
pointing to the JDK, not the JRE installation - looks like that will be 
/export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79 for you.

Is it possible to have the admins upgrade the box to JDK7?  Solaris has some 
strange indirection going on to make ‘java’ a basic command line task, 
(/usr/bin/java is a link to /usr//java/bin/java, which is a link to 
/usr/jdk/latest, etc) so you’ll be fighting the OS if you try to run a 
different version (although I think it should be do-able).

 
Cheers,

Greg Trasuk


> On Nov 6, 2015, at 1:34 PM, Curtis Rueden  wrote:
> 
> Hi James,
> 
> Probably you meant to set JAVA_HOME, not CLASSPATH.
> 
> The JAVA_HOME variable points to your Java installation, whereas CLASSPATH
> points to .jar files (and/or directories of .class files) you want to be
> available to Java after it starts up.
> 
> Regards,
> Curtis
> 
> On Fri, Nov 6, 2015 at 12:24 PM, james pruett  wrote:
> 
>> Greg, thanks for that.
>> Yes, I downloaded SE Solaris Sparc 64bit version from where you
>> mentioned...
>> Note I am not admin but I read that it should still be possible for me to
>> run java from userspace.
>> 
>> Q: I set my CLASSPATH, but perhaps incorrectly
>> 
>> % env | grep CLASSPATH
>> 
>> CLASSPATH=/export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9
>> 
>> % ls $CLASSPATH
>> jspawnhelper libdcpr.so   libj2gss.so  libjava.so
>>libjdgaSUNWffb.solibjsdt.so   libmlib_image.so
>> libsaproc.so libt2k.soserver
>> 
>> 
>> mktpricing:/export/home/e0857723/aaa_bonita % javac -version
>> Error: could not find libjava.so
>> Error: Could not find Java SE Runtime Environment.
>> 
>> 
>> 
>> mktpricing:/export/home/e0857723/aaa_bonita % which javac
>> /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/bin/javac
>> 
>> 
>> I realize this is not a maven problem I am having but I am begging help
>> help.
>> I can go to Solaris help if you think necessary.
>> 
>> Thanks for helping!
>> jim
>> 
>> 
>> 
>> 
>> On Fri, Nov 6, 2015 at 11:50 AM, Greg Trasuk 
>> wrote:
>> 
>>> 
>>> Hi James:
>>> 
>>> Based on your class path, it looks like you installed the “Java Runtime
>>> Environment”.  That’s just the Java virtual machine without the Java
>>> Compiler.  Maven is going to need the Java Compiler, so you’ll need to
>> get
>>> the Java SE version (Standard Edition, appears to be at
>>> 
>> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
>>> ).
>>> 
>>> Having said that, it looks odd that it’s having trouble finding
>>> ‘libjava.so’.  There might be something funny about your JDK
>> installation.
>>> Maybe that gives you a place to start looking…
>>> 
>>> Basically, before Maven has any chance at working, you need to make sure
>>> that you can run ‘javac -version’ and it comes back with 1.7 or higher.
>>> 
>>> Cheers,
>>> 
>>> Greg Trasuk
>>> http://www.webagesolutions.com
>>> 
>>> 
>>>> On Nov 6, 2015, at 12:36 PM, james pruett  wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> I get this error. Any help appreciated.
>>>> 
>>>> 
>>>> % mvn
>>>> Error: could not find libjava.so
>>>> Error: Could not find Java SE Runtime Environment.
>>>> 
>>>> % env | grep -i CLASSPATH
>>>> 
>>> 
>> CLASSPATH=/export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9
>>>> 
>>>> 
>>>> % ls -las $CLASSPATH/libjava.so
>>>> 524 -rwxrwxrwx   1267912 Apr 10  2015
>>>> 
>>> 
>> /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9/libjava.so
>>> 
>>> 
>>> -
>>> 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: Installing on Solaris

2015-11-06 Thread Greg Trasuk

Hi James:

Based on your class path, it looks like you installed the “Java Runtime 
Environment”.  That’s just the Java virtual machine without the Java Compiler.  
Maven is going to need the Java Compiler, so you’ll need to get the Java SE 
version (Standard Edition, appears to be at 
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html).

Having said that, it looks odd that it’s having trouble finding ‘libjava.so’.  
There might be something funny about your JDK installation.  Maybe that gives 
you a place to start looking…

Basically, before Maven has any chance at working, you need to make sure that 
you can run ‘javac -version’ and it comes back with 1.7 or higher.

Cheers,

Greg Trasuk
http://www.webagesolutions.com


> On Nov 6, 2015, at 12:36 PM, james pruett  wrote:
> 
> Hi,
> 
> I get this error. Any help appreciated.
> 
> 
> % mvn
> Error: could not find libjava.so
> Error: Could not find Java SE Runtime Environment.
> 
> % env | grep -i CLASSPATH
> CLASSPATH=/export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9
> 
> 
> % ls -las $CLASSPATH/libjava.so
> 524 -rwxrwxrwx   1267912 Apr 10  2015
> /export/home/e0857723/aaa_bonita/jdk17/jdk1.7.0_79/jre/lib/sparcv9/libjava.so


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



Re: War file name and sftp to server

2015-10-09 Thread Greg Trasuk

403 error means “Forbidden”.  

The good news is - Maven deployer is obviously connecting to the Tomcat Manager 
app before it gets turned away for being unauthorized.  So you’re 95% of the 
way there!  The remote does a “HTTP PUT” request that contains the application 
that you’re trying to deploy.  It just means Tomcat is saying “no”.

The 403 means the Maven deployer client failed to authenticate to the Tomcat 
deployer application.  I’m not sure the exact incantation to get it to work, 
but it probably has something to do with ‘conf/tomcat-users.xml’ in the tomcat 
folder.  You need to create a user id that has the ‘manager-script’ role (more 
info in 
http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Archive_%28WAR%29_Remotely).

You’ll also have to make the  user id and password available to the Tomcat 
Maven plugin.  Information on this appears to be at 
http://tomcat.apache.org/maven-plugin-2.0/tomcat7-maven-plugin/usage.html

Sorry I can’t give you a more detailed answer, but hopefully that points you in 
the right direction.

Cheers,

Greg Trasuk

> On Oct 9, 2015, at 3:29 PM, K R  wrote:
> 
> I do see this:
> [09/Oct/2015:19:14:49 +] "PUT
> /manager/deploy?path=%2FYT-100_ATU_Controller HTTP/1.1" 403 3196
> 
> 
> 
> 
> On Fri, Oct 9, 2015 at 9:39 AM, Wayne Fay  wrote:
> 
>> Also check for error messages on the Tomcat server side, in the Tomcat
>> logs.
>> 
>> Wayne
>> On Oct 8, 2015 6:49 PM, "ke...@na7kr.us"  wrote:
>> 
>>> I tried tomcat plugin and it starts to upload and stops no error.
>>> 
>>> 
>>> On October 8, 2015 2:13:18 PM tras...@stratuscom.com wrote:
>>> 
>>> Check the Tomcat site for the Tomcat Maven plug-in. Not sure if it will
>>>> use sftp, though. I believe it can use https.
>>>> 
>>>> Cheers,
>>>> 
>>>> Greg Trasuk.
>>>> 
>>>> 
>>>> Sent from my BlackBerry 10 smartphone.
>>>>  Original Message
>>>> From: ke...@na7kr.us
>>>> Sent: Thursday, October 8, 2015 4:58 PM
>>>> To: Maven Users List
>>>> Reply To: Maven Users List
>>>> Subject: Re: War file name and sftp to server
>>>> 
>>>> Tomcat7 running on Raspberry Pi
>>>> 
>>>> 
>>>> On October 8, 2015 1:36:53 PM Curtis Rueden  wrote:
>>>> 
>>>> Hi K R,
>>>>> 
>>>>> How do I sftp it to the server?
>>>>>> 
>>>>> 
>>>>> What kind of server? Web server? Maven repository? Something else?
>>>>> 
>>>>> == Web server ==
>>>>> 
>>>>> If it's just a web server, typically that is done outside of the Maven
>>>>> build. You can also rename the file at that point. Alternately, you can
>>>>> use
>>>>> the exec-maven-plugin to automate whatever steps you want during any
>>>>> phase(s) of your Maven build.
>>>>> 
>>>>> == Maven repository ==
>>>>> 
>>>>> If you want to transfer the final artifact to a Maven repository, this
>> is
>>>>> called "deploying" the artifact, and is done by Maven's deploy phase.
>> You
>>>>> have to configure the "wagon" plugin you want to use. For SFTP you'd
>> use
>>>>> wagon-ssh [1].
>>>>> 
>>>>> You have to add a distributionManagement section to your POM, and put
>>>>> your
>>>>> credentails in your ~/.m2/settings.xml. See:
>>>>> https://maven.apache.org/plugins/maven-deploy-plugin/usage.html
>>>>> 
>>>>> However, note that you cannot override the final name of the artifact
>> in
>>>>> your remote Maven repository, since Maven repos use a standard naming
>>>>> scheme which includes the version suffix.
>>>>> 
>>>>> == Something else ==
>>>>> 
>>>>> Feel free to elaborate on your question. ;-)
>>>>> http://stackoverflow.com/help/how-to-ask
>>>>> 
>>>>> Regards,
>>>>> Curtis
>>>>> 
>>>>> [1] https://maven.apache.org/wagon/wagon-providers/wagon-ssh/
>>>>> 
>>>>> On Thu, Oct 8, 2015 at 3:16 PM, K R  wrote:
>>>>> 
>>>>> I have this in pom.xml
>>>>>> 
>>>>>> 0.0.1-SNAPSHOT
>>>>>> YT-100_ATU_Controller
>>>>>> 
>>>>>> and I get YT-100_ATU_Controller-0.0.1-SNAPSHOT.war how do I get
>>>>>> YT-100_ATU_Controller.war?
>>>>>> 
>>>>>> How do I sftp it to the server?
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>> -
>>>> 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
>>>> 
>>>> 
>>> 
>>> 
>>> -
>>> 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: War file name and sftp to server

2015-10-08 Thread Greg Trasuk

Hmm… that’s funny.  You’d at least expect an error message.  Could you try it 
with the -d for debug option on Maven?  That might give you a better insight 
into why it doesn’t work.  I realize you didn’t ask about the Tomcat Maven 
plugin, but that seems like the most direct approach to getting an app onto 
Tomcat.

If that doesn’t work out, you could try the Maven AntRun plugin and use Ant’s 
scp task.

Cheers,

Greg Trasuk

> On Oct 8, 2015, at 9:49 PM, ke...@na7kr.us  wrote:
> 
> I tried tomcat plugin and it starts to upload and stops no error.
> 
> 
> On October 8, 2015 2:13:18 PM tras...@stratuscom.com wrote:
> 
>> Check the Tomcat site for the Tomcat Maven plug-in. Not sure if it will use 
>> sftp, though. I believe it can use https.
>> 
>> Cheers, 
>> 
>> Greg Trasuk. 
>> 
>> 
>> Sent from my BlackBerry 10 smartphone.
>>   Original Message  
>> From: ke...@na7kr.us
>> Sent: Thursday, October 8, 2015 4:58 PM
>> To: Maven Users List
>> Reply To: Maven Users List
>> Subject: Re: War file name and sftp to server
>> 
>> Tomcat7 running on Raspberry Pi
>> 
>> 
>> On October 8, 2015 1:36:53 PM Curtis Rueden  wrote:
>> 
>>> Hi K R,
>>> 
>>>> How do I sftp it to the server?
>>> 
>>> What kind of server? Web server? Maven repository? Something else?
>>> 
>>> == Web server ==
>>> 
>>> If it's just a web server, typically that is done outside of the Maven
>>> build. You can also rename the file at that point. Alternately, you can use
>>> the exec-maven-plugin to automate whatever steps you want during any
>>> phase(s) of your Maven build.
>>> 
>>> == Maven repository ==
>>> 
>>> If you want to transfer the final artifact to a Maven repository, this is
>>> called "deploying" the artifact, and is done by Maven's deploy phase. You
>>> have to configure the "wagon" plugin you want to use. For SFTP you'd use
>>> wagon-ssh [1].
>>> 
>>> You have to add a distributionManagement section to your POM, and put your
>>> credentails in your ~/.m2/settings.xml. See:
>>> https://maven.apache.org/plugins/maven-deploy-plugin/usage.html
>>> 
>>> However, note that you cannot override the final name of the artifact in
>>> your remote Maven repository, since Maven repos use a standard naming
>>> scheme which includes the version suffix.
>>> 
>>> == Something else ==
>>> 
>>> Feel free to elaborate on your question. ;-)
>>> http://stackoverflow.com/help/how-to-ask
>>> 
>>> Regards,
>>> Curtis
>>> 
>>> [1] https://maven.apache.org/wagon/wagon-providers/wagon-ssh/
>>> 
>>> On Thu, Oct 8, 2015 at 3:16 PM, K R  wrote:
>>> 
>>>> I have this in pom.xml
>>>> 
>>>> 0.0.1-SNAPSHOT
>>>> YT-100_ATU_Controller
>>>> 
>>>> and I get YT-100_ATU_Controller-0.0.1-SNAPSHOT.war how do I get
>>>> YT-100_ATU_Controller.war?
>>>> 
>>>> How do I sftp it to the server?
>>>> 
>> 
>> 
>> 
>> -
>> 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
>> 
> 
> 
> 
> -
> 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: Copy-dependencies goal error

2015-10-06 Thread Greg Trasuk
d then looks up the metadata for those 
dependencies, and so on, and so on.  This is what people mean by “resolving 
dependencies”.

In your case, your POM file is a little funny - rather than defining an 
artifact to build, it really exists only to define a set of dependencies and 
then call out the build plugin called "maven-dependency-plugin”, which is 
configured to copy the dependencies to the local file system.

Here’s your key point - Maven resolves the dependencies even if your particular 
plugin configuration is not going to use them - the core maven package doesn’t 
care about the plugin configuration; it just does its thing, which is resolve 
dependencies.  So even though your plugin configuration specifies 
“true”, Maven still goes to your Nexus 
repo and tries to track down those transitive dependencies.

Your error message,

[ERROR] Failed to execute goal on project all-products: 
Could not resolve dependencies for project 
com.iona.fuse:all-products:pom:1.0.0.0-fuse:
Failed to collect dependencies 
  at org.apache.camel:apache-camel:zip:src:2.15.1.redhat-620133 
  -> org.apache.camel:camel-cmis:jar:2.15.1.redhat-620133 
  -> 
org.apache.chemistry.opencmis:chemistry-opencmis-client-impl:jar:0.8.0 
  -> 
org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl:jar:0.8.0 
  -> com.sun.xml.ws:jaxws-rt:jar:2.1.7 
  -> com.sun.xml.stream.buffer:streambuffer:jar:0.9 
  -> org.jvnet.staxex:stax-ex:jar:RELEASE: 
Failed to read artifact descriptor for 
org.jvnet.staxex:stax-ex:jar:RELEASE:
Failed to resolve version for org.jvnet.staxex:stax-ex:jar:RELEASE:
Could not find metadata org.jvnet.staxex:stax-ex/maven-metadata.xml 
  in local (C:\Users\Michael CTR 
Tarullo.FAA\.m2\super-pom-test-repository-62)

means that when Maven tried to resolve the dependencies for 
"org.apache.camel:apache-camel:zip:src:2.15.1”, the metadata for that artifact 
(which is in your repository) included a dependency on 
"org.jvnet.staxex:stax-ex”, but that artifact is not present in your repository.

The short answer is that you need to get "org.jvnet.staxex:stax-ex” into your 
repository.  It appears to be in Maven Central, so I’m guessing that your Nexus 
is configured not to act as a proxy to Maven Central.  So you’ll need to either 
load it manually (or use “procurement”) or configure your Nexus to proxy Maven 
Central (unless of course you can’t do that for security or other reasons, 
which is why you’d go through procurement).

Since you don’t actually care about the “stax-ex” dependency, you could 
theoretically load a “dummy” jar and pom that would satisfy the dependency, but 
that’s really bad practice - some other build might need the real dependency at 
a later time, so you’re best to get the right files into your repository.

Hope this helps.  Also, there’s a webinar I did for my employer that you might 
enjoy, Maven for Late Adopters 
(http://www.webagesolutions.com/webinars/registration.html?ApacheMavenLateAdopters).
  We also offer training and consulting.

Cheers,

Greg Trasuk

> On Oct 5, 2015, at 5:02 PM,  
>  wrote:
> 
> There are no transitive dependencies!
> 
> This is not even building source code!!!
> 
> 
> Michael Tarullo
> Contractor (Engility Corp)
> Enterprise Architect
> NSRR System Administrator
> FAA WJH Technical Center
> (609)485-5294
> 
> 
> -Original Message-
> From: Jörg Schaible [mailto:joerg.schai...@gmx.de] 
> Sent: Monday, October 05, 2015 4:37 PM
> To: users@maven.apache.org
> Subject: RE: Copy-dependencies goal error
> 
> Hi Michael,
> 
> michael.ctr.taru...@faa.gov wrote:
> 
>> What do you mean by a consistent repository and POM model?
>> 
>> If you mean that the POM must be declaring files to copy that are in 
>> the repository, that is stating the obvious.
>> 
>> And in this case, the POM is doing exactly that.  The files I am 
>> asking to be copied from the repository are actually in the 
>> repository.  The problem is that I am getting errors for files I did not ask 
>> to be copied.
> 
> The repository must also contain all POMs for the transitive dependencies ... 
> otherwise Maven cannot build the project model. Maven core does not know that 
> you have bound an instance of the assembly plugin, that is not interested in 
> the transitive dependencies.
> 
>> Did you look at the POM file I attached and compare it to the error 
>> messages also attached?
> 
> The POMs of the referred artifacts get interesting.
> 
> Chrres,
> Jörg
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e

Re: maven jar versus ant jar

2015-09-02 Thread Greg Trasuk
Hi Hector:

Could you describe in very precise terms how you “installed it locally”?  That 
might help us understand the problem.  And perhaps you’ve already mentioned it, 
but what kind of jar file are you actually building?  What does it get 
installed into?

Cheers,

Greg Trasuk

> On Sep 2, 2015, at 10:37 AM, Magnanao, Hector  wrote:
> 
> I've done "mvn clean" several times and built again.  It still keeps getting 
> packaged in my jar.  The only difference with this dependency is that I 
> installed it locally.  My pom just declares it as a dependency.  Do I need to 
> clean up my .m2 directory to start fresh ?
> 
> -Original Message-
> From: Wayne Fay [mailto:wayne...@gmail.com] 
> Sent: Tuesday, September 01, 2015 5:31 PM
> To: Maven Users List
> Subject: Re: maven jar versus ant jar
> 
> Try "mvn clean" first to be sure you didn't accidentally put the
> contents of that jar file in target/ and forget about it. Then build
> again.
> 
> If it is still large and includes those files, there must be something
> in your pom file that is causing it to occur. Very hard to debug your
> build without seeing these details.
> 
> Wayne
> 
> On Tue, Sep 1, 2015 at 4:41 PM, Magnanao, Hector
>  wrote:
>> I found out why my maven jar is much bigger. It looks like it's including a 
>> dependency jar inside the SNAPSHOT jar.  I installed this jar locally so I 
>> can compile but now it's being included in the build itself.  So how do I 
>> exclude it when I do a mvn package ?
>> 
>> -Original Message-
>> From: Tobias Hochgürtel [mailto:tobias.hochguer...@googlemail.com]
>> Sent: Tuesday, September 01, 2015 3:35 PM
>> To: Maven Users List
>> Subject: Re: maven jar versus ant jar
>> 
>> You can unpack the jar files to see what they include. This should help
>> you to find out what they makes fat or slimmer as the other one.
>> 
>> HTH
>> Tobias
>> 
>> Am 01.09.2015 um 22:29 schrieb Magnanao, Hector:
>>> I was finally able to build my snapshot jar using maven after going thru 
>>> all the missing dependencies.  But what I noticed is that the maven jar is 
>>> much larger than my ant jar.  Can anybody tell me why this is so ?  Should 
>>> they be different in sizes after  converting the build to maven ? what 
>>> should I be looking for causes of differences  ?
>>> 
>>> Hector Magnanao Jr.
>>> SCM Analyst
>>> 
>>> Fieldglass, Inc.
>>> O: (331) 702-6142
>>> M: (773) 474-3051
>>> hector.magna...@sap.com
>>> www.fieldglass.com
>>> 
>>> Fieldglass is now part of SAP
>>> 
>>> This email contains confidential information.  If you are not the intended 
>>> recipient, do not read, distribute or reproduce this transmission 
>>> (including any attachments). If you have received this email in error, 
>>> please notify the sender by email reply.
>>> 
>>> 
>> 
>> --
>> Tobias Hochgürtel
>> 
>> 
>> 
>> Tobias Hochgürtel
>> Alt-Stralau 15
>> 10245 Berlin
>> 
>> Tel. 03029 0493-39
>> Fax  03026 9488-22
>> E-Mail: tobias.hochguer...@googlemail.com
>> 
>> 
>> -
>> 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
>> 
> 
> -
> 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


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



Re: snapshot build size difference

2015-08-26 Thread Greg Trasuk

jar tvf abc.jar

Cheers,

Greg Trasuk

> On Aug 26, 2015, at 2:09 PM, Magnanao, Hector  wrote:
> 
> So I was finally able to get a good snapshot jar build from maven.  But I 
> noticed that the size of the maven build is bigger than the ant build.  Does 
> anyone have any suggestions on how to compare or find out why this is so ?
> 
> Hector Magnanao Jr.
> SCM Analyst
> 
> Fieldglass, Inc.
> O: (331) 702-6142
> M: (773) 474-3051
> hector.magna...@sap.com
> www.fieldglass.com
> 
> Fieldglass is now part of SAP
> 
> This email contains confidential information.  If you are not the intended 
> recipient, do not read, distribute or reproduce this transmission (including 
> any attachments). If you have received this email in error, please notify the 
> sender by email reply.
> 


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



Re: Properties Files

2015-08-18 Thread Greg Trasuk

Converting projects to Maven is not always a direct process.

You might want to check out the document below.  It talks about a systematic 
approach to converting projects to Maven, based on the artifacts that are 
created.  

http://www.webagesolutions.com/knowledgebase/kb001-Converting-To-Maven.html 
<http://www.webagesolutions.com/knowledgebase/kb001-Converting-To-Maven.html>

Cheers,

Greg Trasuk

> On Aug 18, 2015, at 10:02 AM, aalok singhvi  wrote:
> 
> It's a migration of an ant project. It's java project. Presently ant gets
> build properties file on compile time.
> On Aug 18, 2015 9:56 AM, "Ron Wheeler" 
> wrote:
> 
>> What are you building?
>> What language and technology stack?
>> 
>> What are the properties files used for - run-time? If so, where do you
>> want them to end up when you install your app?
>> How are you installing it?
>> 
>> Ron
>> 
>> On 18/08/2015 7:02 AM, aalok singhvi wrote:
>> 
>>> Hello,
>>> 
>>> I have a properties files. I have a multi modules project
>>> with 1 parent pom and approx 19 child modules. Where should
>>> i be putting the properties files which can be consumed by all
>>> the child modules.
>>> 
>>> Thanks
>>> 
>>> 
>> 
>> --
>> 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: Use 2 pom.xml files with different names

2015-08-10 Thread Greg Trasuk

> On Aug 10, 2015, at 7:12 AM, Alex Ditu  wrote:
> 
> Hello,
> 
> I want to use pom.xml files for my project with 2 different names:
> pom.xml and pom2.xml.
> In order to select wich one to execute/use I use -f  like this:
> 

(…snip…)

> 
> P.S. Don't ask me why I want to use 2 pom files, if anyone encountered
> this situation and knows how to deal with it, help will be much
> appreciated :)
> 

The problem is, it’s kind of like asking “When I try to drive on the railroad 
tracks with my car, I keep falling off the rails - has anyone else encountered 
this problem?”  The fundamental concept of Maven is that an artifact is 
uniquely identified, and the pom file describes the artifact.  As such, when 
Maven puts the artifact into the local repository, it follows the naming 
conventions.

You might be better off to describe what you’re actually trying to achieve, and 
then we can suggest how to do that.

Cheers,

Greg Trasuk



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



Re: How to fix this error?

2015-07-23 Thread Greg Trasuk

Hi Simone:

The error indicates that the build cannot find the artifact 
org.openiot:utils.commons:jar:0.0.1 in your local repository.

That artifact appears to be built in a different module in the main project.  I 
did 'git clone https://github.com/OpenIotOrg/openiot.git' 
<https://github.com/OpenIotOrg/openiot.git'> - I assume that’s where you 
started as well.  You need to go to the top-level project folder (‘openiot’) 
and execute ‘mvn clean install’.

That command will cause Maven to build the entire project and install the 
utility libraries in you local (~/.m2/repository) repository.

Cheers,

Greg Trasuk
Open Source Stream Lead - Web Age Solutions (http://webagesolutions.com 
<http://webagesolutions.com/>)


> On Jul 21, 2015, at 2:49 PM, Simone  wrote:
> 
> This is the error:
> Failed to execute goal on project scheduler.core: Could not resolve 
> dependencies for project org.openiot:scheduler.core:war:0.0.1: The following 
> artifacts could not be resolved: org.openiot:utils.commons:jar:0.0.1, 
> org.openiot:lsm-light.client:jar:0.0.1: Failure to find 
> org.openiot:utils.commons:jar:0.0.1 in 
> http://maven.repository.redhat.com/techpreview/all was cached in the local 
> repository, resolution will not be reattempted until the update interval of 
> jboss-ga-repository has elapsed or updates are forced -> [Help1]
> 
> Il 21/07/2015 20:28, Greg Trasuk ha scritto:
>> Hi Simone:
>> 
>> The mailing list appears to block screenshots.  Could you copy/paste the 
>> text of the error message?
>> 
>> Thanks,
>> 
>> Greg Trasuk
>>> On Jul 21, 2015, at 2:17 PM, Simone  wrote:
>>> 
>>> Hello
>>> 
>>> My name is Simone Sciarretta, I am student at the University of Pisa in
>>> the Communications Engineering Department
>>> I am experimenting a problem with the OpenIoT platform, and particularly
>>> when I am following the example of executing the command "mvn clean
>>> package jboss-as:deploy" in the library scheduler.core
>>> described in the deliverable D4.3.1. I get an error that restrict me to
>>> create the file .war and I have not find the way to resolve this problem.
>>> I am including a screen shot of the error and I will appreciate if you
>>> can help me to understand and tell me what is the problem?
>>> 
>>> If I have to enforce some changes in the repository or modify something
>>> in th pom.xml file please let me know?
>>> 
>>> In advance thank you very  much for your help.
>>> 
>>> Regards
>>> 
>>> Simone Sciarretta
>>> 
>>> 
>>> ---
>>> Questa e-mail è stata controllata per individuare virus con Avast antivirus.
>>> https://www.avast.com/antivirus
>>> 
>>> 
>>> -
>>> 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
>> 
> 
> 
> ---
> Questa e-mail è stata controllata per individuare virus con Avast antivirus.
> https://www.avast.com/antivirus
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 



Re: How to fix this error?

2015-07-21 Thread Greg Trasuk

Hi Simone:

The mailing list appears to block screenshots.  Could you copy/paste the text 
of the error message?

Thanks,

Greg Trasuk
> On Jul 21, 2015, at 2:17 PM, Simone  wrote:
> 
> Hello
> 
> My name is Simone Sciarretta, I am student at the University of Pisa in
> the Communications Engineering Department
> I am experimenting a problem with the OpenIoT platform, and particularly
> when I am following the example of executing the command "mvn clean
> package jboss-as:deploy" in the library scheduler.core
> described in the deliverable D4.3.1. I get an error that restrict me to
> create the file .war and I have not find the way to resolve this problem.
> I am including a screen shot of the error and I will appreciate if you
> can help me to understand and tell me what is the problem?
> 
> If I have to enforce some changes in the repository or modify something
> in th pom.xml file please let me know?
> 
> In advance thank you very  much for your help.
> 
> Regards
> 
> Simone Sciarretta
> 
> 
> ---
> Questa e-mail è stata controllata per individuare virus con Avast antivirus.
> https://www.avast.com/antivirus
> 
> 
> -
> 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: Need Help of Maveners to prepare for a talk on Maven

2015-07-14 Thread Greg Trasuk
Here’s a recorded webinar that I did for my company called “Apache Maven for 
Late Adopters".  It focuses primarily on the challenge of adopting Maven in an 
organizations that have existing projects in place.  Registration is required 
but it’s free.

http://www.webagesolutions.com/webinars/registration.html?ApacheMavenLateAdopters
 
<http://www.webagesolutions.com/webinars/registration.html?ApacheMavenLateAdopters>

Cheers,

Greg Trasuk.

> On Jul 14, 2015, at 8:22 AM, Ron Wheeler  
> wrote:
> 
> Very good suggestions.
> Perhaps Murthy should share a bit about the audience (Maven users who want to 
> improve their understanding or Ant users who are interested in changing) and 
> what he wants them to know at the end of the presentation.
> Is it a technical talk about the way Maven works or a "marketing" talk about 
> the benefits of using Maven and how it changes the development environment 
> and improves software quality?
> 
> Ron
> 
> On 14/07/2015 2:04 AM, Sander Verhagen wrote:
>> Hi Murthy,
>> 
>> 
>> I think it's important that you talk about things that you're comfortable 
>> with yourself. The fact that you're asking for resources in the way you do 
>> sounds like you're being sent on a quest in partly unknown territory, which 
>> may not be a great starting point to present (but I might have gotten the 
>> wrong impression here entirely, sorry if so). If you are still learning 
>> Maven while doing a major conversion from Ant, or you are an expert Maven 
>> user but you're the only one in your group, it may be worthwhile to get some 
>> expert consultancy so that you can adopt some best practices and to help you 
>> look good as the person driving this project.
>> 
>> When I guided my company from Ant to Maven, I did a lot of separate 
>> presentations, some of these were specific for our situation, some of these 
>> were generically about Maven. In the generic presentations I covered 
>> subjects like this:
>> 
>> Build
>> Lifecycle
>> Goals
>> Plugins
>> Dependency management
>> Artifacts
>> Dependencies
>> Scopes
>> Conflicts
>> Repositories
>> Versioning
>> Modules
>> Profiles
>> 
>> I would like to particularly call out "lifecycle" and "goals", since these 
>> concepts are so very basic to Maven that they're easily overlooked, but they 
>> are oh-so fundamental and at the same time so fundamentally different than 
>> Ant. And it's probably also these concepts that make Maven so much more than 
>> just "an Ant that does dependency management".
>> 
>> Good luck with your presentation!
>> 
>> Feel free to ask for more information!
>> 
>> Best regards, Sander.
>> 
>> P.S.: what's up with your footer?
>> 
>> 
>> 
>> Sander Verhagen
>> [  san...@sanderverhagen.net  ]
>> 
>> NOTICE: my e-mail address has changed. Please remove verha...@sander.com now 
>> and start using san...@sanderverhagen.net from now on. Please update your 
>> address book. Thank  you!
>> 
>> 
>>> -Original Message-
>>> From: Gandikota, Murthy [mailto:mgandik...@westechmed.com]
>>> Sent: Monday, July 13, 2015 17:59
>>> To: Maven Users List
>>> Subject: Need Help of Maveners to prepare for a talk on Maven
>>> 
>>> Hi All
>>> I am asked by my org/boss to talk about my maven exploits for about half an
>>> hour in front of our group. Having sought  your help, earlier, for a pathing
>>> jar, I am ready to talk  about it. However, it involves a  lot of ant, as I 
>>> don't
>>> know how to do the  same (copying files, generating manifest, etc.) in
>>> Maven. Can you help me figure out what other topics  can be general
>>> enough for Maveners? I am thinking of Maven plugins, but don't know any
>>> resources. I'd appreciate if you can kindly help me figure this out.
>>> 
>>> Thanks in anticipation.
>>> B�KKK
>>> KCB��[��X��ܚX�KK[XZ[
>>> 
>>> �\�\��][��X��ܚX�PX]�[��\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
>>> 
>>> �\�\��Z[X]�[��\X�K�ܙ�B
>> -
>> To unsubscribe, e-mail: users-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: copy file renaming to WEB-INF

2015-05-19 Thread Greg Trasuk

Hello Aitor:

Using profiles is really the wrong way to do this.  You are better off to 
realize that you have three separate artifacts that are being generated:
- The “.war” file for ‘pre’
- The “.war” file for ‘local’
- The “.war” file for ‘prod’.

You should treat these as separate artifacts, with a separate artifact-id, 
otherwise, how do you know that a given artifact was built using the correct 
profile?  You don’t want to risk installing your ‘pre’ build into production, 
do you?

That being the case, you should have three separate assembly projects that 
generate the separate artifacts.

Cheers,

Greg Trasuk
Web Age Solutions http://www.webagesolutions.com 
<http://www.webagesolutions.com/>

> On May 19, 2015, at 2:56 PM, Aitor Iturriondobeitia  
> wrote:
> 
> hello
> 
> i have some files into one directory:
> jboss-ejb-client_local.xml
> jboss-ejb-client_pre.xml
> jboss-ejb-client_prod.xml
> 
> i have into my pom some profiles, one for each file (local, pre.  prod)
> if i compiel for one profile, for example, pre, i need to copy the pre file
> (jboos-ejb-client_pre.xml to WEB-INF with the name jboss-ejb-client.xml
> 
> can i make this using maven?
> 
> can you help me?
> 
> thanks



Re: Do I need to write a plugin for this?

2015-03-01 Thread Greg Trasuk

Hi Anders and Benson:

Nothing to do with this question, but I’m curious for another project - could 
you point me towards a good example of a custom packaging type plugin?

Thanks,

Greg Trasuk

On Mar 2, 2015, at 1:30 AM, Anders Hammar  wrote:

> In that case you do, yes. That's called a custom packaging type and is
> implemented via a plugin.
> But you can also accomplish the upload by having a pom packaging and
> specify the cba file with the build-helper plugin as Benson wrote.
> 
> /Anders (mobile)
> Den 2 mar 2015 07:25 skrev "Bruce Albrecht" :
> 
>> However, if I want my pom to have packaging of cba, it's my impression
>> that I need to write a plugin.  It's the only artifact I want to upload
>> to Nexus.
>> 
>> On 03/01/15 20:42, Benson Margulies wrote:
>>> I don't understand your question at all. In Maven, you can just use the
>>> build-helper-maven-plugin to attach any file to the project, causing it
>> to
>>> upload. So, you can certainly use antrun to run the ant build, and the
>>> helper to attach the result as an artifact.
>>> 
>>> On Sun, Mar 1, 2015 at 4:18 PM, Bruce Albrecht 
>>> wrote:
>>> 
>>>> I am working on a project that creates OSGI bundles with an extension of
>>>> .cba and today uses ant to invoke a workbench to build the .cba file.  I
>>>> want to upload the .cba file to my Nexus repository. My initial take on
>>>> this is that if IBM didn't use its own extension for this, I would be
>>>> able to just use the antrun plugin.
>>>> 
>>>> -
>>>> 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
>> 
>> 


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



Re: JJTree with maven-compiler-plugin

2014-03-04 Thread Greg Trasuk

Like so…

Put the following in your pom:




org.codehaus.mojo
javacc-maven-plugin
2.6


jjtree-javacc

jjtree-javacc







   
   

And your “.jjt” files go into “src/main/jjtree.

You can see an example in the “river-container-core” module at 
https://github.com/trasukg/river-container

Cheers,

Greg Trasuk.
Open-Source Stream Lead, Web Age Solutions 
http://www.webagesolutions.com/courses/open-source-training

On Mar 3, 2014, at 1:46 AM, Umashanker, Srividhya  
wrote:

> I want to compile .jjt files into .java files using maven with javacc/jjtree.
> 
> The maven-antrun-plugin wiki 
> http://maven.apache.org/plugins/maven-antrun-plugin/usage.html says  :
> 
> 
> 
> Some Ant expressions have their respective counterparts in Maven. Thus, one 
> can simply invoke the corresponding Maven expression instead of using 
> maven-antrun-plugin to avoid the unneccessary overhead.
> 
> Ant expression
> 
> Plugin
> 
> JavaCC
> 
> maven-compiler-plugin<http://maven.apache.org/plugins/maven-compiler-plugin/>
> 
> JJDoc
> 
> maven-compiler-plugin<http://maven.apache.org/plugins/maven-compiler-plugin/>
> 
> JJTree
> 
> maven-compiler-plugin<http://maven.apache.org/plugins/maven-compiler-plugin/>
> 
> 
> 
> Can someone point me to an example on how to use JJtree with 
> maven-compiler-plugin?  Could not find much details on how to use other 
> compilers.
> 
> -Vidhya


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



How to remove the '.jar' from an assembly?

2013-07-30 Thread Greg Trasuk
Hello:

I'm trying to use the assembly plugin to generate a deployment archive. 
I'd like to have the final jar name be 'something.ssar' even though it
is formatted as a jar file, much the same way an "ear" file is simply a
jar-formatted file with the extension ".ear".

I have the following configuration in the plugin config:


  src/assembly/module.xml
  something.ssar
  false


... but the asssembly plugin still appends ".jar" to the filename,
giving an output file called "something.ssar.jar".

What other config do I need to do?  Is there something about configuring
the maven or plexus archiver?

Thanks,

Greg.



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



Re: Newbie trying to understand how to use some plugins

2013-06-11 Thread Greg Trasuk

Re: "Local" access crossing different EAR files:

That isn't Maven related, but I happened to be discussing this with some
folks in my company just this morning.  Basically it's a classloading
issue.  An Enterprise Application (ear file) has its own classloader. 
So the client in ear file B, trying to make a local access to
"com.my.bean.MyBean" in ear file A is actually looking at a completely
different class from the "com.my.bean.MyBean" that is defined in ear
file A, even though the name appears to be the same.  The same byte code
loaded by two different class loaders makes two different classes.

The application server _may_ have a way to define a common library that
spans the two applications  I think Websphere does, but I'm not sure
about JBoss.  The EJB spec allows it but doesn't require it, and makes
clear that such an arrangement is not portable.

So if you put your web and ejb modules in separate enterprise
applications, you most likely need to use the remote interface.  Calls
don't necessarily go out over the network, as the local ORB might
optimize it, but parameters and return values will be serialized, so you
won't have call-by reference semantics.

I wonder, though, if you could repeat the original question?  I recall
something about "the library jar isn't on the server", and I'm not sure
if you meant "it isn't in Maven Central" or something else.

Cheers,

Greg.

On Tue, 2013-06-11 at 11:11, RICHARD DOUST wrote:
> Wayne,
> 
> Thanks for your response.
> 
> I don't really need to make the EJB jar work standalone. I was trying to 
> divide and conquer. In 4.2.2 I deployed the EJB jar as part of an EAR with 2 
> WARs. I think that I'd like to deploy to JBoss AS 7 with an EAR containing 
> the EJB jar, and two separate wars that use the services of the beans 
> packaged in the EAR. I'm a little concerned though because I read that if I 
> go this route, the web tier will be forced to use the remote interfaces while 
> they currently use local interfaces. Do you know if this is correct?  
> 
> Thanks,
> 
> Richard
> 
> On Jun 10, 2013, at 1:05 PM, Wayne Fay  wrote:
> 
> >> Anyway, I'm running into issues at deployment time (just starting with the 
> >> EJB jar as a
> >> standalone deployment) because the EJB jar depends on a 3rd party jar that 
> >> is not
> >> available on the server.
> > 
> > If you **really** need to make the EJB jar work in standalone
> > deployment (which is not especially common IME), you could make this
> > work with the shade plugin (or other similar plugins) by packaging the
> > contents of your dependencies in alongside your own project files in
> > an "uberjar" or "onejar."
> > 
> >> I'd like to avoid that this time, so I'm thinking, much like WAR and EAR 
> >> files have
> >> META-INF/lib directories, a jar file might have something similar. Does 
> >> this fall outside
> >> the definition of a jar? Is there no way to package a 3rd party jar upon 
> >> which one's code
> >> depends with one's jar, so that at runtime the dependencies can be 
> >> resolved by the
> >> classloader?
> > 
> > The Java Jar file specification does not allow Jar files to contain
> > other Jar files so this is not possible (unless you are using a
> > special classloader which does not conform to the spec like
> > Classworlds).
> > 
> > Instead, you should be using dependencies in your WAR and EAR pom
> > files to declare "this project depends on these libraries" and Maven
> > will automatically pull those Jar files in and include them in the WAR
> > or EAR packages when they are constructed.
> > 
> > Are you sure that you need this EJB jar to work in standalone
> > deployment? Or is this just something you're trying for something to
> > do, and you will generally deploy the EJB in a WAR/EAR? If the latter,
> > I would ignore this "problem" for now and continue working to make the
> > WAR/EAR function as you require.
> > 
> > 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
-- 
Greg Trasuk.  
Stream Lead - Open Source Technologies
Ph: 905-315-9509
Cell: 905-921-6464


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