Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Karen Goh



On Tue, 11/6/18, Thomas Broyer  wrote:

 Subject: Re: Fw: Re: Need advice to put my bootstrap template in Maven 
archetype web app
 To: "Karen Goh" 
 Cc: "Maven Users List" 
 Date: Tuesday, November 6, 2018, 11:56 PM
 
 Take the Bootstrap and Images folder out of
 the WebContent and move them
 into src/main/webapp.
 
 I mean: tutorRegister.jsp was in
 WebContent and you moved it to
 src/main/webapp, right? so just do the
 same things with the rest: the
 Bootstrap folder is in WebContent, move
 it into src/main/webapp (i.e.
 src/main/webapp/Bootstrap/…)

Hello Thomas,

I followed your advice but it is still not working.  Do I need to do anything 
else to make the jsp render the layout as per the Bootstrap template cos it was 
working before I change my structure to meet the Maven's standard directory 
layout.

Here's the layout I have done as per your advice:

https://ibb.co/fb23DV
 
 On Tue, Nov 6, 2018 at 4:51 PM Karen
 Goh 
 wrote:
 
 > I am so sorry but please ignore
 the last email.
 >
 > The URL is ok now after I read
 thru your email again and then looking at
 > many images online.
 >
 > However, the jsp page is still not
 rendering the Bootstrap template.
 >
 > I just need you kindly tell me
 where to put the WebContent which contains
 > all the template, css etc.
 >
 > https://ibb.co/hbF8dV
 >
 > Thanks in advance.
 >
 > --- On Tue, 11/6/18, Karen Goh
 
 wrote:
 >
 > > From: Karen Goh 
 > > Subject: Fw: Re: Need advice
 to put my bootstrap template in Maven
 > archetype web app
 > > To: t.bro...@gmail.com
 > > Date: Tuesday, November 6,
 2018, 9:38 PM
 > > Hi Thomas,
 > >
 > > I have not heard back from
 you so I am
 > > writing to you again.
 > >
 > > Basically, I still can't get
 the
 > > localhost to run the jsp page
 properly.
 > >
 > > So, what I did now is re-edit
 the web
 > > deployment assembly
 > >
 > > https://ibb.co/eJ93Cq
 > >
 > > Now, another problem appeared
 :
 > >
 > > The URL appeared to be like
 this which
 > > differs from what you have
 mentioned
 > >
 > > http://localhost:8013/WebApp/WEB-INF/tutorRegister.jsp
 > >
 > > I am really lost and can't
 get going
 > > with my project so I really
 hope you could point out how to
 > > make it right.
 > >
 > > Here's my latest attempt :
 > >
 > > https://ibb.co/g4atCq
 > >
 > > https://ibb.co/kppH5A
 > >
 > > I am so sorry to trouble you
 again but
 > > I really hope how should I
 make the my URL correct.  Do
 > > I move all the jsp to above
 image folder and just below
 > > WEB-INF ?
 > >
 > > Tks & regards,
 > > Karen
 > >
 > > --- On Sun, 11/4/18, Karen
 Goh 
 > > wrote:
 > >
 > > > From: Karen Goh 
 > > > Subject: Re: Need advice
 to put my
 > > bootstrap template in Maven
 archetype web app
 > > > To: "Thomas Broyer"
 
 > > > Date: Sunday, November
 4, 2018,
 > > 1:25 PM
 > > >
 > > >
 > >
 
 > > > On Sat, 11/3/18, Thomas
 Broyer
 > > 
 > > > wrote:
 > > >
 > > >  Subject: Re: Need
 advice to
 > > put my
 > > > bootstrap template in
 Maven
 > > archetype web app
 > > >  To: "Karen Goh"
 
 > > >  Date: Saturday,
 November 3,
 > > 2018, 9:21
 > > > PM
 > > >
 > > >
 > > >
 > > >  On Sat, Nov
 > > >  3, 2018 at 1:38 PM
 Karen Goh
 > > 
 > > >  wrote:
 > > >
 > > >
 > > >
 > > >
 > >
 
 > > >
 > > >  On Fri, 11/2/18,
 Thomas
 > > Broyer 
 > > >  wrote:
 > > >
 > > >
 > > >
 > > >   Subject: Re: Need
 advice
 > > to put my
 > > > bootstrap template in
 > > >  Maven archetype
 web app
 > > >
 > > >   To: "Maven Users
 List"
 > > ,
 > > >  "Karen Goh" 
 > > >
 > > >   Date: Friday,
 November 2,
 > > 2018, 7:37
 > > > PM
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >   On Thu, Nov
 > > >
 > > >   1, 2018 at 5:55
 AM Karen
 > > Goh
 > > >
 > > >   
 > > > wrote:
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > 
 
 > > >
 > > >
 > > >
 > > >   On Tue, 10/30/18,
 jieryn
 > > 
 > > >
 > > >   wrote:
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >    Subject:
 Re: Need advice
 > > to put my
 > > > bootstrap template
 > > >  in
 > > >
 > > >   Maven archetype
 web app
 > > >
 > > >
 > > >
 > > >    To: "Maven
 Users List"
 > > ,
 > > >
 > > >   karenwo...@yahoo.com
 > > >
 > > >
 > > >
 > > >    Date:
 Tuesday, October
 > > 30, 2018,
 > > > 8:31 PM
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >    https://maven.apache.org/plugins/maven-war-plugin/usage.html
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >   Hi Jieryn,
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >   Just to clarify,
 so I have
 > > to place
 > > > the WebContent
 > > >  folder
 > > >
 > > >   which contents
 all my
 > > bootstrap css
 > > > etc under the
 > > >  resources
 > > >
 > > >   ?
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >
 > > >   I am confused cos
 the
 > > title is how
 > > > to WAR plug in where
 > > >  is
 > > >
 > > >   my question is

