You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Michael Finney <fi...@ACM.org> on 2009/01/04 05:27:49 UTC
maven2 and new struts 2 project
Hello,
I was about to add to a small open source project of mine a maven dependency
to (Display tag library 1.2) http://displaytag.sourceforge.net/1.2/
When I tried to add this maven dependency, the eclipse/m2eclipse plug-in
decided to change my facet JDK settings down to JDK1.4 (facet="jst.java"
version="6.0" changed to "1.4")
I looked at the facets and decided it's worth it to start over with a new
maven2 project. I figured it may be easier since it is open source.
I read at
http://www.mail-archive.com/user@struts.apache.org/msg71548.html
how to create a struts2-archetype-starter. I want the equivalent of
struts2-blank.
I tried adding the remote catalog of
http://people.apache.org/builds/struts/2.0.14/m2-staging-repository . When I
try to verify the catalog, it says the catalog is empty.
What do I use for a struts2 2.0.x maven2 project? Shall I just create a new
maven project, skip archetype selection, and ask it to create a war project
for me?
What do you recommend at this point?
Thanks,
Mike
--
Michael Finney - "Always Striving To Serve You Better Every Day"
finney@ACM.org
http://www.SmilingSoftwareSolutions.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: maven2 and new struts 2 project
Posted by Randy Burgess <ra...@d5systems.com>.
With m2eclipse I've noticed that if I remove the compiler plugin from a
project then the build settings in Eclipse gets changed to the Maven
defaults of JDK 1.3 and 1.1 compliance. If I create a project from a Maven
archetype, like Struts 2.0.14 starter, then the compiler plugin is in the
pom and the Eclipse project build settings apparently get created based on
that.
I'm using m2eclipse with RAD 7.5 and the "customized" version (with all
Maven features enabled) that comes with MyEclipse 7.0.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
Randy Burgess
On Sat, Jan 3, 2009 at 11:27 PM, Michael Finney <fi...@acm.org> wrote:
> Hello,
>
> I was about to add to a small open source project of mine a maven
> dependency
> to (Display tag library 1.2) http://displaytag.sourceforge.net/1.2/
>
> When I tried to add this maven dependency, the eclipse/m2eclipse plug-in
> decided to change my facet JDK settings down to JDK1.4 (facet="jst.java"
> version="6.0" changed to "1.4")
>
> I looked at the facets and decided it's worth it to start over with a new
> maven2 project. I figured it may be easier since it is open source.
>
> I read at
> http://www.mail-archive.com/user@struts.apache.org/msg71548.html
> how to create a struts2-archetype-starter. I want the equivalent of
> struts2-blank.
>
> I tried adding the remote catalog of
> http://people.apache.org/builds/struts/2.0.14/m2-staging-repository . When
> I
> try to verify the catalog, it says the catalog is empty.
>
> What do I use for a struts2 2.0.x maven2 project? Shall I just create a
> new
> maven project, skip archetype selection, and ask it to create a war project
> for me?
>
> What do you recommend at this point?
>
> Thanks,
> Mike
>
>
> --
> Michael Finney - "Always Striving To Serve You Better Every Day"
> finney@ACM.org
> http://www.SmilingSoftwareSolutions.com
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
Regards,
Randy Burgess
Re: maven2 and new struts 2 project
Posted by Edwin Quita <ed...@gmail.com>.
hi Mike,
what I did was create a blank web project and added the necessary
struts2 POM dependencies.
here's the zipped file of the skeleton project i made, just change the
version to the ones you require.
HTH,
/kits
On Mon, Jan 5, 2009 at 3:15 AM, Wes Wannemacher <we...@wantii.com> wrote:
> I have been working off of s2.1.x, so I'm not sure if the same applies,
> but I have a few reference projects up here for a book I'm working on -
>
> http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk
>
> I would think that you could grab one of those and change the version
> numbers on the dependencies and get what you want. I have been working
> on them with Eclipse WebTools (Ganymede) with the m2eclipse plugin.
>
> One of the problems I had was that the Maven Archetypes for eclipse
> aren't recognized as web apps. So, I had to hack around a bit in the
> eclipse config files to get them to work.
>
> Later, I figured out that if I just start a new Maven project that is a
> web-app, from the stock web-app archetype from Maven, then just add
> struts2, it works just fine. The downside to this approach is that you
> have to change the web.xml that comes with the maven archetype for
> web-apps since it defaults to something like Servlet 2.2...
>
> Anyhow, go ahead and import ch01ex01 since it's the simplest one and
> then build from there.
>
> -Wes
>
> On Sat, 2009-01-03 at 22:27 -0600, Michael Finney wrote:
>> Hello,
>>
>> I was about to add to a small open source project of mine a maven dependency
>> to (Display tag library 1.2) http://displaytag.sourceforge.net/1.2/
>>
>> When I tried to add this maven dependency, the eclipse/m2eclipse plug-in
>> decided to change my facet JDK settings down to JDK1.4 (facet="jst.java"
>> version="6.0" changed to "1.4")
>>
>> I looked at the facets and decided it's worth it to start over with a new
>> maven2 project. I figured it may be easier since it is open source.
>>
>> I read at
>> http://www.mail-archive.com/user@struts.apache.org/msg71548.html
>> how to create a struts2-archetype-starter. I want the equivalent of
>> struts2-blank.
>>
>> I tried adding the remote catalog of
>> http://people.apache.org/builds/struts/2.0.14/m2-staging-repository . When I
>> try to verify the catalog, it says the catalog is empty.
>>
>> What do I use for a struts2 2.0.x maven2 project? Shall I just create a new
>> maven project, skip archetype selection, and ask it to create a war project
>> for me?
>>
>> What do you recommend at this point?
>>
>> Thanks,
>> Mike
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: maven2 and new struts 2 project
Posted by Wes Wannemacher <we...@wantii.com>.
I have been working off of s2.1.x, so I'm not sure if the same applies,
but I have a few reference projects up here for a book I'm working on -
http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk
I would think that you could grab one of those and change the version
numbers on the dependencies and get what you want. I have been working
on them with Eclipse WebTools (Ganymede) with the m2eclipse plugin.
One of the problems I had was that the Maven Archetypes for eclipse
aren't recognized as web apps. So, I had to hack around a bit in the
eclipse config files to get them to work.
Later, I figured out that if I just start a new Maven project that is a
web-app, from the stock web-app archetype from Maven, then just add
struts2, it works just fine. The downside to this approach is that you
have to change the web.xml that comes with the maven archetype for
web-apps since it defaults to something like Servlet 2.2...
Anyhow, go ahead and import ch01ex01 since it's the simplest one and
then build from there.
-Wes
On Sat, 2009-01-03 at 22:27 -0600, Michael Finney wrote:
> Hello,
>
> I was about to add to a small open source project of mine a maven dependency
> to (Display tag library 1.2) http://displaytag.sourceforge.net/1.2/
>
> When I tried to add this maven dependency, the eclipse/m2eclipse plug-in
> decided to change my facet JDK settings down to JDK1.4 (facet="jst.java"
> version="6.0" changed to "1.4")
>
> I looked at the facets and decided it's worth it to start over with a new
> maven2 project. I figured it may be easier since it is open source.
>
> I read at
> http://www.mail-archive.com/user@struts.apache.org/msg71548.html
> how to create a struts2-archetype-starter. I want the equivalent of
> struts2-blank.
>
> I tried adding the remote catalog of
> http://people.apache.org/builds/struts/2.0.14/m2-staging-repository . When I
> try to verify the catalog, it says the catalog is empty.
>
> What do I use for a struts2 2.0.x maven2 project? Shall I just create a new
> maven project, skip archetype selection, and ask it to create a war project
> for me?
>
> What do you recommend at this point?
>
> Thanks,
> Mike
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org