You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by james agada <ok...@gmail.com> on 2013/08/15 18:53:46 UTC

upgrade to 1.2

Does maven upgrade the quickstart archetype automatically?

Re: upgrade to 1.2

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
I've just sent you a gtalk invitation; let's see if we can resolve this
offline.

Dan




On 19 August 2013 23:34, james agada <ok...@gmail.com> wrote:

> Thaks for the help. I did exactly that and I am still not getting the
> @MemberGroupLayout to work. Here is the output of mvn clean install
> [INFO] Scanning for projects...
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model
> for
>
> org.apache.isis.example.application:quickstart_wicket_restful_jdo-dom:jar:1.0.4-SNAPSHOT
> [WARNING] 'dependencies.dependency.scope' for
> org.apache.isis.core:isis-core-unittestsupport:jar must be one of
> [provided, compile, runtime, test, system] but is 'true'. @ line 114,
> column 20
> [WARNING]
> [WARNING] Some problems were encountered while building the effective model
> for
>
> org.apache.isis.example.application:quickstart_wicket_restful_jdo-webapp:war:1.0.4-SNAPSHOT
> [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-war-plugin is missing. @ line 92, column 21
> [WARNING]
> [WARNING] It is highly recommended to fix these problems because they
> threaten the stability of your build.
> [WARNING]
> [WARNING] For this reason, future Maven versions might no longer support
> building such malformed projects.
> [WARNING]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] Quickstart Wicket/Restful/JDO App
> [INFO] Quickstart Wicket/Restful/JDO DOM
> [INFO] Quickstart Wicket/Restful/JDO Fixtures
> [INFO] Quickstart Wicket/Restful/JDO Integration Tests
> [INFO] Quickstart Wicket/Restful/JDO Webapp
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Quickstart Wicket/Restful/JDO App 1.0.4-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
> quickstart_wicket_restful_jdo ---
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> quickstart_wicket_restful_jdo ---
> [INFO] Installing /Users/jamesagada/voucher/pom.xml to
>
> /Users/jamesagada/.m2/repository/org/apache/isis/example/application/quickstart_wicket_restful_jdo/1.0.4-SNAPSHOT/quickstart_wicket_restful_jdo-1.0.4-SNAPSHOT.pom
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Quickstart Wicket/Restful/JDO DOM 1.0.4-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
> quickstart_wicket_restful_jdo-dom ---
> [INFO] Deleting /Users/jamesagada/voucher/dom/target
> [INFO]
> [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
> quickstart_wicket_restful_jdo-dom ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @
> quickstart_wicket_restful_jdo-dom ---
> [INFO] Compiling 19 source files to
> /Users/jamesagada/voucher/dom/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR]
>
> /Users/jamesagada/voucher/dom/src/main/java/dom/todo/Transaction.java:[82,5]
> cannot find symbol
> symbol: class MemberGroupLayout
>     @MemberGroupLayout( columnSpans = {3,6,3,0}, left = "General",
> middle="Transaction",right="Ticket" )
>
> [INFO] 1error
> [INFO] -------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Quickstart Wicket/Restful/JDO App ................. SUCCESS [0.960s]
> [INFO] Quickstart Wicket/Restful/JDO DOM ................. FAILURE [3.558s]
> [INFO] Quickstart Wicket/Restful/JDO Fixtures ............ SKIPPED
> [INFO] Quickstart Wicket/Restful/JDO Integration Tests ... SKIPPED
> [INFO] Quickstart Wicket/Restful/JDO Webapp .............. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5.565s
> [INFO] Finished at: Mon Aug 19 23:28:35 WAT 2013
> [INFO] Final Memory: 10M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
> (default-compile) on project quickstart_wicket_restful_jdo-dom: Compilation
> failure
> [ERROR]
>
> /Users/jamesagada/voucher/dom/src/main/java/dom/todo/Transaction.java:[82,5]
> cannot find symbol
> [ERROR] symbol: class MemberGroupLayout
> [ERROR] @MemberGroupLayout( columnSpans = {3,6,3,0}, left = "General",
> middle="Transaction",right="Ticket" )
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :quickstart_wicket_restful_jdo-dom
>
>
> Here is the pom.xml
> <?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.
> -->
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>     <modelVersion>4.0.0</modelVersion>
>
>     <groupId>org.apache.isis.example.application</groupId>
>     <artifactId>quickstart_wicket_restful_jdo</artifactId>
>     <version>1.0.4-SNAPSHOT</version>
>
>     <name>Quickstart Wicket/Restful/JDO App</name>
>
>     <packaging>pom</packaging>
>
> <properties>
>         <isis.version>1.3.0-SNAPSHOT</isis.version>
> <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
>
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
>
>         <!-- must be consistent with the version defined by the JDO
> Objecstore -->
>         <datanucleus-core.version>3.2.4</datanucleus-core.version>
>
>         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>
> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
> </properties>
>
>     <repositories>
>         <repository>
>               <id>apache.snapshots</id>
>               <name>Apache Snapshots</name>
>               <url>
> https://repository.apache.org/content/repositories/snapshots/</url>
>               <releases>
>                   <enabled>false</enabled>
>               </releases>
>               <snapshots>
>                   <enabled>true</enabled>
>               </snapshots>
>           </repository>
>     </repositories>
>
>     <build>
>         <pluginManagement>
>             <plugins>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-compiler-plugin</artifactId>
>                     <version>2.3.1</version>
>                     <configuration>
>                         <source>1.6</source>
>                         <target>1.6</target>
>                     </configuration>
>                     <executions>
>                         <execution>
>                             <id>source</id>
>                             <phase>compile</phase>
>                         </execution>
>                         <execution>
>                             <id>test</id>
>                             <phase>test-compile</phase>
>                         </execution>
>                     </executions>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-surefire-plugin</artifactId>
>                     <version>2.10</version>
>                     <configuration>
>                         <includes>
>                             <include>**/*Test.java</include>
>                             <include>**/*Test_*.java</include>
>                             <include>**/*Spec*.java</include>
>                         </includes>
>                         <excludes>
>                             <exclude>**/Test*.java</exclude>
>                             <exclude>**/*ForTesting.java</exclude>
>                             <exclude>**/*Abstract*.java</exclude>
>                         </excludes>
>                         <useFile>true</useFile>
>                         <printSummary>true</printSummary>
>
>
> <outputDirectory>${project.build.directory}/surefire-reports</outputDirectory>
>                     </configuration>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-surefire-report-plugin</artifactId>
>                     <version>2.10</version>
>                     <configuration>
>                         <includes>
>                             <include>**/*Test.java</include>
>                             <include>**/*Test_*.java</include>
>                             <include>**/*Spec*.java</include>
>                         </includes>
>                         <excludes>
>                             <exclude>**/Test*.java</exclude>
>                             <exclude>**/*ForTesting.java</exclude>
>                             <exclude>**/*Abstract*.java</exclude>
>                         </excludes>
>                         <showSuccess>false</showSuccess>
>                     </configuration>
>                     <executions>
>                         <execution>
>                             <phase>test</phase>
>                         </execution>
>                     </executions>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.mortbay.jetty</groupId>
>                     <artifactId>maven-jetty-plugin</artifactId>
>                     <version>6.1.25</version>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-shade-plugin</artifactId>
>                     <version>1.4</version>
>                 </plugin>
>
>                 <plugin>
>                     <groupId>org.apache.maven.plugins</groupId>
>                     <artifactId>maven-antrun-plugin</artifactId>
>                     <version>1.6</version>
>                     <executions>
>                         <execution>
>                             <goals>
>                                 <goal>run</goal>
>                             </goals>
>                         </execution>
>                     </executions>
>                 </plugin>
>                 <!--
> http://simplericity.com/2009/11/10/1257880778509.html-->
>                 <plugin>
>                     <groupId>org.simplericity.jettyconsole</groupId>
>                     <artifactId>jetty-console-maven-plugin</artifactId>
>                     <version>1.43</version>
>                 </plugin>
>
>                 <!-- Apache Release Audit Tool -->
>                 <plugin>
>                     <groupId>org.apache.rat</groupId>
>                     <artifactId>apache-rat-plugin</artifactId>
>                     <version>0.8</version>
>                     <configuration>
>
> <addDefaultLicenseMatchers>true</addDefaultLicenseMatchers>
>                         <excludeSubProjects>true</excludeSubProjects>
>                         <excludes>
>                             <exclude>**/target/**</exclude>
>                             <exclude>**/target-ide/**</exclude>
>
>                             <exclude>**/*.project</exclude>
>                             <exclude>**/.classpath</exclude>
>                             <exclude>**/.settings/**</exclude>
>                             <exclude>**/*.launch</exclude>
>
> <exclude>src/site/resources/ide/eclipse/**</exclude>
>
>                             <exclude>**/*.gitignore</exclude>
>                             <exclude>**/*.log</exclude>
>                             <exclude>**/*.pdn</exclude>
>                             <exclude>**/*.svg</exclude>
>                             <exclude>**/*.json</exclude>
>                             <exclude>**/*.min.js</exclude>
>                             <exclude>**/*.js</exclude>
>                         </excludes>
>                         <licenses>
>                           <license
> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
>                             <licenseFamilyCategory>AL2
>  </licenseFamilyCategory>
>                             <licenseFamilyName>Apache License
> 2.0</licenseFamilyName>
>                             <notes />
>                             <patterns>
>                               <pattern>Licensed to the Apache Software
> Foundation (ASF) under one</pattern>
>                             </patterns>
>                           </license>
>                           <license
> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
>
> <licenseFamilyCategory>JQRY</licenseFamilyCategory>
>                             <licenseFamilyName>MIT  </licenseFamilyName>
>                             <notes />
>                             <patterns>
>                               <pattern>Dual licensed under the MIT or GPL
> Version 2 licenses.</pattern>
>                             </patterns>
>                           </license>
>                           <license
> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
>
> <licenseFamilyCategory>JMOCK</licenseFamilyCategory>
>                             <licenseFamilyName>JMock</licenseFamilyName>
>                             <notes />
>                             <patterns>
>                               <pattern>Copyright (c) 2000-2007,
> jMock.org</pattern>
>                             </patterns>
>                           </license>
>                           <license
> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
>
> <licenseFamilyCategory>DOCBK</licenseFamilyCategory>
>                             <licenseFamilyName>DocBook
> 4.5</licenseFamilyName>
>                             <notes />
>                             <patterns>
>                               <pattern>Permission to copy in any form is
> granted for use</pattern>
>                               <pattern>Permission to use, copy, modify and
> distribute the DocBook DTD</pattern>
>                               <pattern>is hereby granted in perpetuity,
> provided that the above copyright</pattern>
>                               <pattern>This is the catalog data file for
> DocBook XML V4.5. It is provided as</pattern>
>                               <pattern>XML Catalog data for DocBook XML
> V4.5</pattern>
>                               <pattern>DocBook additional general entities
> V4.5</pattern>
>                               <pattern>XML EXCHANGE TABLE MODEL DECLARATION
> MODULE</pattern>
>                             </patterns>
>                           </license>
>                           <license
> implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
>                             <licenseFamilyCategory>W3C
>  </licenseFamilyCategory>
>                             <licenseFamilyName>XHTML</licenseFamilyName>
>                             <notes />
>                             <patterns>
>                               <pattern>Copyright (c) 1998-2002 W3C (MIT,
> INRIA, Keio),</pattern>
>                             </patterns>
>                           </license>
>                         </licenses>
>                         <licenseFamilies>
>                           <licenseFamily
> implementation="org.apache.rat.license.SimpleLicenseFamily">
>                             <familyName>Apache License 2.0</familyName>
>                           </licenseFamily>
>                           <licenseFamily
> implementation="org.apache.rat.license.SimpleLicenseFamily">
>                             <familyName>MIT</familyName>
>                           </licenseFamily>
>                           <licenseFamily
> implementation="org.apache.rat.license.SimpleLicenseFamily">
>                             <familyName>JMock</familyName>
>                           </licenseFamily>
>                           <licenseFamily
> implementation="org.apache.rat.license.SimpleLicenseFamily">
>                             <familyName>DocBook 4.5</familyName>
>                           </licenseFamily>
>                           <licenseFamily
> implementation="org.apache.rat.license.SimpleLicenseFamily">
>                             <familyName>XHTML</familyName>
>                           </licenseFamily>
>                         </licenseFamilies>
>                     </configuration>
>                 </plugin>
>             </plugins>
>         </pluginManagement>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-compiler-plugin</artifactId>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-report-plugin</artifactId>
>             </plugin>
>         </plugins>
>     </build>
>
>     <modules>
>         <module>dom</module>
>         <module>fixture</module>
>         <module>integtests</module>
>         <module>webapp</module>
>     </modules>
>     <dependencyManagement>
>         <dependencies>
>
> <dependency>
> <groupId>org.apache.isis.core</groupId>
> <artifactId>isis</artifactId>
> <version>${isis.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.isis.objectstore</groupId>
> <artifactId>isis-objectstore-jdo</artifactId>
> <version>${isis-objectstore-jdo.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.isis.viewer</groupId>
> <artifactId>isis-viewer-wicket</artifactId>
> <version>${isis-viewer-wicket.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.isis.viewer</groupId>
> <artifactId>isis-viewer-restfulobjects</artifactId>
> <version>${isis-viewer-restfulobjects.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
>
> <dependency>
> <groupId>org.apache.isis.security</groupId>
> <artifactId>isis-security-shiro</artifactId>
> <version>${isis-security-shiro.version}</version>
> <type>pom</type>
> <scope>import</scope>
> </dependency>
>
>
>             <!-- this project's own modules -->
>             <dependency>
>                 <groupId>${project.groupId}</groupId>
>                 <artifactId>quickstart_wicket_restful_jdo-dom</artifactId>
>                 <version>${project.version}</version>
>             </dependency>
>             <dependency>
>                 <groupId>${project.groupId}</groupId>
>
> <artifactId>quickstart_wicket_restful_jdo-fixture</artifactId>
>                 <version>${project.version}</version>
>             </dependency>
>             <dependency>
>                 <groupId>${project.groupId}</groupId>
>
> <artifactId>quickstart_wicket_restful_jdo-webapp</artifactId>
>                 <version>${project.version}</version>
>             </dependency>
>
>
>             <!-- 3rd party extensions -->
>
>             <!--
>             GMAP3: uncomment to use
> https://github.com/danhaywood/isis-wicket-gmap3
>             <dependency>
>                 <groupId>com.danhaywood.isis.wicket</groupId>
>                 <artifactId>danhaywood-isis-wicket-gmap3</artifactId>
>                 <version>1.2.0</version>
>                 <type>pom</type>
>                 <scope>import</scope>
>             </dependency>
>             -->
>
>             <!--
>             WICKEDCHARTS: uncomment to use
> https://github.com/danhaywood/isis-wicket-wickedcharts
>             <dependency>
>                 <groupId>com.danhaywood.isis.wicket</groupId>
>
> <artifactId>danhaywood-isis-wicket-wickedcharts</artifactId>
>                 <version>1.2.0</version>
>                 <type>pom</type>
>                 <scope>import</scope>
>             </dependency>
>             -->
>
>             <!--
>             EXCEL: uncomment to use
> https://github.com/danhaywood/isis-wicket-excel
>             <dependency>
>                 <groupId>com.danhaywood.isis.wicket</groupId>
>                 <artifactId>danhaywood-isis-wicket-excel</artifactId>
>                 <version>1.2.0</version>
>             </dependency>
>             -->
>
>             <!--
>             FULLCALENDAR: uncomment to use
> https://github.com/danhaywood/isis-wicket-fullcalendar
>             <dependency>
>                 <groupId>com.danhaywood.isis.wicket</groupId>
>
> <artifactId>danhaywood-isis-wicket-fullcalendar</artifactId>
>                 <version>1.2.0</version>
>             </dependency>
>             -->
>
>         </dependencies>
>     </dependencyManagement>
>
>
>     <profiles>
>         <profile>
>             <id>m2e</id>
>             <activation>
>                 <property>
>                     <name>m2e.version</name>
>                 </property>
>             </activation>
>             <build>
>                 <directory>target-ide</directory>
>             </build>
>         </profile>
>     </profiles>
>
> </project>
>
>
> and here is the entity  declaration (just the initial lines)
> package dom.todo;
>
> import java.math.BigDecimal;
> import java.math.RoundingMode;
> import java.util.List;
> import java.util.SortedSet;
> import java.util.TreeSet;
>
> import javax.jdo.JDOHelper;
> import javax.jdo.annotations.Column;
> import javax.jdo.annotations.IdentityType;
> import javax.jdo.annotations.VersionStrategy;
> import javax.jdo.spi.PersistenceCapable;
>
> import com.google.common.base.Objects;
> import com.google.common.collect.Lists;
>
> import org.joda.time.LocalDate;
>
> import org.apache.isis.applib.DomainObjectContainer;
> import org.apache.isis.applib.annotation.Audited;
> import org.apache.isis.applib.annotation.AutoComplete;
> import org.apache.isis.applib.annotation.Bookmarkable;
> import org.apache.isis.applib.annotation.Bulk;
> import org.apache.isis.applib.annotation.Disabled;
> import org.apache.isis.applib.annotation.Hidden;
> import org.apache.isis.applib.annotation.MemberGroups;
> import org.apache.isis.applib.annotation.MemberOrder;
> import org.apache.isis.applib.annotation.MultiLine;
> import org.apache.isis.applib.annotation.Named;
> import org.apache.isis.applib.annotation.NotPersisted;
> import org.apache.isis.applib.annotation.ObjectType;
> import org.apache.isis.applib.annotation.Optional;
> import org.apache.isis.applib.annotation.Programmatic;
> import org.apache.isis.applib.annotation.PublishedAction;
> import org.apache.isis.applib.annotation.PublishedObject;
> import org.apache.isis.applib.annotation.RegEx;
> import org.apache.isis.applib.annotation.Render;
> import org.apache.isis.applib.annotation.Render.Type;
> import org.apache.isis.applib.annotation.Where;
> import org.apache.isis.applib.clock.Clock;
> import org.apache.isis.applib.filter.Filter;
> import org.apache.isis.applib.filter.Filters;
> import org.apache.isis.applib.util.TitleBuffer;
> import org.apache.isis.applib.value.Blob;
>
>
> @javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
>
> @javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
> @javax.jdo.annotations.Queries( {
>     @javax.jdo.annotations.Query(
>             name="TransactionsForTicket", language="JDOQL",
>             value="SELECT FROM dom.todo.Transaction WHERE voucherCode ==
> :voucherCode && serialNumber == :serialNumber"),
>     @javax.jdo.annotations.Query(
>             name="TransactionsForParty", language="JDOQL",
>             value="SELECT FROM dom.todo.Transaction WHERE fromParty ==
> :party || toParty == :party")
> })
> @javax.jdo.annotations.Version(strategy=VersionStrategy.VERSION_NUMBER,
> column="VERSION")
>
>  @javax.jdo.annotations.Unique(name="Transaction_description_must_be_unique",
> members={"ownedBy","fromParty","toParty","transactionDate",
> "sku","serialNumber","voucherCode"})
> @ObjectType("Transaction")
> @Audited
> //@PublishedObject(VoucherDenominationChangedPayloadFactory.class)
> @AutoComplete(repository=Ticket.class, action="autoCompleteTransaction")
>     // @MemberGroups({"General","Transaction","Ticket"})
>     @MemberGroupLayout( columnSpans = {3,6,3,0}, left = "General",
> middle="Transaction",right="Ticket" )
> @Bookmarkable
> public class Transaction  /*, Locatable*/ { // GMAP3: uncomment to use
> https://github.com/danhaywood/isis-wicket-gmap3
>
>
>
> On Mon, Aug 19, 2013 at 11:15 PM, Dan Haywood
> <da...@haywood-associates.co.uk>wrote:
>
> > On 19 August 2013 23:08, james agada <ok...@gmail.com> wrote:
> >
> > > Kindly explain to me how to do this. I have built isis from source. I
> now
> > > want to use the new modules. Do i just make the modifications to my app
> > > root or do i need to recreate the quick start with the mvn
> > > archetype:generate command? Sorry I am not very good with Maven.
> > >
> >
> > No worries.
> >
> > You just need to edit your existing root pom.xml with the properties I
> > listed:
> >
> >         <isis.version>1.3.0-SNAPSHOT</isis.version>
> >
> >
>  <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> > <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
> >
> >
> >
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> >  <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
> >
> > Then you should be able to recompile and run your app against your
> locally
> > built Isis.
> >
> > That said, it is possible that some of the integration tests in your app
> > may not compile; we've done quite a bit of work in this area in the last
> > few months.  If you are still just exploring and haven't written much new
> > stuff, you might well find it easier to instead just take a copy of the
> > example/application/quickstart_wicket_restful_jdo  project (which you'll
> > recognize as the same application as the one that the archetype
> generates),
> > and copy your own stuff into the dom project.
> >
> > On the other hand, if you've done quite a bit of work and don't want to
> > start over, then the easiest is probably to exclude the integration tests
> > from your current project.  You can do that by commenting out the
> > <module>integtests</module> tag in your root pom.xml.
> >
> > Let me know if you get stuck or need more help.
> >
> > Dan
> >
> >
> >
> > >
> > >
> > > On Thu, Aug 15, 2013 at 6:27 PM, james agada <ok...@gmail.com>
> > wrote:
> > >
> > > > Ok
> > > >
> > > > Sent from my iPhone
> > > >
> > > > On Aug 15, 2013, at 6:07 PM, Dan Haywood <
> dan@haywood-associates.co.uk
> > >
> > > > wrote:
> > > >
> > > > > No.  We only upgrade the quickstart archetype at release time.
> > > > >
> > > > > However, if you are building Isis from source [1], then you can
> edit
> > > the
> > > > > generated quickstart app to reference the snapshot versions of the
> > Isis
> > > > > modules.  Locate the root pom.xml of your app, and edit the
> > properties,
> > > > eg:
> > > > >
> > > > >        <isis.version>1.3.0-SNAPSHOT</isis.version>
> > > > >
> > > >
> > >
> >
> <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> > > > >
> > <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
> > > > >
> > > >
> > >
> >
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> > > > > <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
> > > > >        ...
> > > > >
> > > > > HTH
> > > > > Dan
> > > > >
> > > > > [1] http://isis.staging.apache.org/contributors/building-isis.html
> > > > >
> > > > >
> > > > >
> > > > > On 15 August 2013 17:53, james agada <ok...@gmail.com> wrote:
> > > > >
> > > > >> Does maven upgrade the quickstart archetype automatically?
> > > > >>
> > > >
> > >
> >
>

Re: upgrade to 1.2

Posted by james agada <ok...@gmail.com>.
Thaks for the help. I did exactly that and I am still not getting the
@MemberGroupLayout to work. Here is the output of mvn clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
org.apache.isis.example.application:quickstart_wicket_restful_jdo-dom:jar:1.0.4-SNAPSHOT
[WARNING] 'dependencies.dependency.scope' for
org.apache.isis.core:isis-core-unittestsupport:jar must be one of
[provided, compile, runtime, test, system] but is 'true'. @ line 114,
column 20
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for
org.apache.isis.example.application:quickstart_wicket_restful_jdo-webapp:war:1.0.4-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-war-plugin is missing. @ line 92, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Quickstart Wicket/Restful/JDO App
[INFO] Quickstart Wicket/Restful/JDO DOM
[INFO] Quickstart Wicket/Restful/JDO Fixtures
[INFO] Quickstart Wicket/Restful/JDO Integration Tests
[INFO] Quickstart Wicket/Restful/JDO Webapp
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building Quickstart Wicket/Restful/JDO App 1.0.4-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
quickstart_wicket_restful_jdo ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
quickstart_wicket_restful_jdo ---
[INFO] Installing /Users/jamesagada/voucher/pom.xml to
/Users/jamesagada/.m2/repository/org/apache/isis/example/application/quickstart_wicket_restful_jdo/1.0.4-SNAPSHOT/quickstart_wicket_restful_jdo-1.0.4-SNAPSHOT.pom
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building Quickstart Wicket/Restful/JDO DOM 1.0.4-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @
quickstart_wicket_restful_jdo-dom ---
[INFO] Deleting /Users/jamesagada/voucher/dom/target
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
quickstart_wicket_restful_jdo-dom ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @
quickstart_wicket_restful_jdo-dom ---
[INFO] Compiling 19 source files to
/Users/jamesagada/voucher/dom/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/jamesagada/voucher/dom/src/main/java/dom/todo/Transaction.java:[82,5]
cannot find symbol
symbol: class MemberGroupLayout
    @MemberGroupLayout( columnSpans = {3,6,3,0}, left = "General",
middle="Transaction",right="Ticket" )

[INFO] 1error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Quickstart Wicket/Restful/JDO App ................. SUCCESS [0.960s]
[INFO] Quickstart Wicket/Restful/JDO DOM ................. FAILURE [3.558s]
[INFO] Quickstart Wicket/Restful/JDO Fixtures ............ SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Integration Tests ... SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Webapp .............. SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5.565s
[INFO] Finished at: Mon Aug 19 23:28:35 WAT 2013
[INFO] Final Memory: 10M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile
(default-compile) on project quickstart_wicket_restful_jdo-dom: Compilation
failure
[ERROR]
/Users/jamesagada/voucher/dom/src/main/java/dom/todo/Transaction.java:[82,5]
cannot find symbol
[ERROR] symbol: class MemberGroupLayout
[ERROR] @MemberGroupLayout( columnSpans = {3,6,3,0}, left = "General",
middle="Transaction",right="Ticket" )
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :quickstart_wicket_restful_jdo-dom


Here is the pom.xml
<?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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.apache.isis.example.application</groupId>
    <artifactId>quickstart_wicket_restful_jdo</artifactId>
    <version>1.0.4-SNAPSHOT</version>

    <name>Quickstart Wicket/Restful/JDO App</name>

    <packaging>pom</packaging>

<properties>
        <isis.version>1.3.0-SNAPSHOT</isis.version>
<isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
<isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
<isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
<isis-security-shiro.version>1.1.1</isis-security-shiro.version>

        <!-- must be consistent with the version defined by the JDO
Objecstore -->
        <datanucleus-core.version>3.2.4</datanucleus-core.version>

        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

    <repositories>
        <repository>
              <id>apache.snapshots</id>
              <name>Apache Snapshots</name>
              <url>
https://repository.apache.org/content/repositories/snapshots/</url>
              <releases>
                  <enabled>false</enabled>
              </releases>
              <snapshots>
                  <enabled>true</enabled>
              </snapshots>
          </repository>
    </repositories>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.3.1</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                    <executions>
                        <execution>
                            <id>source</id>
                            <phase>compile</phase>
                        </execution>
                        <execution>
                            <id>test</id>
                            <phase>test-compile</phase>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>2.10</version>
                    <configuration>
                        <includes>
                            <include>**/*Test.java</include>
                            <include>**/*Test_*.java</include>
                            <include>**/*Spec*.java</include>
                        </includes>
                        <excludes>
                            <exclude>**/Test*.java</exclude>
                            <exclude>**/*ForTesting.java</exclude>
                            <exclude>**/*Abstract*.java</exclude>
                        </excludes>
                        <useFile>true</useFile>
                        <printSummary>true</printSummary>

<outputDirectory>${project.build.directory}/surefire-reports</outputDirectory>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-report-plugin</artifactId>
                    <version>2.10</version>
                    <configuration>
                        <includes>
                            <include>**/*Test.java</include>
                            <include>**/*Test_*.java</include>
                            <include>**/*Spec*.java</include>
                        </includes>
                        <excludes>
                            <exclude>**/Test*.java</exclude>
                            <exclude>**/*ForTesting.java</exclude>
                            <exclude>**/*Abstract*.java</exclude>
                        </excludes>
                        <showSuccess>false</showSuccess>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>test</phase>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <groupId>org.mortbay.jetty</groupId>
                    <artifactId>maven-jetty-plugin</artifactId>
                    <version>6.1.25</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>1.4</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>1.6</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>run</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <!-- http://simplericity.com/2009/11/10/1257880778509.html-->
                <plugin>
                    <groupId>org.simplericity.jettyconsole</groupId>
                    <artifactId>jetty-console-maven-plugin</artifactId>
                    <version>1.43</version>
                </plugin>

                <!-- Apache Release Audit Tool -->
                <plugin>
                    <groupId>org.apache.rat</groupId>
                    <artifactId>apache-rat-plugin</artifactId>
                    <version>0.8</version>
                    <configuration>

<addDefaultLicenseMatchers>true</addDefaultLicenseMatchers>
                        <excludeSubProjects>true</excludeSubProjects>
                        <excludes>
                            <exclude>**/target/**</exclude>
                            <exclude>**/target-ide/**</exclude>

                            <exclude>**/*.project</exclude>
                            <exclude>**/.classpath</exclude>
                            <exclude>**/.settings/**</exclude>
                            <exclude>**/*.launch</exclude>

<exclude>src/site/resources/ide/eclipse/**</exclude>

                            <exclude>**/*.gitignore</exclude>
                            <exclude>**/*.log</exclude>
                            <exclude>**/*.pdn</exclude>
                            <exclude>**/*.svg</exclude>
                            <exclude>**/*.json</exclude>
                            <exclude>**/*.min.js</exclude>
                            <exclude>**/*.js</exclude>
                        </excludes>
                        <licenses>
                          <license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
                            <licenseFamilyCategory>AL2
 </licenseFamilyCategory>
                            <licenseFamilyName>Apache License
2.0</licenseFamilyName>
                            <notes />
                            <patterns>
                              <pattern>Licensed to the Apache Software
Foundation (ASF) under one</pattern>
                            </patterns>
                          </license>
                          <license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">

<licenseFamilyCategory>JQRY</licenseFamilyCategory>
                            <licenseFamilyName>MIT  </licenseFamilyName>
                            <notes />
                            <patterns>
                              <pattern>Dual licensed under the MIT or GPL
Version 2 licenses.</pattern>
                            </patterns>
                          </license>
                          <license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">

<licenseFamilyCategory>JMOCK</licenseFamilyCategory>
                            <licenseFamilyName>JMock</licenseFamilyName>
                            <notes />
                            <patterns>
                              <pattern>Copyright (c) 2000-2007,
jMock.org</pattern>
                            </patterns>
                          </license>
                          <license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">

<licenseFamilyCategory>DOCBK</licenseFamilyCategory>
                            <licenseFamilyName>DocBook
4.5</licenseFamilyName>
                            <notes />
                            <patterns>
                              <pattern>Permission to copy in any form is
granted for use</pattern>
                              <pattern>Permission to use, copy, modify and
distribute the DocBook DTD</pattern>
                              <pattern>is hereby granted in perpetuity,
provided that the above copyright</pattern>
                              <pattern>This is the catalog data file for
DocBook XML V4.5. It is provided as</pattern>
                              <pattern>XML Catalog data for DocBook XML
V4.5</pattern>
                              <pattern>DocBook additional general entities
V4.5</pattern>
                              <pattern>XML EXCHANGE TABLE MODEL DECLARATION
MODULE</pattern>
                            </patterns>
                          </license>
                          <license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
                            <licenseFamilyCategory>W3C
 </licenseFamilyCategory>
                            <licenseFamilyName>XHTML</licenseFamilyName>
                            <notes />
                            <patterns>
                              <pattern>Copyright (c) 1998-2002 W3C (MIT,
INRIA, Keio),</pattern>
                            </patterns>
                          </license>
                        </licenses>
                        <licenseFamilies>
                          <licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
                            <familyName>Apache License 2.0</familyName>
                          </licenseFamily>
                          <licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
                            <familyName>MIT</familyName>
                          </licenseFamily>
                          <licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
                            <familyName>JMock</familyName>
                          </licenseFamily>
                          <licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
                            <familyName>DocBook 4.5</familyName>
                          </licenseFamily>
                          <licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
                            <familyName>XHTML</familyName>
                          </licenseFamily>
                        </licenseFamilies>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <modules>
        <module>dom</module>
        <module>fixture</module>
        <module>integtests</module>
        <module>webapp</module>
    </modules>
    <dependencyManagement>
        <dependencies>

<dependency>
<groupId>org.apache.isis.core</groupId>
<artifactId>isis</artifactId>
<version>${isis.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.apache.isis.objectstore</groupId>
<artifactId>isis-objectstore-jdo</artifactId>
<version>${isis-objectstore-jdo.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.apache.isis.viewer</groupId>
<artifactId>isis-viewer-wicket</artifactId>
<version>${isis-viewer-wicket.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.apache.isis.viewer</groupId>
<artifactId>isis-viewer-restfulobjects</artifactId>
<version>${isis-viewer-restfulobjects.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.apache.isis.security</groupId>
<artifactId>isis-security-shiro</artifactId>
<version>${isis-security-shiro.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>


            <!-- this project's own modules -->
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>quickstart_wicket_restful_jdo-dom</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>

<artifactId>quickstart_wicket_restful_jdo-fixture</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>

<artifactId>quickstart_wicket_restful_jdo-webapp</artifactId>
                <version>${project.version}</version>
            </dependency>


            <!-- 3rd party extensions -->

            <!--
            GMAP3: uncomment to use
https://github.com/danhaywood/isis-wicket-gmap3
            <dependency>
                <groupId>com.danhaywood.isis.wicket</groupId>
                <artifactId>danhaywood-isis-wicket-gmap3</artifactId>
                <version>1.2.0</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            -->

            <!--
            WICKEDCHARTS: uncomment to use
https://github.com/danhaywood/isis-wicket-wickedcharts
            <dependency>
                <groupId>com.danhaywood.isis.wicket</groupId>
                <artifactId>danhaywood-isis-wicket-wickedcharts</artifactId>
                <version>1.2.0</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            -->

            <!--
            EXCEL: uncomment to use
https://github.com/danhaywood/isis-wicket-excel
            <dependency>
                <groupId>com.danhaywood.isis.wicket</groupId>
                <artifactId>danhaywood-isis-wicket-excel</artifactId>
                <version>1.2.0</version>
            </dependency>
            -->

            <!--
            FULLCALENDAR: uncomment to use
https://github.com/danhaywood/isis-wicket-fullcalendar
            <dependency>
                <groupId>com.danhaywood.isis.wicket</groupId>
                <artifactId>danhaywood-isis-wicket-fullcalendar</artifactId>
                <version>1.2.0</version>
            </dependency>
            -->

        </dependencies>
    </dependencyManagement>


    <profiles>
        <profile>
            <id>m2e</id>
            <activation>
                <property>
                    <name>m2e.version</name>
                </property>
            </activation>
            <build>
                <directory>target-ide</directory>
            </build>
        </profile>
    </profiles>

</project>


and here is the entity  declaration (just the initial lines)
package dom.todo;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;

import javax.jdo.JDOHelper;
import javax.jdo.annotations.Column;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.VersionStrategy;
import javax.jdo.spi.PersistenceCapable;

import com.google.common.base.Objects;
import com.google.common.collect.Lists;

import org.joda.time.LocalDate;

import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.annotation.Audited;
import org.apache.isis.applib.annotation.AutoComplete;
import org.apache.isis.applib.annotation.Bookmarkable;
import org.apache.isis.applib.annotation.Bulk;
import org.apache.isis.applib.annotation.Disabled;
import org.apache.isis.applib.annotation.Hidden;
import org.apache.isis.applib.annotation.MemberGroups;
import org.apache.isis.applib.annotation.MemberOrder;
import org.apache.isis.applib.annotation.MultiLine;
import org.apache.isis.applib.annotation.Named;
import org.apache.isis.applib.annotation.NotPersisted;
import org.apache.isis.applib.annotation.ObjectType;
import org.apache.isis.applib.annotation.Optional;
import org.apache.isis.applib.annotation.Programmatic;
import org.apache.isis.applib.annotation.PublishedAction;
import org.apache.isis.applib.annotation.PublishedObject;
import org.apache.isis.applib.annotation.RegEx;
import org.apache.isis.applib.annotation.Render;
import org.apache.isis.applib.annotation.Render.Type;
import org.apache.isis.applib.annotation.Where;
import org.apache.isis.applib.clock.Clock;
import org.apache.isis.applib.filter.Filter;
import org.apache.isis.applib.filter.Filters;
import org.apache.isis.applib.util.TitleBuffer;
import org.apache.isis.applib.value.Blob;

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
@javax.jdo.annotations.Queries( {
    @javax.jdo.annotations.Query(
            name="TransactionsForTicket", language="JDOQL",
            value="SELECT FROM dom.todo.Transaction WHERE voucherCode ==
:voucherCode && serialNumber == :serialNumber"),
    @javax.jdo.annotations.Query(
            name="TransactionsForParty", language="JDOQL",
            value="SELECT FROM dom.todo.Transaction WHERE fromParty ==
:party || toParty == :party")
})
@javax.jdo.annotations.Version(strategy=VersionStrategy.VERSION_NUMBER,
column="VERSION")
 @javax.jdo.annotations.Unique(name="Transaction_description_must_be_unique",
members={"ownedBy","fromParty","toParty","transactionDate",
"sku","serialNumber","voucherCode"})
@ObjectType("Transaction")
@Audited
//@PublishedObject(VoucherDenominationChangedPayloadFactory.class)
@AutoComplete(repository=Ticket.class, action="autoCompleteTransaction")
    // @MemberGroups({"General","Transaction","Ticket"})
    @MemberGroupLayout( columnSpans = {3,6,3,0}, left = "General",
middle="Transaction",right="Ticket" )
@Bookmarkable
public class Transaction  /*, Locatable*/ { // GMAP3: uncomment to use
https://github.com/danhaywood/isis-wicket-gmap3



On Mon, Aug 19, 2013 at 11:15 PM, Dan Haywood
<da...@haywood-associates.co.uk>wrote:

> On 19 August 2013 23:08, james agada <ok...@gmail.com> wrote:
>
> > Kindly explain to me how to do this. I have built isis from source. I now
> > want to use the new modules. Do i just make the modifications to my app
> > root or do i need to recreate the quick start with the mvn
> > archetype:generate command? Sorry I am not very good with Maven.
> >
>
> No worries.
>
> You just need to edit your existing root pom.xml with the properties I
> listed:
>
>         <isis.version>1.3.0-SNAPSHOT</isis.version>
>
>  <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
>
>
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
>  <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
>
> Then you should be able to recompile and run your app against your locally
> built Isis.
>
> That said, it is possible that some of the integration tests in your app
> may not compile; we've done quite a bit of work in this area in the last
> few months.  If you are still just exploring and haven't written much new
> stuff, you might well find it easier to instead just take a copy of the
> example/application/quickstart_wicket_restful_jdo  project (which you'll
> recognize as the same application as the one that the archetype generates),
> and copy your own stuff into the dom project.
>
> On the other hand, if you've done quite a bit of work and don't want to
> start over, then the easiest is probably to exclude the integration tests
> from your current project.  You can do that by commenting out the
> <module>integtests</module> tag in your root pom.xml.
>
> Let me know if you get stuck or need more help.
>
> Dan
>
>
>
> >
> >
> > On Thu, Aug 15, 2013 at 6:27 PM, james agada <ok...@gmail.com>
> wrote:
> >
> > > Ok
> > >
> > > Sent from my iPhone
> > >
> > > On Aug 15, 2013, at 6:07 PM, Dan Haywood <dan@haywood-associates.co.uk
> >
> > > wrote:
> > >
> > > > No.  We only upgrade the quickstart archetype at release time.
> > > >
> > > > However, if you are building Isis from source [1], then you can edit
> > the
> > > > generated quickstart app to reference the snapshot versions of the
> Isis
> > > > modules.  Locate the root pom.xml of your app, and edit the
> properties,
> > > eg:
> > > >
> > > >        <isis.version>1.3.0-SNAPSHOT</isis.version>
> > > >
> > >
> >
> <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> > > >
> <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
> > > >
> > >
> >
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> > > > <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
> > > >        ...
> > > >
> > > > HTH
> > > > Dan
> > > >
> > > > [1] http://isis.staging.apache.org/contributors/building-isis.html
> > > >
> > > >
> > > >
> > > > On 15 August 2013 17:53, james agada <ok...@gmail.com> wrote:
> > > >
> > > >> Does maven upgrade the quickstart archetype automatically?
> > > >>
> > >
> >
>

Re: upgrade to 1.2

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 19 August 2013 23:08, james agada <ok...@gmail.com> wrote:

> Kindly explain to me how to do this. I have built isis from source. I now
> want to use the new modules. Do i just make the modifications to my app
> root or do i need to recreate the quick start with the mvn
> archetype:generate command? Sorry I am not very good with Maven.
>

No worries.

You just need to edit your existing root pom.xml with the properties I
listed:

        <isis.version>1.3.0-SNAPSHOT</isis.version>
 <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
<isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>

<isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
 <isis-security-shiro.version>1.1.1</isis-security-shiro.version>

Then you should be able to recompile and run your app against your locally
built Isis.

That said, it is possible that some of the integration tests in your app
may not compile; we've done quite a bit of work in this area in the last
few months.  If you are still just exploring and haven't written much new
stuff, you might well find it easier to instead just take a copy of the
example/application/quickstart_wicket_restful_jdo  project (which you'll
recognize as the same application as the one that the archetype generates),
and copy your own stuff into the dom project.

On the other hand, if you've done quite a bit of work and don't want to
start over, then the easiest is probably to exclude the integration tests
from your current project.  You can do that by commenting out the
<module>integtests</module> tag in your root pom.xml.

Let me know if you get stuck or need more help.

Dan



>
>
> On Thu, Aug 15, 2013 at 6:27 PM, james agada <ok...@gmail.com> wrote:
>
> > Ok
> >
> > Sent from my iPhone
> >
> > On Aug 15, 2013, at 6:07 PM, Dan Haywood <da...@haywood-associates.co.uk>
> > wrote:
> >
> > > No.  We only upgrade the quickstart archetype at release time.
> > >
> > > However, if you are building Isis from source [1], then you can edit
> the
> > > generated quickstart app to reference the snapshot versions of the Isis
> > > modules.  Locate the root pom.xml of your app, and edit the properties,
> > eg:
> > >
> > >        <isis.version>1.3.0-SNAPSHOT</isis.version>
> > >
> >
> <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> > > <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
> > >
> >
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> > > <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
> > >        ...
> > >
> > > HTH
> > > Dan
> > >
> > > [1] http://isis.staging.apache.org/contributors/building-isis.html
> > >
> > >
> > >
> > > On 15 August 2013 17:53, james agada <ok...@gmail.com> wrote:
> > >
> > >> Does maven upgrade the quickstart archetype automatically?
> > >>
> >
>

Re: upgrade to 1.2

Posted by james agada <ok...@gmail.com>.
Kindly explain to me how to do this. I have built isis from source. I now
want to use the new modules. Do i just make the modifications to my app
root or do i need to recreate the quick start with the mvn
archetype:generate command? Sorry I am not very good with Maven.


On Thu, Aug 15, 2013 at 6:27 PM, james agada <ok...@gmail.com> wrote:

> Ok
>
> Sent from my iPhone
>
> On Aug 15, 2013, at 6:07 PM, Dan Haywood <da...@haywood-associates.co.uk>
> wrote:
>
> > No.  We only upgrade the quickstart archetype at release time.
> >
> > However, if you are building Isis from source [1], then you can edit the
> > generated quickstart app to reference the snapshot versions of the Isis
> > modules.  Locate the root pom.xml of your app, and edit the properties,
> eg:
> >
> >        <isis.version>1.3.0-SNAPSHOT</isis.version>
> >
> <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> > <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
> >
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> > <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
> >        ...
> >
> > HTH
> > Dan
> >
> > [1] http://isis.staging.apache.org/contributors/building-isis.html
> >
> >
> >
> > On 15 August 2013 17:53, james agada <ok...@gmail.com> wrote:
> >
> >> Does maven upgrade the quickstart archetype automatically?
> >>
>

Re: upgrade to 1.2

Posted by james agada <ok...@gmail.com>.
Ok

Sent from my iPhone

On Aug 15, 2013, at 6:07 PM, Dan Haywood <da...@haywood-associates.co.uk> wrote:

> No.  We only upgrade the quickstart archetype at release time.
>
> However, if you are building Isis from source [1], then you can edit the
> generated quickstart app to reference the snapshot versions of the Isis
> modules.  Locate the root pom.xml of your app, and edit the properties, eg:
>
>        <isis.version>1.3.0-SNAPSHOT</isis.version>
> <isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
> <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
> <isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
> <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
>        ...
>
> HTH
> Dan
>
> [1] http://isis.staging.apache.org/contributors/building-isis.html
>
>
>
> On 15 August 2013 17:53, james agada <ok...@gmail.com> wrote:
>
>> Does maven upgrade the quickstart archetype automatically?
>>

Re: upgrade to 1.2

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
No.  We only upgrade the quickstart archetype at release time.

However, if you are building Isis from source [1], then you can edit the
generated quickstart app to reference the snapshot versions of the Isis
modules.  Locate the root pom.xml of your app, and edit the properties, eg:

        <isis.version>1.3.0-SNAPSHOT</isis.version>
<isis-objectstore-jdo.version>1.2.0-SNAPSHOT</isis-objectstore-jdo.version>
 <isis-viewer-wicket.version>1.3.0-SNAPSHOT</isis-viewer-wicket.version>
<isis-viewer-restfulobjects.version>2.1.0-SNAPSHOT</isis-viewer-restfulobjects.version>
 <isis-security-shiro.version>1.1.1</isis-security-shiro.version>
        ...

HTH
Dan

[1] http://isis.staging.apache.org/contributors/building-isis.html



On 15 August 2013 17:53, james agada <ok...@gmail.com> wrote:

> Does maven upgrade the quickstart archetype automatically?
>