[ANN] Apache Maven Jarsigner Plugin 3.0.0 Released

2018-11-06 Thread Robert Scholte
The Apache Maven team is pleased to announce the release of the Apache  
Maven Jarsigner Plugin, version 3.0.0


This plugin provides the capability to sign or verify a project artifact  
and attachments using jarsigner.


https://maven.apache.org/plugins/maven-jarsigner-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-jarsigner-plugin
  3.0.0


You can download the appropriate sources etc. from the download page:

https://maven.apache.org/plugins/maven-jarsigner-plugin/download.cgi


Release Notes - Maven Jar Signer Plugin - Version 3.0.0

** New Feature
* [MJARSIGNER-53] - Add support of the certchain parameter to the  
"sign" mojo


** Improvement
* [MJARSIGNER-47] - Upgrade Maven 3.X Only JDK 1.6
* [MJARSIGNER-56] - Require Java 7
* [MJARSIGNER-57] - Remove deprecated parameters

** Dependency upgrade
* [MJARSIGNER-49] - Upgrade maven-shared-components parent to version  
30

* [MJARSIGNER-50] - Upgrade maven-shared-utils to 3.1.0
* [MJARSIGNER-55] - Upgrade parent to 31
* [MJARSIGNER-58] - Update maven-jarsigner dependency


Enjoy,

-The Apache Maven team

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



Plugin parameter for project class path?

2018-11-06 Thread Russell Gold
I am writing a plugin which does post-processing on some classes compiled in 
the build, so I have defined a parameter that I would like Maven to fill in 
with the appropriate list of dependencies, but I am clearly misunderstanding 
how to do that. Here is what I have:


>   @Parameter(defaultValue = "${project.compileClasspathElements}", readonly = 
> true, required = true)
>   private List compileClasspathElements;

But when the plugin executes, that is being set to the directory in which 
compiled classes are places. (target/classes).

What is the correct way to do this, and how should I have figured it out?

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



Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Thomas Broyer
Take the Bootstrap and Images folder out of the WebContent and move them
into src/main/webapp.

I mean: tutorRegister.jsp was in WebContent and you moved it to
src/main/webapp, right? so just do the same things with the rest: the
Bootstrap folder is in WebContent, move it into src/main/webapp (i.e.
src/main/webapp/Bootstrap/…)

On Tue, Nov 6, 2018 at 4:51 PM Karen Goh  wrote:

