aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2011-05-06 14:22:41 +0000
committerBrett Porter <brett@apache.org>2011-05-06 14:22:41 +0000
commitadcdfcf3bf6095b9a66feec2ef3ddd345d6d9a28 (patch)
tree1015960a120ebdf430d5ba613bbe1bfae226d9b9 /archiva-modules
parent3f96b9c2b6dd6dd0fb3cc81234ad4f435a1aee8a (diff)
downloadarchiva-adcdfcf3bf6095b9a66feec2ef3ddd345d6d9a28.tar.gz
archiva-adcdfcf3bf6095b9a66feec2ef3ddd345d6d9a28.zip
[MRM-1472] some cleanup based on Olivier's comments on the dev list to clarify how to get the tomcat plugin running
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1100227 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-applet/pom.xml22
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/pom.xml40
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml6
3 files changed, 4 insertions, 64 deletions
diff --git a/archiva-modules/archiva-web/archiva-applet/pom.xml b/archiva-modules/archiva-web/archiva-applet/pom.xml
index efcc4cfdd..5a317b861 100644
--- a/archiva-modules/archiva-web/archiva-applet/pom.xml
+++ b/archiva-modules/archiva-web/archiva-applet/pom.xml
@@ -86,26 +86,4 @@
</plugin>
</plugins>
</build>
- <profiles>
- <profile>
- <id>dev</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <executions>
- <execution>
- <id>jar-generate-for-dev</id>
- <phase>compile</phase>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
</project>
diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml
index c6f498122..a47f889c0 100644
--- a/archiva-modules/archiva-web/archiva-webapp/pom.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml
@@ -614,9 +614,6 @@
</goals>
<configuration>
<tasks>
-
- <copy overwrite="true" file="${basedir}/src/test/resources/log4j.xml" todir="${basedir}/src/main/webapp/WEB-INF/classes" />
-
<copy overwrite="true" file="${basedir}/src/test/resources/log4j.xml" todir="${project.build.directory}/classes" />
</tasks>
</configuration>
@@ -628,6 +625,7 @@
<artifactId>maven-dependency-plugin</artifactId>
<version>2.2</version>
<executions>
+ <!-- redefine to skip its execution in Tomcat -->
<execution>
<id>copy</id>
<phase>process-resources</phase>
@@ -647,6 +645,7 @@
</artifactItems>
</configuration>
</execution>
+ <!-- redefine to override exclude configuration (and add back struts-security.xml -->
<execution>
<id>unpack-redback-war</id>
<goals>
@@ -669,45 +668,14 @@
</execution>
</executions>
</plugin>
-
- <!--plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.5</version>
- <executions>
- <execution>
- <id>copy-redback-resources</id>
- <phase>compile</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.outputDirectory}</outputDirectory>
- <resources>
- <resource>
- <directory>${basedir}/src/main/webapp/WEB-INF/classes</directory>
- <filtering>false</filtering>
- <includes>
- <include>struts-security.xml</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin-->
</plugins>
</build>
<dependencies>
+ <!-- TODO: Bug in the Tomcat plugin - it doesn't seem to respect runtime dependencies, so we redeclare it as compile -->
<dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>metadata-store-file</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.redback</groupId>
- <artifactId>redback-struts2-integration</artifactId>
- <version>${redback.version}</version>
+ <scope>compile</scope>
</dependency>
</dependencies>
</profile>
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml
index b5275faa0..44c1f59ff 100644
--- a/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml
+++ b/archiva-modules/archiva-web/archiva-webapp/src/test/tomcat/tomcat-context-archiva.xml
@@ -24,12 +24,6 @@
driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
url="jdbc:derby:${catalina.base}/target/database/users;create=true"
/>
- <Resource name="jdbc/continuum" auth="Container" type="javax.sql.DataSource"
- username="sa"
- password=""
- driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
- url="jdbc:derby:${catalina.base}/target/database/continuum;create=true"
- />
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"
mail.smtp.host="localhost"/>