Maven + SVN + aplikacje webowa ?

0

Jak to wszystko połączyć.

Działają mi projekty tworzone osobno, np. ko<ort>ż</ort>ystające z samego SVN lub Mavena.

Ale jak daje aplikacje Mavena(i Web Application), to niewiem jakie tam ścieżki podać, bo nie chce mi zbudować NetBeans projektu ?

Mam tam podać np. https://localhost/aplikacja/trunk
czy w ogóle jak mam to zorganizować aby wszystko współpracowało

0

http://4programmers.net/java/maven - aplikacja webowa. Niech to plugin mavena zrobi za ciebie odpowiednie elementy potrzebne dla netbeansa a nie na odwrót.

0

No właśnie mam podobny problem.
Utworzyłem aplikację z Eclipse - Web application.
Używam w niej strut, potem dałem enable dependency management.
Maven przerzuł projekt, mam niby go mavenowy, ale jak daje package, to nie bierze pod uwagę katalogu Web-Content.
Jak na probe utworzylem w m2eclipse projekt z archtetypu web-app, to nie bierze mojego web.xml, chyba, ze mu na sile wpakuje do katalogu target...

To jest normalne?

0

Chodzi o ten plugin archetyp ?
Czy o jakiś inny ?

A jeśli tak to jak go zainstalować w mavenie ?
No i najważniejesze jak to niby maven ma zrobić wszystko dla netbeansa, bo szczerze mówiąc nie mam pojęcia co ma zrobić i jak ?

na razie moje doświadczenie z mavenen jest tylko poprzez NetBeansa!

0

@Black007, Należy umieścić w src/main/resources wszystko to co chcesz mieć w warze z aplikacją zachowując strukturę katalogu.

@Andrzew007, stwórz projekt webowy za pomocą mavena:

$ mvn archetype:generate
[WARNING] Not decrypting password for server 'artifactory' due to exception in s
ecurity handler.
Cause: null
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   StatsSecurity
[INFO]   StatsElixirWeb
[INFO]   StatsElixir
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from Wakaleo Repository
[INFO] org.apache.maven.plugins: checking for updates from gwt-maven
[INFO] org.codehaus.mojo: checking for updates from Wakaleo Repository
[INFO] org.codehaus.mojo: checking for updates from gwt-maven
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from Wakaleo Repository
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for up
dates from gwt-maven
[INFO] ------------------------------------------------------------------------
[INFO] Building StatsElixir
[INFO]    task-segment: [archetype:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.
archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: local -> maven-googlewebtoolkit2-archetype (Maven 2 Archetype for GWT-Maven)
2: local -> wctemplate-archetype (wctemplate-archetype)
3: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
4: internal -> appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
5: internal -> appfuse-basic-struts (AppFuse archetype for creating a web application with Hibernate, Spring and Struts 2)
6: internal -> appfuse-basic-tapestry (AppFuse archetype for creating a web application with Hibernate, Spring and Tapestry 4)
7: internal -> appfuse-core (AppFuse archetype for creating a jar application with Hibernate and Spring and XFire)
8: internal -> appfuse-modular-jsf (AppFuse archetype for creating a modular application with Hibernate, Spring and JSF)
9: internal -> appfuse-modular-spring (AppFuse archetype for creating a modularapplication with Hibernate, Spring and Spring MVC)
10: internal -> appfuse-modular-struts (AppFuse archetype for creating a modular application with Hibernate, Spring and Struts 2)
11: internal -> appfuse-modular-tapestry (AppFuse archetype for creating a modular application with Hibernate, Spring and Tapestry 4)
12: internal -> maven-archetype-j2ee-simple (A simple J2EE Java application)
13: internal -> maven-archetype-marmalade-mojo (A Maven plugin development project using marmalade)
14: internal -> maven-archetype-mojo (A Maven Java plugin development project)
15: internal -> maven-archetype-portlet (A simple portlet application)
16: internal -> maven-archetype-profiles ()
17: internal -> maven-archetype-quickstart ()
18: internal -> maven-archetype-site-simple (A simple site generation project)
19: internal -> maven-archetype-site (A more complex site project)
20: internal -> maven-archetype-webapp (A simple Java web application)
21: internal -> jini-service-archetype (Archetype for Jini service project creation)
22: internal -> softeu-archetype-seam (JSF+Facelets+Seam Archetype)
23: internal -> softeu-archetype-seam-simple (JSF+Facelets+Seam (no persistence) Archetype)
24: internal -> softeu-archetype-jsf (JSF+Facelets Archetype)
25: internal -> jpa-maven-archetype (JPA application)
26: internal -> spring-osgi-bundle-archetype (Spring-OSGi archetype)
27: internal -> confluence-plugin-archetype (Atlassian Confluence plugin archetype)
28: internal -> jira-plugin-archetype (Atlassian JIRA plugin archetype)
29: internal -> maven-archetype-har (Hibernate Archive)
30: internal -> maven-archetype-sar (JBoss Service Archive)
31: internal -> wicket-archetype-quickstart (A simple Apache Wicket project)
32: internal -> scala-archetype-simple (A simple scala project)
33: internal -> lift-archetype-blank (A blank/empty liftweb project)
34: internal -> lift-archetype-basic (The basic (liftweb) project)
35: internal -> cocoon-22-archetype-block-plain ([http://cocoon.apache.org/2.2/maven-plugins/])
36: internal -> cocoon-22-archetype-block ([http://cocoon.apache.org/2.2/maven-plugins/])
37: internal -> cocoon-22-archetype-webapp ([http://cocoon.apache.org/2.2/maven-plugins/])
38: internal -> myfaces-archetype-helloworld (A simple archetype using MyFaces)
39: internal -> myfaces-archetype-helloworld-facelets (A simple archetype usingMyFaces and facelets)
40: internal -> myfaces-archetype-trinidad (A simple archetype using Myfaces and Trinidad)
41: internal -> myfaces-archetype-jsfcomponents (A simple archetype for create custom JSF components using MyFaces)
42: internal -> gmaven-archetype-basic (Groovy basic archetype)
43: internal -> gmaven-archetype-mojo (Groovy mojo archetype)
Choose a number:  (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/2
4/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43) 17: :

Wybierasz w tym przypadku 20 podajesz groupId i archetypeId oraz version i package. Następnie wchodzisz do projektu i

$ mvn nbm:nbm

importujesz do NB. Gotowe.

0

Cześć Koziołek, właśnie tak zrobiłem i też nic nie dało
zobacz tu: http://4programmers.net/Forum/viewtopic.php?id=156954
No po prostu masakra w tej chwili mam tak, że mam jeden projekt webowy eclipse'a a jeden zwykly projekt mavenowy, jak chce debugowac w eclipsie, to sobie odpalam ten eclipsowy, a jak chce zbudowac wara, to kopiuje rzeczy do mavenowego i daje mvn package.

1 użytkowników online, w tym zalogowanych: 0, gości: 1