> I am so sorry but please ignore the last email.
>
> The URL is ok now after I read thru your email again and then looking at
> many images online.
>
> However, the jsp page is still not rendering the Bootstrap template.
>
> I just need you kindly tell me where to put the WebContent which contains
> all the template, css etc.
>
> https://ibb.co/hbF8dV
>
> Thanks in advance.
>
> --- On Tue, 11/6/18, Karen Goh  wrote:
>
> > From: Karen Goh 
> > Subject: Fw: Re: Need advice to put my bootstrap template in Maven
> archetype web app
> > To: t.bro...@gmail.com
> > Date: Tuesday, November 6, 2018, 9:38 PM
> > Hi Thomas,
> >
> > I have not heard back from you so I am
> > writing to you again.
> >
> > Basically, I still can't get the
> > localhost to run the jsp page properly.
> >
> > So, what I did now is re-edit the web
> > deployment assembly
> >
> > https://ibb.co/eJ93Cq
> >
> > Now, another problem appeared :
> >
> > The URL appeared to be like this which
> > differs from what you have mentioned
> >
> > http://localhost:8013/WebApp/WEB-INF/tutorRegister.jsp
> >
> > I am really lost and can't get going
> > with my project so I really hope you could point out how to
> > make it right.
> >
> > Here's my latest attempt :
> >
> > https://ibb.co/g4atCq
> >
> > https://ibb.co/kppH5A
> >
> > I am so sorry to trouble you again but
> > I really hope how should I make the my URL correct.  Do
> > I move all the jsp to above image folder and just below
> > WEB-INF ?
> >
> > Tks & regards,
> > Karen
> >
> > --- On Sun, 11/4/18, Karen Goh 
> > wrote:
> >
> > > From: Karen Goh 
> > > Subject: Re: Need advice to put my
> > bootstrap template in Maven archetype web app
> > > To: "Thomas Broyer" 
> > > Date: Sunday, November 4, 2018,
> > 1:25 PM
> > >
> > >
> > 
> > > On Sat, 11/3/18, Thomas Broyer
> > 
> > > wrote:
> > >
> > >  Subject: Re: Need advice to
> > put my
> > > bootstrap template in Maven
> > archetype web app
> > >  To: "Karen Goh" 
> > >  Date: Saturday, November 3,
> > 2018, 9:21
> > > PM
> > >
> > >
> > >
> > >  On Sat, Nov
> > >  3, 2018 at 1:38 PM Karen Goh
> > 
> > >  wrote:
> > >
> > >
> > >
> > >
> > 
> > >
> > >  On Fri, 11/2/18, Thomas
> > Broyer 
> > >  wrote:
> > >
> > >
> > >
> > >   Subject: Re: Need advice
> > to put my
> > > bootstrap template in
> > >  Maven archetype web app
> > >
> > >   To: "Maven Users List"
> > ,
> > >  "Karen Goh" 
> > >
> > >   Date: Friday, November 2,
> > 2018, 7:37
> > > PM
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >   On Thu, Nov
> > >
> > >   1, 2018 at 5:55 AM Karen
> > Goh
> > >
> > >   
> > > wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >  
> > >
> > >
> > >
> > >   On Tue, 10/30/18, jieryn
> > 
> > >
> > >   wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >Subject: Re: Need advice
> > to put my
> > > bootstrap template
> > >  in
> > >
> > >   Maven archetype web app
> > >
> > >
> > >
> > >To: "Maven Users List"
> > ,
> > >
> > >   karenwo...@yahoo.com
> > >
> > >
> > >
> > >Date: Tuesday, October
> > 30, 2018,
> > > 8:31 PM
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >https://maven.apache.org/plugins/maven-war-plugin/usage.html
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >   Hi Jieryn,
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >   Just to clarify, so I have
> > to place
> > > the WebContent
> > >  folder
> > >
> > >   which contents all my
> > bootstrap css
> > > etc under the
> > >  resources
> > >
> > >   ?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >   I am confused cos the
> > title is how
> > > to WAR plug in where
> > >  is
> > >
> > >   my question is more on the
> > Maven
> > > structure directory
> > >  usage
> > >
> > >   for 3rd party bootstrap
> > template.
> > >
> > >
> > >
> > >   In Maven, everything is
> > done by
> > >
> > >   plugins, even the
> > "standard" things.
> > > Besides
> > >  the
> > >
> > >   things that are part of
> > the Project
> > > Object Model
> > >  (sources,
> > >
> > >   resources, output
> > directory, test
> > > sources, test
> > >  resources,
> > >
> > >   test output directory),
> > the
> > > "standard layout"
> > >  for
> > >
> > >   Maven projects are
> > actually simply
> > > the default
> > >
> > >   configurations for those
> > plugins.If
> > > you want to
> > >
> > >   build a WAR file for a web
> > app,
> > > you'll use
> > >
> > >
> > >
> >  war in your POM,
> > >  which
> > >
> > >   will trigger the plugin
> > bindings for
> > > war packaging (
> 

Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Thomas Broyer
[+cc maven-users]

I'm sorry I'm not particularly good at telling people "what they should
do". What I'm god at is telling you how things work, and then let you make
the changes to achieve your goal (knowing where you come from and where you
want to go).

You have to understand the structure of a WAR file, and how you want *your* WAR
file to look like. First, a WAR file is in ZIP format, if you open your WAR
file with WinZIP (or rename it as *.zip and open it as a "compressed
folder" in Windows Explorer), here's what it looks like:

   - the webapp descriptor lives in WEB-INF/web.xml
   - compiled classes can go into WEB-INF/classes (as
   WEB-INF/classes/com/example/MyClass.class, for a class MyClass in package
   com.example)
   - third-party dependencies go into WEB-INF/lib (as JAR files directly
   inside the directory, with no additional subdirectory)
   - web resources go outside the WEB-INF and META-INF directories.
   Generally, you'll find an index.html or index.jsp file at the root of the
   WAR. Put your files as you like, as long as they're not in WEB-INF or
   META-INF root directories.

When you deploy a webapp (WAR file) to a server (e.g. Tomcat), a foo.html
file at the root of the WAR will be available at
http://server:port/context/foo.html, where "context" is the context path
your webapp is deployed to (in many cases, this is the name of your WAR
file, without the *.war extension; but you can deploy a webapp at the root
of a server, so you can have http://server:port/foo.html) This is highly
dependent on how you deploy your webapps. You seem to be using the tools
integrated into Eclipse, and I have no idea how they work and what they do,
so I can't help further.

Then you need to understand how to build a WAR file with Maven.
Using the standard layout, i.e. with a pom.xml containing only the strict
minimum (groupId, artifactId, version, packaging=war, and dependencies, but
nothing in ), here's how it works:

   - Java source code in src/main/java (this is
   ${project.build.sourceDirectory}) is compiled into your target/classes
   (this is ${project.build.outputDirectory}) by the maven-compiler-plugin
   - Resources in src/main/resources (this is the default set of
   ${project.build.resources}) are copied into target/classes by the
   maven-resources-plugin
   - Then the maven-war-plugin will take target/classes and put it into
   WEB-INF/classes, it will take all your dependencies (declared in
in your pom.xml) into WEB-INF/lib (unless they are declared
   with provided or test;
   provided is generally used to declare the Servlet API
   dependency, as it shouldn't be packaged into the WAR file, given it'll be
   provided –hence the name of the scope– by the server), and finally will
   take the content of src/main/webapp (this is the default value for the
   plugin's warSourceDirectory) and put it at the root of the WAR.
   By default, there should be a src/main/webapp/WEB-INF/web.xml file, or
   the plugin will complain; unless you reconfigure the plugin to ignore it
   (what you did in your pom.xml).
   The plugin will first create an "exploded WAR" in
   target/${artifactId}-${version} (this is actually
   ${project.build.directory}/${project.build.finalName}; this means you can
   change the subfolder name by configuring  into  in your
   POM, something you have in your pom.xml) and then will "ZIP" it into
   target/${project.build.finalName}.war
   Note that you can also configure the plugin to JAR the target/classes
   into WEB-INF/lib instead of copying it into WEB-INF/classes; this will work
   the same when deployed to a server, so is mostly a matter of preferences.

Now you should know all there is to know to build your WAR file.

   - put your JSP files into src/main/webapp. The path relative to
   src/main/webapp will be the path relative to the webapp root URL (i.e.
   src/main/webapp/tutorRegister.jsp will be at
   http://localhost:8013/WebApp/tutorRegister.jsp)
   - put your bootstrap JS and CSS files somewhere into src/main/webapp
   too; make sure the relative links between your JSPs and the bootstrap files
   work.

But look at your WAR file (after invoking Maven's "package" goal) to know
if you did things right. Only then try to deploy your webapp to Tomcat
using Eclipse Java EE tools, and fix things in your Eclipse config, without
moving files around or changing your pom.xml (because you validated that
already and you know it's right).

On Tue, Nov 6, 2018 at 2:42 PM Karen Goh  wrote:

> Hi Thomas,
>
> I have not heard back from you so I am writing to you again.
>
> Basically, I still can't get the localhost to run the jsp page properly.
>
> So, what I did now is re-edit the web deployment assembly
>
> https://ibb.co/eJ93Cq
>
> Now, another problem appeared :
>
> The URL appeared to be like this which differs from what you have mentioned
>
> http://localhost:8013/WebApp/WEB-INF/tutorRegister.jsp
>
> I am really lost and can't get going with my project so I really 

Re: From none maven project to maven project

2018-11-06 Thread jieryn
Without knowing any details about your project, I have no idea. Maybe
you already keep your source code in src/main/java? Maybe you already
have some scripts to download dependent libraries instead of using
some lib/ directory? Maybe you have a simple JAR project and not a
complex WAR project with a ton of dependencies? With the level of
details you've provided, we're not going to be able to help you too
much.

Add a basic pom.xml, and try to build. Fix the things that don't work.
I generally can Maven-ize a project pretty quickly, usually in less
than an hour.

https://maven.apache.org/guides/introduction/introduction-to-the-pom.html
https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

On Tue, Nov 6, 2018 at 9:11 AM Eng. Bilal Ghayad  wrote:
>
> Adding pom.xml is the minimum requirements, and what could be the other 
> requirements?
> Because I need to know if I started the project as native (not maven) so how 
> to convert to maven?
>
> Regards,
> Bilal
>
> -Original Message-
> From: jieryn [mailto:jie...@gmail.com]
> Sent: Tuesday, November 6, 2018 3:19 PM
> To: Maven Users List
> Subject: Re: From none maven project to maven project
>
> Adding the pom.xml is the minimum requirement. Try it and see..
>
> On Tue, Nov 6, 2018 at 7:08 AM Eng. Bilal Ghayad  wrote:
>
> > Hello All;
> >
> >
> >
> > If my project is not maven (native) and I need to make it maven, all what
> > I need is to add the pom.properties and pom.xml files?
> >
> > Or I have to restructure the project folders same as maven folders
> > structure?
> >
> >
> >
> > Regards,
> > Bilal
>
>
> -
> 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: From none maven project to maven project

2018-11-06 Thread Eng. Bilal Ghayad
Adding pom.xml is the minimum requirements, and what could be the other 
requirements?
Because I need to know if I started the project as native (not maven) so how to 
convert to maven?

Regards,
Bilal

-Original Message-
From: jieryn [mailto:jie...@gmail.com] 
Sent: Tuesday, November 6, 2018 3:19 PM
To: Maven Users List
Subject: Re: From none maven project to maven project

Adding the pom.xml is the minimum requirement. Try it and see..

On Tue, Nov 6, 2018 at 7:08 AM Eng. Bilal Ghayad  wrote:

> Hello All;
>
>
>
> If my project is not maven (native) and I need to make it maven, all what
> I need is to add the pom.properties and pom.xml files?
>
> Or I have to restructure the project folders same as maven folders
> structure?
>
>
>
> Regards,
> Bilal


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



Re: From none maven project to maven project

2018-11-06 Thread jieryn
Adding the pom.xml is the minimum requirement. Try it and see..

On Tue, Nov 6, 2018 at 7:08 AM Eng. Bilal Ghayad  wrote:

> Hello All;
>
>
>
> If my project is not maven (native) and I need to make it maven, all what
> I need is to add the pom.properties and pom.xml files?
>
> Or I have to restructure the project folders same as maven folders
> structure?
>
>
>
> Regards,
>
>
> --
>
>
>
> *Eng. Bilal Ghayad*
> Mob: +96171113391
> Tel: +9615806234
>
> Fax: +9615806234
>
> P.O.BOX 14-6306, Beirut – Mazraa, LEBANON
>
> Web: www.ghayad.com
> Email: bi...@ghayad.com
>
> Please consider the environment before printing this email.
> Disclaimer: This message and any attachments are confidential and intended
> solely for the addressee(s).
> Any unauthorized use is prohibited. Ghayad is not liable for the message
> if altered, changed or falsified.
>
>
>


From none maven project to maven project

2018-11-06 Thread Eng. Bilal Ghayad
Hello All;

 

If my project is not maven (native) and I need to make it maven, all what I
need is to add the pom.properties and pom.xml files?

Or I have to restructure the project folders same as maven folders
structure?

 

Regards,


--


 



Eng. Bilal Ghayad
Mob: +96171113391
Tel: +9615806234

Fax: +9615806234

P.O.BOX 14-6306, Beirut - Mazraa, LEBANON

Web:   www.ghayad.com 
Email:   bi...@ghayad.com

Please consider the environment before printing this email.
Disclaimer: This message and any attachments are confidential and intended
solely for the addressee(s). 
Any unauthorized use is prohibited. Ghayad is not liable for the message if
altered, changed or falsified.