[ https://jira.codehaus.org/browse/MAPPASM-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295133#comment-295133 ]
Dim Bal commented on MAPPASM-150: --------------------------------- Karl, further to this, AppAssembler v1.2 doesn't respect the <repoPath></repoPath> <repositoryName></repositoryName> elements if they are defined in the POM. I.e. setting them to /lib/ doesn't affect the resulting wrapper.conf (set.default.REPO_DIR stays equal to "repo"). I think repoPath also overlaps with repositoryName as they serve the same purpose.. Thanks > Created JSW (wrapper.conf) contains wrong location for the generated > repository. > -------------------------------------------------------------------------------- > > Key: MAPPASM-150 > URL: https://jira.codehaus.org/browse/MAPPASM-150 > Project: Mojo AppAssembler Plugin > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Karl Heinz Marbaise > Assignee: Karl Heinz Marbaise > Priority: Blocker > Fix For: 1.2.1 > > > Based on the following pom.xml i'm trying to createa daemons via jsw. > {code} > <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.codehaus.mojo.appassembler</groupId> > <artifactId>daemonTest</artifactId> > <version>1.0-SNAPSHOT</version> > <name>Daemon Test Project</name> > <description>This is a test for daemons.</description> > <properties> > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > </properties> > <dependencies> > <dependency> > <groupId>log4j</groupId> > <artifactId>log4j</artifactId> > <version>1.2.14</version> > </dependency> > </dependencies> > <build> > <plugins> > <plugin> > <groupId>@project.groupId@</groupId> > <artifactId>@project.artifactId@</artifactId> > <version>@project.version@</version> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>generate-daemons</goal> > </goals> > </execution> > </executions> > <configuration> > <daemons> > <daemon> > <id>daemon-1</id> > > <mainClass>org.codehaus.mojo.appassembler.example.helloworld.HelloWorld</mainClass> > <platforms> > <platform>jsw</platform> > </platforms> > </daemon> > </daemons> > </configuration> > </plugin> > </plugins> > </build> > </project> > {code} > The problem is that the generated {{conf/wrapper.conf}} file contains a > location to {{repo}} instead of {{lib}} which does not exist and will fail > the usage of the start scripts {{daemon-1}}. After changing the name from > {{repo}} to {{lib}} it works. > The following snippet of the the {{wrapper.conf}} will show the problem: > {{REPO_DIR}}. > {code} > set.default.REPO_DIR=repo > set.default.APP_BASE=. > # Java Classpath (include wrapper.jar) Add class path elements as > # needed starting from 1 > wrapper.java.classpath.1=lib/wrapper.jar > wrapper.java.classpath.2=%REPO_DIR%/org/codehaus/mojo/appassembler/daemonTest/1.0-SNAPSHOT/daemonTest-1.0-SNAPSHOT.jar > wrapper.java.classpath.3=%REPO_DIR%/log4j/log4j/1.2.14/log4j-1.2.14.jar > {code} > Furthermore the hard coded reference {{lib/wrapper.jar}} is also wrong. The > {{lib}} should be replaced by using {{%REPO_DIR%}} as it is done in the other > cases. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email