Commit 83ec16a4 authored by mindthegab's avatar mindthegab
Browse files
parent 573a8ee3
Loading
Loading
Loading
Loading
+14 −24
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="demoamp">
<!--
	Licensed to the Apache Software Foundation (ASF) under one or more
	contributor license agreements.  See the NOTICE file distributed with
	this work for additional information regarding copyright ownership.
	The ASF licenses this file to You under the Apache License, Version 2.0
	(the "License"); you may not use this file except in compliance with
	the License.  You may obtain a copy of the License at
	
	http://www.apache.org/licenses/LICENSE-2.0
	
	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
	
-->
<?xml version="1.0" encoding="UTF-8"?><archetype-descriptor name="test">
  <fileSets>
    <fileSet filtered="true" packaged="true" encoding="UTF-8">
    <fileSet filtered="false" packaged="true" encoding="UTF-8">
      <directory>src/main/java</directory>
      <includes>
        <include>**/*.java</include>
      </includes>
    </fileSet>
    <fileSet filtered="true" encoding="UTF-8">
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/main/webapp</directory>
      <includes>
        <include>**/*.txt</include>
        <include>**/*.jsp</include>
      </includes>
    </fileSet>
    <fileSet filtered="true" encoding="UTF-8">
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/main/config</directory>
      <includes>
        <include>**/*.xml</include>
        <include>**/*.properties</include>
      </includes>
    </fileSet>
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/main/resources</directory>
      <includes>
        <include>**/*.xml</include>
@@ -45,20 +35,20 @@
        <include>**/*.css</include>
      </includes>
    </fileSet>
    <fileSet filtered="true" encoding="UTF-8">
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/test/properties</directory>
      <includes>
        <include>**/*.properties</include>
      </includes>
    </fileSet>
    <fileSet filtered="true" encoding="UTF-8">
    <fileSet filtered="false" encoding="UTF-8">
      <directory>src/test/resources</directory>
      <includes>
        <include>**/*.xml</include>
        <include>**/*.properties</include>
      </includes>
    </fileSet>
    <fileSet filtered="true" encoding="UTF-8">
    <fileSet filtered="false" encoding="UTF-8">
      <directory></directory>
      <includes>
        <include>module.properties</include>
+5 −23
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--
	Licensed to the Apache Software Foundation (ASF) under one or more
	contributor license agreements.  See the NOTICE file distributed with
	this work for additional information regarding copyright ownership.
	The ASF licenses this file to You under the Apache License, Version 2.0
	(the "License"); you may not use this file except in compliance with
	the License.  You may obtain a copy of the License at
	
	http://www.apache.org/licenses/LICENSE-2.0
	
	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
	
-->
<archetype>
  <id>maven-alfresco-amp-archetype</id>
<?xml version="1.0" encoding="UTF-8"?><archetype>
  <id>test</id>
  <sources>
    <source>src/main/java/Demo.java</source>
    <source>src/main/java/DemoComponent.java</source>
  </sources>
  <resources>
    <resource>src/main/resources/alfresco/module/org.alfresco.module.demoamp/context/service-context.xml</resource>
    <resource>src/main/resources/alfresco/module/org.alfresco.module.demoamp/log4j.properties</resource>
    <resource>src/main/resources/alfresco/module/org.alfresco.module.demoamp/module-context.xml</resource>
    <resource>src/main/config/context/service-context.xml</resource>
    <resource>src/main/config/log4j.properties</resource>
    <resource>src/main/config/module-context.xml</resource>
    <resource>src/main/webapp/css/demoamp.css</resource>
    <resource>src/main/webapp/images/sourcesense.gif</resource>
    <resource>src/main/webapp/jsp/demoamp.jsp</resource>
+0 −8
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ Known Issues:


MAJOR:
- maven-amp-plugin filtering broken


MINOR:
@@ -30,13 +29,6 @@ file and not accepted by alfresco as valid module version number


TRIVIAL:
- Slighly different deployment for AMP and test WAR. In the test jetty
war java classes are *not* packed in the war as in the AMP specification,
but this *must* not have functional impacts on the application

IMPROVEMENTS:
- maven-amp-plugin is *heavily* redundant. must be simplified to package an 
amp and process overlays
- maven-amp-plugin could read maven dependencies and turn them into
module dependencies in module.properties
- maven-sql-plugin to autocreate jetty db
+0 −34
Original line number Diff line number Diff line
<?xml version='${version}' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!--
	Licensed to the Apache Software Foundation (ASF) under one or more
	contributor license agreements.  See the NOTICE file distributed with
	this work for additional information regarding copyright ownership.
	The ASF licenses this file to You under the Apache License, Version 2.0
	(the "License"); you may not use this file except in compliance with
	the License.  You may obtain a copy of the License at
	
	http://www.apache.org/licenses/LICENSE-2.0
	
	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
	
-->
<beans>
    
    <!-- A simple class that is initialized by Spring -->
    <bean id="${artifactId}.exampleBean" class="com.sourcesense.demoamp.Demo" init-method="init" />
    
    <!-- A simple module component that will be executed once -->
    <bean id="${artifactId}.exampleComponent" class="com.sourcesense.demoamp.DemoComponent" parent="module.baseComponent" >
        <property name="moduleId" value="${[pom.groupId}.${pom.artifactId}" />  <!-- See module.properties -->
        <property name="name" value="exampleComponent" />
        <property name="description" value="A demonstration component" />
        <property name="sinceVersion" value="2.0" />
        <property name="appliesFromVersion" value=".20x" />
    </bean>
    
</beans>
+0 −41
Original line number Diff line number Diff line
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
   #-----------------------------------------------------------------------
   # ${artifactId} module log4j.properties
   #
   #   NOTE
   #   ----
   #      Log4j uses the following logging levels:
   #      debug,info,warn,error,fatal
   #
   #      To set the logging level of {fullClassName} to {loglevel},
   #      add a line to this file of the following form:
   #   
   #               log4j.logger.{fullClassName}={loglevel}
   #
   #      For example, to make 'com.example.MyExample' produce 'debug'
   #      logs, add a line like this:
   #   
   #               log4j.logger.com.example.MyExample=debug
   #
   #
   #   WARNING
   #   -------
   #       Log properties in this log4j.properties file override/augment
   #       those in the webapp's main log4j.properties.
   #    
   #-----------------------------------------------------------------------
  
   log4j.logger.com.sourcesense.demoamp.DemoComponent=${module.log.level}
 No newline at end of file
Loading