[jira] Commented: (SUREFIRE-453) unable to run spring/jpa/dao test with derby starting with surefire 2.4.x

2008-02-11 Thread Dan Fabulich (JIRA)

[ 
http://jira.codehaus.org/browse/SUREFIRE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123292
 ] 

Dan Fabulich commented on SUREFIRE-453:
---

Repro'd.

> unable to run spring/jpa/dao test with derby starting with surefire 2.4.x
> -
>
> Key: SUREFIRE-453
> URL: http://jira.codehaus.org/browse/SUREFIRE-453
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: plugin
>Affects Versions: 2.4
>Reporter: Dan Tran
> Attachments: mytest-sources-2.jar, mytest-sources.jar
>
>
> here is the description reported on user list
> This may not be a blocking bug but It is a regresion since 2.4 where
> my Spring JpaDao with embedded Derby  test fails . Other databases are fine.
> The exception is producable with 2.5-SNAPSHOT ( build from source ),
> 2.4.1-SNAPSHOT( at apache snapshot repo).
> surefire 2.3 and 2.3.1 are fine.
> Any one else encounter this issue?
> -D
> ---
> Test set: com.iplocks.user.dao.UserDaoJpaTest
> ---
> Tests run: 7, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 14.111
> sec <<< FAILURE!
> testNamedConstraint(com.iplocks.user.dao.UserDaoJpaTest)  Time
> elapsed: 0.281 sec  <<< ERROR!
> javax.persistence.PersistenceException:
> org.hibernate.exception.GenericJDBCException: could not execute query
>at 
> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
>at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:75)
>at 
> com.iplocks.jpa.GenericNameDaoJpa.getByName(GenericNameDaoJpa.java:54)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.createUser(UserDaoJpaTest.java:35)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.createDefaultUser(UserDaoJpaTest.java:56)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.testNamedConstraint(UserDaoJpaTest.java:77)
> Caused by: org.hibernate.exception.GenericJDBCException: could not execute 
> query
>at 
> org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
>at 
> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
>at 
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>at org.hibernate.loader.Loader.doList(Loader.java:2223)
>at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
>at org.hibernate.loader.Loader.list(Loader.java:2099)
>at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
>at 
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
>at 
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
>at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:66)
>... 38 more
> Caused by: java.sql.SQLException: Cannot create an instance of
> generated class
> org.apache.derby.exe.ac12564092x0117xc31cx8752x0020b5f01.
>at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Please run mvn test using the attached maven project.  to run with different 
> db, change resources.properties accordingly

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SUREFIRE-443) Provide option to merge test classpath into one directory

2008-02-11 Thread Dan Fabulich (JIRA)

 [ 
http://jira.codehaus.org/browse/SUREFIRE-443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Fabulich updated SUREFIRE-443:
--

Description: 
Please provide an option for the test classpath to be merged into one directory.

Maven sets up the class files as follows:
{noformat}
|-- target/test-classes
|   `-- Unit Test classes
|-- target/classes
`-- Classes to be tested
{noformat}

When running unit tests, the desired outcome is for any file in the 
"target/test-classes" tree to override those in the "target/classes".  
Specifically that any file in classes is ignored and overridden by the file in 
test-classes for the tests to work as expected.
(In a sense a union on these two file trees in the order specified)

The problem arises when using a container such as Embedded JBoss to test which 
treats each directory as a separate scope for classloading.
Reading the ejb-3_0-fr-spec-persistence.pdf section "6.2.2 Persistence Unit 
Scope" spells it out quite clearly (a very short one page read) that if the 
"target/test-classes" and "target/classes" are each treated as a separate 
ejb-jar, then the runtime environment is not going to work due to these scoping 
rules.

I have an ugly hack in place as follows which has the desired effect, but it 
would be more preferable if instead Maven Surefire provided an option to merge 
the directories together and have just one directory in the test classpath.

{noformat}


...


maven-antrun-plugin


setupTestClasspath
test-compile


















run



restoreTestClasspath
test










run




...
{noformat}

  was:
Please provide an option for the test classpath to be merged into one directory.

Maven sets up the class files as follows:
{noformat}
|-- target/test-classes
|   `-- Unit Test classes
|-- target/classes
`-- Classes to be tested
{noformat}

When running unit tests, the desired outcome is for any file in the 
"target/test-classes" tree to override those in the "target/classes".  
Specifically that any file in classes is ignored and overridden by the file in 
test-classes for the tests to work as expected.
(In a sense a union on these two file trees in the order specified)

The problem arises when using a container such as Embedded JBoss to test which 
treats each directory as a separate scope for classloading.
Reading the ejb-3_0-fr-spec-persistence.pdf section "6.2.2 Persistence Unit 
Scope" spells it out quite clearly (a very short one page read) that if the 
"target/test-classes" and "target/classes" are each treated as a separate 
ejb-jar, then the runtime environment is not going to work due to these scoping 
rules.

I have an ugly hack in place as follows which has the desired effect, but it 
would be more preferable if instead Maven Surefire provided an option to merge 
the directories together and have just one directory in the test classpath.



...


maven-antrun-plugin


setupTestClasspath
test-compile


















run
 

[jira] Commented: (MNG-3031) Within a model duplicate dependency declarations should be considered an error and halt execution

2008-02-11 Thread luke w patterson (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-3031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123309
 ] 

luke w patterson commented on MNG-3031:
---

I am working with OSGi bundles.  In top-level product assembly projects, I need 
the ability to specify multiple bundle versions for concurrent use.  How would 
this proposal affect my scenario?

> Within a model duplicate dependency declarations should be considered an 
> error and halt execution
> -
>
> Key: MNG-3031
> URL: http://jira.codehaus.org/browse/MNG-3031
> Project: Maven 2
>  Issue Type: Improvement
>  Components: Dependencies
>Affects Versions: 2.0.x, 2.1
>Reporter: Jason van Zyl
> Fix For: Reviewed Pending Version Assignment
>
>
> A warning is not good enough as you'll still get unpredictable behavior. 
> Ideally this would not be allowed and caught during a session in an IDE but 
> from the command line as part of the validation of the model duplicate 
> dependencies should shut down execution.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SUREFIRE-453) unable to run spring/jpa/dao test with derby starting with surefire 2.4.x

2008-02-11 Thread Dan Tran (JIRA)

[ 
http://jira.codehaus.org/browse/SUREFIRE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123308
 ] 

Dan Tran commented on SUREFIRE-453:
---

fair enough and  useSystemClassLoader=false solves my problem.

Thank you put putting your valulable time for this issue.

> unable to run spring/jpa/dao test with derby starting with surefire 2.4.x
> -
>
> Key: SUREFIRE-453
> URL: http://jira.codehaus.org/browse/SUREFIRE-453
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: plugin
>Affects Versions: 2.4
>Reporter: Dan Tran
> Attachments: mytest-sources-2.jar, mytest-sources.jar
>
>
> here is the description reported on user list
> This may not be a blocking bug but It is a regresion since 2.4 where
> my Spring JpaDao with embedded Derby  test fails . Other databases are fine.
> The exception is producable with 2.5-SNAPSHOT ( build from source ),
> 2.4.1-SNAPSHOT( at apache snapshot repo).
> surefire 2.3 and 2.3.1 are fine.
> Any one else encounter this issue?
> -D
> ---
> Test set: com.iplocks.user.dao.UserDaoJpaTest
> ---
> Tests run: 7, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 14.111
> sec <<< FAILURE!
> testNamedConstraint(com.iplocks.user.dao.UserDaoJpaTest)  Time
> elapsed: 0.281 sec  <<< ERROR!
> javax.persistence.PersistenceException:
> org.hibernate.exception.GenericJDBCException: could not execute query
>at 
> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
>at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:75)
>at 
> com.iplocks.jpa.GenericNameDaoJpa.getByName(GenericNameDaoJpa.java:54)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.createUser(UserDaoJpaTest.java:35)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.createDefaultUser(UserDaoJpaTest.java:56)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.testNamedConstraint(UserDaoJpaTest.java:77)
> Caused by: org.hibernate.exception.GenericJDBCException: could not execute 
> query
>at 
> org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
>at 
> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
>at 
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>at org.hibernate.loader.Loader.doList(Loader.java:2223)
>at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
>at org.hibernate.loader.Loader.list(Loader.java:2099)
>at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
>at 
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
>at 
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
>at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
>at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:66)
>... 38 more
> Caused by: java.sql.SQLException: Cannot create an instance of
> generated class
> org.apache.derby.exe.ac12564092x0117xc31cx8752x0020b5f01.
>at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Please run mvn test using the attached maven project.  to run with different 
> db, change resources.properties accordingly

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Closed: (SUREFIRE-455) XML delimiter characters in attribute and text content are escaped twice.

2008-02-11 Thread Dan Fabulich (JIRA)

 [ 
http://jira.codehaus.org/browse/SUREFIRE-455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Fabulich closed SUREFIRE-455.
-

   Resolution: Fixed
Fix Version/s: 2.4.2

Thanks for your work here.  We actually have an integration test for this that 
verified XML validity, but it didn't catch this case (I examined the XML by eye 
and it looked fine).  I've enhanced the integration test to examine the 
messages explicitly to catch this case.

Interestingly, this highlighted a bug in the way we handle non-visible control 
characters (e.g. the null charater \0).  You added code to explicitly filter 
out null characters in your patch.  That was a reasonable choice, but I decided 
that we didn't want to throw away information.  Also, it's not just nulls; all 
non-visible control characters except for \t \n and \r are invalid in XML 1.0, 
even in entity form.  So I deliberately introduced SUREFIRE-456 to handle this 
case.

Submitted revision 620660.

> XML delimiter characters in attribute and text content are escaped twice. 
> --
>
> Key: SUREFIRE-455
> URL: http://jira.codehaus.org/browse/SUREFIRE-455
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: xml generation
>Affects Versions: 2.4, 2.4.1
>Reporter: Todor Todorov
> Fix For: 2.4.2
>
> Attachments: surefire-api.patch
>
>
> XML delimiter characters (left angle bracket, ampersand, etc.) are escaped 
> twice in _TEST-*.xml_ files in _surefire-reports_ directory. For example the 
> left angle bracket is replaced with < instead of < and the right 
> angle bracket with > instead of >
> {code:xml}
>   
>  type="junit.framework.AssertionFailedError">
> junit.framework.AssertionFailedError: expected:<10> but 
> was:<7>
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.failNotSame(Assert.java:278)
> at junit.framework.Assert.assertSame(Assert.java:242)
> at MyTest.testItem(MyTest.java:38)
> 
>   
> {code}
> The problem is that both *org.apache.maven.surefire.report.XMLReporter* and 
> *org.apache.maven.surefire.util.PrettyPrintXMLWriter* are escaping the XML 
> content. As a result the ampersand character is escaped once more time. In 
> addition *org.apache.maven.surefire.util.PrettyPrintXMLWriter#escapeXml* has 
> implementation error: three characters (ampersand, left angle bracket and 
> right angle bracket) are replaced with *&*
> In the attached patch (for surefire-2.4.1) I removed 
> *org.apache.maven.surefire.report.XMLReporter#escapeAttribute* method and 
> fixed *org.apache.maven.surefire.util.PrettyPrintXMLWriter#escapeXml* 
> implementation. Afterwards the XML report was generated as expected:
> {code:xml}
>   
>  type="junit.framework.AssertionFailedError">
> junit.framework.AssertionFailedError: expected:<10> but was:<7>
> at junit.framework.Assert.fail(Assert.java:47)
> at junit.framework.Assert.failNotSame(Assert.java:278)
> at junit.framework.Assert.assertSame(Assert.java:242)
> at MyTest.testItem(MyTest.java:38)
> 
>   
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SUREFIRE-456) Surefire doubly XML-escapes non-visible control characters

2008-02-11 Thread Dan Fabulich (JIRA)

 [ 
http://jira.codehaus.org/browse/SUREFIRE-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Fabulich updated SUREFIRE-456:
--

Fix Version/s: Future

> Surefire doubly XML-escapes non-visible control characters
> --
>
> Key: SUREFIRE-456
> URL: http://jira.codehaus.org/browse/SUREFIRE-456
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: xml generation
>Affects Versions: 2.4.2
>Reporter: Dan Fabulich
>Priority: Minor
> Fix For: Future
>
>
> It's illegal to include a non-visible control character in XML, even as a 
> character entity.  e.g. "�" is illegal in XML, even though it's 
> semantically meaningful.
> http://www.w3.org/TR/1998/REC-xml-19980210#charsets
> Disturbingly, Java's XML serializer will cheerfully print out � despite 
> the fact that it will refuse to parse that entity.
> As a workaround, for 2.4.2 we're deliberately doublly XML-escaping 
> non-visible control characters, printing them as "�" instead of 
> "�" like they're supposed to be.  That's better than any alternative I 
> can think of (e.g. throwing the characters away in test results, replacing 
> them with a "?" character).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (SUREFIRE-456) Surefire doubly XML-escapes non-visible control characters

2008-02-11 Thread Dan Fabulich (JIRA)
Surefire doubly XML-escapes non-visible control characters
--

 Key: SUREFIRE-456
 URL: http://jira.codehaus.org/browse/SUREFIRE-456
 Project: Maven Surefire
  Issue Type: Bug
  Components: xml generation
Affects Versions: 2.4.2
Reporter: Dan Fabulich
Priority: Minor


It's illegal to include a non-visible control character in XML, even as a 
character entity.  e.g. "�" is illegal in XML, even though it's 
semantically meaningful.

http://www.w3.org/TR/1998/REC-xml-19980210#charsets

Disturbingly, Java's XML serializer will cheerfully print out � despite the 
fact that it will refuse to parse that entity.

As a workaround, for 2.4.2 we're deliberately doublly XML-escaping non-visible 
control characters, printing them as "�" instead of "�" like 
they're supposed to be.  That's better than any alternative I can think of 
(e.g. throwing the characters away in test results, replacing them with a "?" 
character).



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Closed: (MCHANGES-100) Generating the jira-report causes error "The system cannot find the path specified"

2008-02-11 Thread Dennis Lundberg (JIRA)

 [ 
http://jira.codehaus.org/browse/MCHANGES-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Lundberg closed MCHANGES-100.


 Assignee: Dennis Lundberg
   Resolution: Fixed
Fix Version/s: 2.0

Patch applied in r620624. Thanks!

> Generating the jira-report causes error "The system cannot find the path 
> specified"
> ---
>
> Key: MCHANGES-100
> URL: http://jira.codehaus.org/browse/MCHANGES-100
> Project: Maven 2.x Changes Plugin
>  Issue Type: Bug
>  Components: jira-report
>Affects Versions: 2.0
> Environment: Winows XP, maven 2.0.8, Sun JDK 1.5.0_07
>Reporter: Niall Pemberton
>Assignee: Dennis Lundberg
>Priority: Minor
> Fix For: 2.0
>
> Attachments: maven-changes-jira-report-path-error.patch
>
>
> When I run the jira-report for Commons IO using "mvn clean 
> changes:jira-report" I get the following error:
> [ERROR] Error downloading issues from JIRA. Cause is 
> C:\svn\commons\trunks-proper\io\target\jira-results.xml (The system cannot 
> find the path specified)
> (this is using a build of the latest 2.0-SNAPSHOT version of 
> maven-changes-plugin)
> Attaching a patch which fixes this.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Closed: (MWAR-143) War Overlays and resources filtering

2008-02-11 Thread Olivier Lamy (JIRA)

 [ 
http://jira.codehaus.org/browse/MWAR-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MWAR-143.
-

Resolution: Fixed

fix in rev 620614.

> War Overlays and resources filtering
> 
>
> Key: MWAR-143
> URL: http://jira.codehaus.org/browse/MWAR-143
> Project: Maven 2.x War Plugin
>  Issue Type: Improvement
>Affects Versions: 2.0.2, 2.1-alpha-1, 2.1-alpha-2
> Environment: maven 2.0.7
>Reporter: Rémy Sanlaville
>Assignee: Olivier Lamy
> Fix For: 2.1-alpha-2
>
> Attachments: war-overlays-filter.zip
>
>
> I have multiple web applications who share common resources.
> So I use the [war overlays 
> mechanism|http://maven.apache.org/plugins/maven-war-plugin/overlays.html].
> All seems ok except for common properties files that I want to filter when 
> creating the web applications.
> For instance (see war-overlays-filter.zip in attachment):
> My war-common war
> war-common.war
>|-- WEB-INF\classes\filter.properties (which contains for instance 
> title.main=Prototype ${pom.name})
> I would like to create the war-filter-overlay web application 
> war-filter-overlay.war
>|-- WEB-INF\classes\filter.properties (which contains the filtering 
> property title.main=Prototype war-filter-overlay)
> [As suggested by Olivier 
> Lamy|http://www.nabble.com/War-Overlays-and-resources-filtering-td15272334s177.html#a15272334]
>  it tried this configuration
> {code:xml} 
>   
>   org.apache.maven.plugins
>   maven-war-plugin
>   2.1-alpha-2-SNAPSHOT
>   
>   
>   
> 
>   
> debug.war
> common-overlay
> 
> true
>   
> 
> 
>   
> {code} 
> Unfortunately it's not working.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Closed: (CONTINUUM-1630) Error attempting to delete project group

2008-02-11 Thread Emmanuel Venisse (JIRA)

 [ 
http://jira.codehaus.org/browse/CONTINUUM-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Venisse closed CONTINUUM-1630.
---

  Assignee: Emmanuel Venisse
Resolution: Fixed

Done.

> Error attempting to delete project group
> 
>
> Key: CONTINUUM-1630
> URL: http://jira.codehaus.org/browse/CONTINUUM-1630
> Project: Continuum
>  Issue Type: Bug
>  Components: Database
>Affects Versions: 1.1
>Reporter: Michael Johns
>Assignee: Emmanuel Venisse
> Fix For: 1.2
>
>
> When trying to delete a project group:
> javax.jdo.JDOUserException: One or more instances could not be deleted 
> NestedThrowables: javax.jdo.JDODataStoreException: Delete request failed: 
> DELETE FROM PROJECTDEPENDENCY WHERE PROJECTDEPENDENCY_ID=? NestedThrowables: 
> SQL Exception: DELETE on table 'PROJECTDEPENDENCY' caused a violation of 
> foreign key constraint 'PROJECT_FK2' for key (5107). The statement has been 
> rolled back.
> A snippet of the stack trace:
> javax.jdo.JDOUserException: One or more instances could not be deleted
>   at 
> org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1525)
>   at 
> org.jpox.AbstractPersistenceManager.deletePersistentAll(AbstractPersistenceManager.java:1498)
>   at 
> org.jpox.store.rdbms.scostore.FKListStore.clear(FKListStore.java:1137)
>   at 
> org.jpox.store.mapping.CollectionMapping.deleteDependent(CollectionMapping.java:334)
>   at 
> org.jpox.store.rdbms.table.ClassTable.deleteDependent(ClassTable.java:2651)
>   at org.jpox.store.StoreManager.deleteDependent(StoreManager.java:1019)
>   at 
> org.jpox.state.StateManagerImpl.deletePersistent(StateManagerImpl.java:4405)
>   at 
> org.jpox.AbstractPersistenceManager.internalDeletePersistent(AbstractPersistenceManager.java:1473)
>   at 
> org.jpox.AbstractPersistenceManager.deletePersistent(AbstractPersistenceManager.java:1489)
>   at 
> org.codehaus.plexus.jdo.PlexusJdoUtils.removeObject(PlexusJdoUtils.java:121)
>   at 
> org.apache.maven.continuum.store.JdoContinuumStore.removeObject(JdoContinuumStore.java:1906)
>   at 
> org.apache.maven.continuum.store.JdoContinuumStore.removeBuildResult(JdoContinuumStore.java:600)
>   at 
> org.apache.maven.continuum.DefaultContinuum.removeProject(DefaultContinuum.java:719)
>   at 
> org.apache.maven.continuum.DefaultContinuum.removeProjectGroup(DefaultContinuum.java:278)
>   at 
> org.apache.maven.continuum.web.action.ProjectGroupAction.remove(ProjectGroupAction.java:263)
>   [...]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Closed: (SUREFIRE-453) unable to run spring/jpa/dao test with derby starting with surefire 2.4.x

2008-02-11 Thread Dan Fabulich (JIRA)

 [ 
http://jira.codehaus.org/browse/SUREFIRE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Fabulich closed SUREFIRE-453.
-

Resolution: Won't Fix

The problem with this test has to do with the useSystemClassLoader 
configuration parameter.  When I use Surefire 2.4.1 and 
-Dsurefire.useSystemClassLoader=false, the test passes; with =true (the 
default), the test fails.

One of the changes from Surefire 2.3 and Surefire 2.4 was to make 
useSystemClassLoader=true the default; previously the default was false.  
"useSystemClassLoader" sounds fancy, but it's really just the normal default 
way of launching java: your classes and dependencies are added to the classpath 
in an ordinary way.

When we don't use the system classloader, we do fancy stuff with "isolated" 
custom classloaders; this frequently had a destabilizing effect on the classes 
as they attempted to access the system classloader using 
java.lang.ClassLoader.getSystemClassLoader().  There are a bunch of bugs marked 
"Won't Fix" for 2.3 because the workaround is just to set 
useSystemClassLoader=true.

Since the system classloader mechanism is the "normal" way of launching code, 
we have to wonder: why does this test fail when launched in the "ordinary" way, 
but pass when launched in a special isolated classloader?  I have no idea why, 
and I think it's beyond me to find out.  There's more than a dozen dependencies 
in this project and a lot of tricky interactions possible between spring, 
hibernate, derby, and aspectj; to figure out what's wrong would require a way 
more detailed debugging effort than I'm prepared to do right now.

For now, I'm going to have to mark this "Won't Fix", there's a reasonable 
workaround available (useSystemClassLoader=false) and because I believe the 
current default behavior is the right choice (the default can't satisfy 
everyone).

If there's something else we can do besides changing the default setting, I'd 
be curious to know of it; in that case, feel free to reopen this bug or file a 
new one.

> unable to run spring/jpa/dao test with derby starting with surefire 2.4.x
> -
>
> Key: SUREFIRE-453
> URL: http://jira.codehaus.org/browse/SUREFIRE-453
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: plugin
>Affects Versions: 2.4
>Reporter: Dan Tran
> Attachments: mytest-sources-2.jar, mytest-sources.jar
>
>
> here is the description reported on user list
> This may not be a blocking bug but It is a regresion since 2.4 where
> my Spring JpaDao with embedded Derby  test fails . Other databases are fine.
> The exception is producable with 2.5-SNAPSHOT ( build from source ),
> 2.4.1-SNAPSHOT( at apache snapshot repo).
> surefire 2.3 and 2.3.1 are fine.
> Any one else encounter this issue?
> -D
> ---
> Test set: com.iplocks.user.dao.UserDaoJpaTest
> ---
> Tests run: 7, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 14.111
> sec <<< FAILURE!
> testNamedConstraint(com.iplocks.user.dao.UserDaoJpaTest)  Time
> elapsed: 0.281 sec  <<< ERROR!
> javax.persistence.PersistenceException:
> org.hibernate.exception.GenericJDBCException: could not execute query
>at 
> org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
>at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:75)
>at 
> com.iplocks.jpa.GenericNameDaoJpa.getByName(GenericNameDaoJpa.java:54)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.createUser(UserDaoJpaTest.java:35)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.createDefaultUser(UserDaoJpaTest.java:56)
>at 
> com.iplocks.user.dao.UserDaoJpaTest.testNamedConstraint(UserDaoJpaTest.java:77)
> Caused by: org.hibernate.exception.GenericJDBCException: could not execute 
> query
>at 
> org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
>at 
> org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
>at 
> org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
>at org.hibernate.loader.Loader.doList(Loader.java:2223)
>at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
>at org.hibernate.loader.Loader.list(Loader.java:2099)
>at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
>at 
> org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
>at 
> org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
>at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
>at org.hibernate.impl.QueryIm

[jira] Created: (MECLIPSE-390) myeclipse goal ignores additionalConfig

2008-02-11 Thread Julien Jakubowski (JIRA)
myeclipse goal ignores additionalConfig
---

 Key: MECLIPSE-390
 URL: http://jira.codehaus.org/browse/MECLIPSE-390
 Project: Maven 2.x Eclipse Plugin
  Issue Type: Bug
  Components: MyEclipse support
Affects Versions: 2.4, 2.5
 Environment: Maven 2.0.8, maven-eclipse-plugin 2.4, 
maven-eclipse-plugin-2.5 2/11/2008 SNAPSHOT 
Reporter: Julien Jakubowski
 Attachments: myeclipse-bug-additionalconfig.patch, 
project-myeclipse-05.zip

MyEclipse support doesn't write additional configuration files such as 
.checkstyle file. This is because additionalConfig is not used by 
MyEclipsePlugin class.
Here is a patch that fix this bug. I also provide a unit test and a test 
project, included inside zip file attachment.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MAVENUPLOAD-1931) Please update strutstestcase to version 2.1.4

2008-02-11 Thread Yuriy Tumakha (JIRA)

[ 
http://jira.codehaus.org/browse/MAVENUPLOAD-1931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123285
 ] 

Yuriy Tumakha commented on MAVENUPLOAD-1931:


StrutsTestCase directory on repository
http://repo1.maven.org/maven2/strutstestcase/strutstestcase/

> Please update strutstestcase to version 2.1.4
> -
>
> Key: MAVENUPLOAD-1931
> URL: http://jira.codehaus.org/browse/MAVENUPLOAD-1931
> Project: maven-upload-requests
>  Issue Type: Wish
>Reporter: Yuriy Tumakha
> Attachments: strutstestcase-2.1.4-1.2-2.4-sources.jar, 
> strutstestcase-2.1.4-1.2-2.4.pom, strutstestcase-2.1.4.jar
>
>
> Download strutstestcase 2.1.4
> http://sourceforge.net/project/showfiles.php?group_id=39190
> 1. From 
> http://downloads.sourceforge.net/strutstestcase/strutstest214-1.2_2.4.zip?modtime=1192154035&big_mirror=0
> extract "strutstest\strutstest-2.1.4.jar" and rename as 
> "strutstestcase-2.1.4.jar"
> 2. Download 
> http://downloads.sourceforge.net/strutstestcase/strutstest-214-src.zip?modtime=1192154061&big_mirror=0
> and repack as "strutstestcase-2.1.4-1.2-2.4-sources.jar"
> 3. strutstestcase-2.1.4-1.2-2.4.pom - in attachment.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MAVENUPLOAD-1931) Please update strutstestcase to version 2.1.4

2008-02-11 Thread Yuriy Tumakha (JIRA)
Please update strutstestcase to version 2.1.4
-

 Key: MAVENUPLOAD-1931
 URL: http://jira.codehaus.org/browse/MAVENUPLOAD-1931
 Project: maven-upload-requests
  Issue Type: Wish
Reporter: Yuriy Tumakha
 Attachments: strutstestcase-2.1.4-1.2-2.4-sources.jar, 
strutstestcase-2.1.4-1.2-2.4.pom, strutstestcase-2.1.4.jar

Download strutstestcase 2.1.4
http://sourceforge.net/project/showfiles.php?group_id=39190

1. From 
http://downloads.sourceforge.net/strutstestcase/strutstest214-1.2_2.4.zip?modtime=1192154035&big_mirror=0
extract "strutstest\strutstest-2.1.4.jar" and rename as 
"strutstestcase-2.1.4.jar"

2. Download 
http://downloads.sourceforge.net/strutstestcase/strutstest-214-src.zip?modtime=1192154061&big_mirror=0
and repack as "strutstestcase-2.1.4-1.2-2.4-sources.jar"

3. strutstestcase-2.1.4-1.2-2.4.pom - in attachment.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MECLIPSE-389) After running "clean" phase, eclipse detects some errors due to missing folder.

2008-02-11 Thread pkernevez (JIRA)
After running "clean" phase, eclipse detects some errors due to missing folder.
---

 Key: MECLIPSE-389
 URL: http://jira.codehaus.org/browse/MECLIPSE-389
 Project: Maven 2.x Eclipse Plugin
  Issue Type: Bug
  Components: WTP support
Affects Versions: 2.5
Reporter: pkernevez


We are using the configuration point out at the bottom of the page : 
http://maven.apache.org/plugins/maven-eclipse-plugin/examples/multi-module-projects.html

The presence of the true creates the folder 
"target\generated-resources\eclipse\META-INF\" (due to the creation of the file 
target\generated-resources\eclipse\META-INF\MANIFEST.MF) during the 
"eclipse:eclipse" goal.

First trouble, when we run the phase "clean" this folder is deleted and never 
recreated, even if we run other phases (like install). When Eclipse refresh its 
folder tree it indicates an error due to this sources missing folder.

Another trouble, is that the name of this Manifest file is hardcoded in the 
class EclipseManifestWriter
See 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/EclipseManifestWriter.java?revision=618468&view=markup
 
The plugin manifest is not used, neither the plugin configuration:

  ${basedir}/src/main/resources/META-INF/MANIFEST.MF





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MENFORCER-22) create a rule to check the current project is not a snapshot

2008-02-11 Thread Ben Lidgey (JIRA)

[ 
http://jira.codehaus.org/browse/MENFORCER-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123278
 ] 

Ben Lidgey commented on MENFORCER-22:
-

Is it possible to activate a profile if the project version is a SNAPSHOT (or 
not)? I couldn't see anything in the profile docs?

We have a CruiseControl server built that checks out the latest version of a 
project from the head and builds it, so we would need to activate the profile 
to check for snapshots if the project version is not a SNAPSHOT.

> create a rule to check the current project is not a snapshot
> 
>
> Key: MENFORCER-22
> URL: http://jira.codehaus.org/browse/MENFORCER-22
> Project: Maven 2.x Enforcer Plugin
>  Issue Type: New Feature
>  Components: Standard Rules
>Affects Versions: 1.0-alpha-3
>Reporter: Brian Fox
>Assignee: Brian Fox
> Fix For: 1.0
>
>
> There is already a rule to check that dependencies cannot be a snapshot, 
> create a rule to ensure the current project is not a snapshot.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MENFORCER-22) create a rule to check the current project is not a snapshot

2008-02-11 Thread Brian Fox (JIRA)

[ 
http://jira.codehaus.org/browse/MENFORCER-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123276
 ] 

Brian Fox commented on MENFORCER-22:


You would normally do this as part of your profile to cut a release since once 
the project becomes non-snapshot you shouldn't be rebuilding it multiple times.

> create a rule to check the current project is not a snapshot
> 
>
> Key: MENFORCER-22
> URL: http://jira.codehaus.org/browse/MENFORCER-22
> Project: Maven 2.x Enforcer Plugin
>  Issue Type: New Feature
>  Components: Standard Rules
>Affects Versions: 1.0-alpha-3
>Reporter: Brian Fox
>Assignee: Brian Fox
> Fix For: 1.0
>
>
> There is already a rule to check that dependencies cannot be a snapshot, 
> create a rule to ensure the current project is not a snapshot.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (SUREFIRE-455) XML delimiter characters in attribute and text content are escaped twice.

2008-02-11 Thread Todor Todorov (JIRA)
XML delimiter characters in attribute and text content are escaped twice. 
--

 Key: SUREFIRE-455
 URL: http://jira.codehaus.org/browse/SUREFIRE-455
 Project: Maven Surefire
  Issue Type: Bug
  Components: xml generation
Affects Versions: 2.4.1, 2.4
Reporter: Todor Todorov
 Attachments: surefire-api.patch

XML delimiter characters (left angle bracket, ampersand, etc.) are escaped 
twice in _TEST-*.xml_ files in _surefire-reports_ directory. For example the 
left angle bracket is replaced with < instead of < and the right 
angle bracket with > instead of >

{code:xml}
  

junit.framework.AssertionFailedError: expected:<10> but 
was:<7>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotSame(Assert.java:278)
at junit.framework.Assert.assertSame(Assert.java:242)
at MyTest.testItem(MyTest.java:38)

  
{code}

The problem is that both *org.apache.maven.surefire.report.XMLReporter* and 
*org.apache.maven.surefire.util.PrettyPrintXMLWriter* are escaping the XML 
content. As a result the ampersand character is escaped once more time. In 
addition *org.apache.maven.surefire.util.PrettyPrintXMLWriter#escapeXml* has 
implementation error: three characters (ampersand, left angle bracket and right 
angle bracket) are replaced with *&*

In the attached patch (for surefire-2.4.1) I removed 
*org.apache.maven.surefire.report.XMLReporter#escapeAttribute* method and fixed 
*org.apache.maven.surefire.util.PrettyPrintXMLWriter#escapeXml* implementation. 
Afterwards the XML report was generated as expected:

{code:xml}
  

junit.framework.AssertionFailedError: expected:<10> but was:<7>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotSame(Assert.java:278)
at junit.framework.Assert.assertSame(Assert.java:242)
at MyTest.testItem(MyTest.java:38)

  
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MENFORCER-22) create a rule to check the current project is not a snapshot

2008-02-11 Thread Ben Lidgey (JIRA)

[ 
http://jira.codehaus.org/browse/MENFORCER-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123269
 ] 

Ben Lidgey commented on MENFORCER-22:
-

We have the scenario where developers use a SNAPSHOT version for the project 
during development, and depend on other SNAPSHOT artifacts which is fine. We 
want this setup to pass the build in the CI server.

BUT, when the project version becomes a non-SNAPSHOT version then we want the 
check to ensure that no dependencies are SNAPSHOTs.

Something like:

|| || Dependency versions || ||
|| || SNAPSHOT || non-SNAPSHOT ||
|| Project version || | |
|| SNAPSHOT | pass | pass |
|| non-SNAPSHOT | fail | pass |

> create a rule to check the current project is not a snapshot
> 
>
> Key: MENFORCER-22
> URL: http://jira.codehaus.org/browse/MENFORCER-22
> Project: Maven 2.x Enforcer Plugin
>  Issue Type: New Feature
>  Components: Standard Rules
>Affects Versions: 1.0-alpha-3
>Reporter: Brian Fox
>Assignee: Brian Fox
> Fix For: 1.0
>
>
> There is already a rule to check that dependencies cannot be a snapshot, 
> create a rule to ensure the current project is not a snapshot.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (ARCHETYPE-127) New Version is not backwards compatible - prompts for version and package when they should be read from archetype

2008-02-11 Thread Matt Raible (JIRA)
New Version is not backwards compatible - prompts for version and package when 
they should be read from archetype
-

 Key: ARCHETYPE-127
 URL: http://jira.codehaus.org/browse/ARCHETYPE-127
 Project: Maven Archetype
  Issue Type: Bug
Affects Versions: 2.0-alpha-1
 Environment: Maven 2.0.8, OS X, Java 5
Reporter: Matt Raible


This new version of the archetype plugin breaks compatibility with the old 
version. It prompts me for both version and package. It should default both of 
these values to what's specified in the archetype (1.0-SNAPSHOT and war). Try 
any of the "archetype:create" on the AppFuse QuickStart to reproduce.

http://appfuse.org/display/APF/AppFuse+QuickStart

These commands worked fine (no prompting) with the old version. For example:

mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes 
-DarchetypeArtifactId=appfuse-basic-spring 
-DremoteRepositories=http://static.appfuse.org/releases 
-DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app -DartifactId=myproject

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MSITE-294) Can't escape ${project.version} as plain text inside apt +---- section, on *.apt.vm files

2008-02-11 Thread Andrew Hughes (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123354
 ] 

Andrew Hughes commented on MSITE-294:
-

OMG, to make matters worse when the jira issue is lodged it is stripping my 
escape text examples... I can't win here!

> Can't escape ${project.version} as plain text inside apt + section, on 
> *.apt.vm files
> -
>
> Key: MSITE-294
> URL: http://jira.codehaus.org/browse/MSITE-294
> Project: Maven 2.x Site Plugin
>  Issue Type: Bug
>Affects Versions: 2.0-beta-6
> Environment: *.apt.vm files, and +- escaped section.
>Reporter: Andrew Hughes
>Priority: Critical
>
> You can reproduce this the following way.
> ./src/site/index.apt.vm (start)
> --
> This will appear without the backslashes $\{project.version\} and that's 
> excellent. But you can't get this output in the escaped apt text section 
> below.
> +---
> However this apt escaped section still shows the backslashes inside this 
> section $\{project.version\} and there is no known way the text can be shown 
> as above.
> To make matters worse, when you put this in without the backslashes, you get 
> the properties value (like a filter). See: ${project.version} not the desired 
> string as above
> +---
> -
> ./src/site/index.apt.vm (start)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MSITE-294) Can't escape ${project.version} as plain text inside apt +---- section, on *.apt.vm files

2008-02-11 Thread Andrew Hughes (JIRA)
Can't escape ${project.version} as plain text inside apt + section, on 
*.apt.vm files
-

 Key: MSITE-294
 URL: http://jira.codehaus.org/browse/MSITE-294
 Project: Maven 2.x Site Plugin
  Issue Type: Bug
Affects Versions: 2.0-beta-6
 Environment: *.apt.vm files, and +- escaped section.
Reporter: Andrew Hughes
Priority: Critical


You can reproduce this the following way.

./src/site/index.apt.vm (start)
--

This will appear without the backslashes $\{project.version\} and that's 
excellent. But you can't get this output in the escaped apt text section below.

+---
However this apt escaped section still shows the backslashes inside this 
section $\{project.version\} and there is no known way the text can be shown as 
above.
To make matters worse, when you put this in without the backslashes, you get 
the properties value (like a filter). See: ${project.version} not the desired 
string as above
+---

-
./src/site/index.apt.vm (start)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (SUREFIRE-456) Surefire doubly XML-escapes non-visible control characters

2008-02-11 Thread Dan Fabulich (JIRA)

 [ 
http://jira.codehaus.org/browse/SUREFIRE-456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Fabulich updated SUREFIRE-456:
--

Description: 
It's illegal to include a non-visible control character in XML, even as a 
character entity.  e.g. "�" is illegal in XML, even though it's 
semantically meaningful.

http://www.w3.org/TR/1998/REC-xml-19980210#charsets

Disturbingly, Java's XML serializer will cheerfully print out � despite 
the fact that it will refuse to parse that entity.

As a workaround, for 2.4.2 we're deliberately doublly XML-escaping non-visible 
control characters, printing them as "&#x0;" instead of "�" 
like they're supposed to be.  That's better than any alternative I can think of 
(e.g. throwing the characters away in test results, replacing them with a "?" 
character).



  was:
It's illegal to include a non-visible control character in XML, even as a 
character entity.  e.g. "�" is illegal in XML, even though it's 
semantically meaningful.

http://www.w3.org/TR/1998/REC-xml-19980210#charsets

Disturbingly, Java's XML serializer will cheerfully print out � despite the 
fact that it will refuse to parse that entity.

As a workaround, for 2.4.2 we're deliberately doublly XML-escaping non-visible 
control characters, printing them as "�" instead of "�" like 
they're supposed to be.  That's better than any alternative I can think of 
(e.g. throwing the characters away in test results, replacing them with a "?" 
character).




> Surefire doubly XML-escapes non-visible control characters
> --
>
> Key: SUREFIRE-456
> URL: http://jira.codehaus.org/browse/SUREFIRE-456
> Project: Maven Surefire
>  Issue Type: Bug
>  Components: xml generation
>Affects Versions: 2.4.2
>Reporter: Dan Fabulich
>Priority: Minor
> Fix For: Future
>
>
> It's illegal to include a non-visible control character in XML, even as a 
> character entity.  e.g. "�" is illegal in XML, even though it's 
> semantically meaningful.
> http://www.w3.org/TR/1998/REC-xml-19980210#charsets
> Disturbingly, Java's XML serializer will cheerfully print out � 
> despite the fact that it will refuse to parse that entity.
> As a workaround, for 2.4.2 we're deliberately doublly XML-escaping 
> non-visible control characters, printing them as "&#x0;" instead of 
> "�" like they're supposed to be.  That's better than any alternative 
> I can think of (e.g. throwing the characters away in test results, replacing 
> them with a "?" character).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (CONTINUUM-1655) Project Build Definition Arguments

2008-02-11 Thread Emmanuel Venisse (JIRA)

 [ 
http://jira.codehaus.org/browse/CONTINUUM-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Emmanuel Venisse updated CONTINUUM-1655:


Affects Version/s: 1.1

> Project Build Definition Arguments
> --
>
> Key: CONTINUUM-1655
> URL: http://jira.codehaus.org/browse/CONTINUUM-1655
> Project: Continuum
>  Issue Type: Wish
>Affects Versions: 1.1
>Reporter: Yuriy Kryshchuk
>
> I have spent few hours configuring the build definition to use some paths as 
> -D... options. I set 4 different parameters. Everything was working. Then I 
> changed one path to some longer value and I could not save the definition. 
> Continuum web UI shown me an error that it cannot save definition, but no 
> details why.
> Later I found (probably somewhere in logs) that I used the arguments with 
> summary length more than 255 characters.
> I would expect that in my situation (I described above) Continuum either says 
> me exactly what is wrong or just allows long arguments (which is preferable).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (CONTINUUM-1655) Project Build Definition Arguments

2008-02-11 Thread Yuriy Kryshchuk (JIRA)
Project Build Definition Arguments
--

 Key: CONTINUUM-1655
 URL: http://jira.codehaus.org/browse/CONTINUUM-1655
 Project: Continuum
  Issue Type: Wish
Reporter: Yuriy Kryshchuk


I have spent few hours configuring the build definition to use some paths as 
-D... options. I set 4 different parameters. Everything was working. Then I 
changed one path to some longer value and I could not save the definition. 
Continuum web UI shown me an error that it cannot save definition, but no 
details why.

Later I found (probably somewhere in logs) that I used the arguments with 
summary length more than 255 characters.

I would expect that in my situation (I described above) Continuum either says 
me exactly what is wrong or just allows long arguments (which is preferable).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MSITE-294) Can't escape ${project.version} as plain text inside apt +---- section, on *.apt.vm files

2008-02-11 Thread Andrew Hughes (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123355
 ] 

Andrew Hughes commented on MSITE-294:
-

attempt #2

+--
this won't come out like you want $\\{project.version\\}
+--

> Can't escape ${project.version} as plain text inside apt + section, on 
> *.apt.vm files
> -
>
> Key: MSITE-294
> URL: http://jira.codehaus.org/browse/MSITE-294
> Project: Maven 2.x Site Plugin
>  Issue Type: Bug
>Affects Versions: 2.0-beta-6
> Environment: *.apt.vm files, and +- escaped section.
>Reporter: Andrew Hughes
>Priority: Critical
>
> You can reproduce this the following way.
> ./src/site/index.apt.vm (start)
> --
> This will appear without the backslashes $\{project.version\} and that's 
> excellent. But you can't get this output in the escaped apt text section 
> below.
> +---
> However this apt escaped section still shows the backslashes inside this 
> section $\{project.version\} and there is no known way the text can be shown 
> as above.
> To make matters worse, when you put this in without the backslashes, you get 
> the properties value (like a filter). See: ${project.version} not the desired 
> string as above
> +---
> -
> ./src/site/index.apt.vm (start)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MSITE-294) Can't escape ${project.version} as plain text inside apt +---- section, on *.apt.vm files

2008-02-11 Thread Andrew Hughes (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123357
 ] 

Andrew Hughes commented on MSITE-294:
-

maybe I need to submit a bug to jira itself for this one

> Can't escape ${project.version} as plain text inside apt + section, on 
> *.apt.vm files
> -
>
> Key: MSITE-294
> URL: http://jira.codehaus.org/browse/MSITE-294
> Project: Maven 2.x Site Plugin
>  Issue Type: Bug
>Affects Versions: 2.0-beta-6
> Environment: *.apt.vm files, and +- escaped section.
>Reporter: Andrew Hughes
>Priority: Critical
>
> You can reproduce this the following way.
> ./src/site/index.apt.vm (start)
> --
> This will appear without the backslashes 
> {noformat}$\{project.version\}{noformat} and that's excellent. But you can't 
> get this output in the escaped apt text section below.
> {noformat}
> +---
> However this apt escaped section still shows the backslashes inside this 
> section $\{project.version\} and there is no known way the text can be shown 
> as above.
> To make matters worse, when you put this in without the backslashes, you get 
> the properties value (like a filter). See: ${project.version} not the desired 
> string as above
> +---
> {noformat}
> -
> ./src/site/index.apt.vm (start)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (MSITE-294) Can't escape ${project.version} as plain text inside apt +---- section, on *.apt.vm files

2008-02-11 Thread Wendy Smoak (JIRA)

 [ 
http://jira.codehaus.org/browse/MSITE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wendy Smoak updated MSITE-294:
--

Description: 
You can reproduce this the following way.

./src/site/index.apt.vm (start)
--

This will appear without the backslashes 
{noformat}$\{project.version\}{noformat} and that's excellent. But you can't 
get this output in the escaped apt text section below.

{noformat}
+---
However this apt escaped section still shows the backslashes inside this 
section $\{project.version\} and there is no known way the text can be shown as 
above.
To make matters worse, when you put this in without the backslashes, you get 
the properties value (like a filter). See: ${project.version} not the desired 
string as above
+---
{noformat}
-
./src/site/index.apt.vm (start)



  was:
You can reproduce this the following way.

./src/site/index.apt.vm (start)
--

This will appear without the backslashes $\{project.version\} and that's 
excellent. But you can't get this output in the escaped apt text section below.

+---
However this apt escaped section still shows the backslashes inside this 
section $\{project.version\} and there is no known way the text can be shown as 
above.
To make matters worse, when you put this in without the backslashes, you get 
the properties value (like a filter). See: ${project.version} not the desired 
string as above
+---

-
./src/site/index.apt.vm (start)




attempt to fix formatting

> Can't escape ${project.version} as plain text inside apt + section, on 
> *.apt.vm files
> -
>
> Key: MSITE-294
> URL: http://jira.codehaus.org/browse/MSITE-294
> Project: Maven 2.x Site Plugin
>  Issue Type: Bug
>Affects Versions: 2.0-beta-6
> Environment: *.apt.vm files, and +- escaped section.
>Reporter: Andrew Hughes
>Priority: Critical
>
> You can reproduce this the following way.
> ./src/site/index.apt.vm (start)
> --
> This will appear without the backslashes 
> {noformat}$\{project.version\}{noformat} and that's excellent. But you can't 
> get this output in the escaped apt text section below.
> {noformat}
> +---
> However this apt escaped section still shows the backslashes inside this 
> section $\{project.version\} and there is no known way the text can be shown 
> as above.
> To make matters worse, when you put this in without the backslashes, you get 
> the properties value (like a filter). See: ${project.version} not the desired 
> string as above
> +---
> {noformat}
> -
> ./src/site/index.apt.vm (start)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ARCHETYPE-127) New Version is not backwards compatible - prompts for version and package when they should be read from archetype

2008-02-11 Thread Matt Raible (JIRA)

[ 
http://jira.codehaus.org/browse/ARCHETYPE-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123353
 ] 

Matt Raible commented on ARCHETYPE-127:
---

Sounds right Wendy - feel free to mark it as a duplicate.

> New Version is not backwards compatible - prompts for version and package 
> when they should be read from archetype
> -
>
> Key: ARCHETYPE-127
> URL: http://jira.codehaus.org/browse/ARCHETYPE-127
> Project: Maven Archetype
>  Issue Type: Bug
>Affects Versions: 2.0-alpha-1
> Environment: Maven 2.0.8, OS X, Java 5
>Reporter: Matt Raible
>
> This new version of the archetype plugin breaks compatibility with the old 
> version. It prompts me for both version and package. It should default both 
> of these values to what's specified in the archetype (1.0-SNAPSHOT and war). 
> Try any of the "archetype:create" on the AppFuse QuickStart to reproduce.
> http://appfuse.org/display/APF/AppFuse+QuickStart
> These commands worked fine (no prompting) with the old version. For example:
> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes 
> -DarchetypeArtifactId=appfuse-basic-spring 
> -DremoteRepositories=http://static.appfuse.org/releases 
> -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app -DartifactId=myproject

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

2008-02-11 Thread Jason Chaffee (JIRA)

[ 
http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123361
 ] 

Jason Chaffee commented on MRM-691:
---

I shutdown archiva and restarted it and then I ran the repostiory scan and the 
NPE's are no longer present.  Now, I am only getting the invalid artifact path 
problem.  I will attach the new logs.

> Can't get any of the consumers to work without through a NPE
> 
>
> Key: MRM-691
> URL: http://jira.codehaus.org/browse/MRM-691
> Project: Archiva
>  Issue Type: Bug
>  Components: repository scanning
>Affects Versions: 1.0.1
> Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>Reporter: Jason Chaffee
> Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be 
> some type of InvalidPath issue as well.  
> Logs are attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MRM-691) Can't get any of the consumers to work without through a NPE

2008-02-11 Thread Brett Porter (JIRA)

[ 
http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123344
 ] 

Brett Porter commented on MRM-691:
--

I just noted the other exceptions you were posting about
"test-sources" artifacts is a different issue (I think it has already
been reported but would need to check).

For the NPE - it appears to be a consumer is null - you might check
the consumer configuration page - or look for empty entries in
archiva.xml.

> Can't get any of the consumers to work without through a NPE
> 
>
> Key: MRM-691
> URL: http://jira.codehaus.org/browse/MRM-691
> Project: Archiva
>  Issue Type: Bug
>  Components: repository scanning
>Affects Versions: 1.0.1
> Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>Reporter: Jason Chaffee
>     Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be 
> some type of InvalidPath issue as well.  
> Logs are attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SUREFIRE-319) true cannot be overridden using mvn -Dmaven.test.skip=false test

2008-02-11 Thread Jia Lu (JIRA)

[ 
http://jira.codehaus.org/browse/SUREFIRE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123340
 ] 

Jia Lu  commented on SUREFIRE-319:
--

We expereience same issue. It would be very useful if the "skip" values in 
pom.xml can be overridden in command line. 
e.g pom.xml

   true


Developers can simply build without junit test by just using "mvn install" . 
And "mvn install -Dmaven.test.skip=true" will build and run JUnit tests.



> true cannot be overridden using mvn -Dmaven.test.skip=false test
> -
>
> Key: SUREFIRE-319
> URL: http://jira.codehaus.org/browse/SUREFIRE-319
> Project: Maven Surefire
>  Issue Type: Bug
> Environment: java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
>Reporter: Graham Leggett
> Fix For: 2.x
>
>
> If the pom file is configured to skip tests using true, and an 
> attempt is made to override this on the command line using mvn 
> -Dmaven.test.skip=false test, the attempt does not work (the test is still 
> skipped).
> In theory, the command line flag should override the pom setting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Closed: (MSITE-279) Inheritance of elements from site descriptor quite broken

2008-02-11 Thread Vincent Siveton (JIRA)

 [ 
http://jira.codehaus.org/browse/MSITE-279?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Siveton closed MSITE-279.
-

 Assignee: Vincent Siveton
   Resolution: Fixed
Fix Version/s: 2.0-beta-7

new patch applied and updated code in site-plugin

> Inheritance of elements from site descriptor quite broken
> -
>
> Key: MSITE-279
> URL: http://jira.codehaus.org/browse/MSITE-279
> Project: Maven 2.x Site Plugin
>  Issue Type: Bug
>  Components: inheritance
>Affects Versions: 2.0-beta-6
> Environment: Maven 2.0.8, JDK 1.5.0_12, WinXP
>Reporter: Benjamin Bentmann
>Assignee: Vincent Siveton
>Priority: Critical
> Fix For: 2.0-beta-7
>
> Attachments: project.zip, site-directory.patch, site-directory.patch
>
>
> After updating to 2.0-beta-6, I never get proper site output for multi module 
> projects. I attached a simple dummy project that shall help to reproduce the 
> problem.
> When I perform a reactor build of the site (i.e. "project-parent> mvn site"), 
> the pages of the sub module project-module-1 properly inherit most of the 
> decorator elements, except for the custom "overview" menu. That is, the site 
> of the sub module contains the menu configured for the parent project despite 
> the sub module specifying its own menu.-
> In contrast, when I only build the site of the sub module (i.e. 
> "project-module-1> mvn site"), many decoration elements are not inherited 
> from the parent's site.xml like , , , . 
> However, now the sub module's site properly outputs its own menu items (i.e. 
> "Module-Item" instead of "Parent-Item" for the attached projects).
> This issues might be a duplicate/relative of MSITE-256 but as I cannot safely 
> judge from its description, I opened a new issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MRM-690) using undefined appserver.base

2008-02-11 Thread Tomasz Pik (JIRA)
using undefined appserver.base
--

 Key: MRM-690
 URL: http://jira.codehaus.org/browse/MRM-690
 Project: Archiva
  Issue Type: Bug
  Components: system
Affects Versions: 1.0.1
Reporter: Tomasz Pik


Archiva while first startup creates repositories using ${appserver.base}/data 
as a root directory.
But setup guide does not inform, that such property should be set up for tomcat 
during startup,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MCHANGES-88) NoSuchMethodError with maven 2.0.8 when generating changes-report

2008-02-11 Thread Niall Pemberton (JIRA)

[ 
http://jira.codehaus.org/browse/MCHANGES-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123249
 ] 

Niall Pemberton commented on MCHANGES-88:
-

OK I've created MCHANGES-100

> NoSuchMethodError with maven 2.0.8 when generating changes-report
> -
>
> Key: MCHANGES-88
> URL: http://jira.codehaus.org/browse/MCHANGES-88
> Project: Maven 2.x Changes Plugin
>  Issue Type: Bug
>  Components: changes-report
>Affects Versions: 2.0-beta-3
> Environment: [EMAIL PROTECTED]:/opt/nc/workspace/test_maven$ mvn 
> -version
> Maven version: 2.0.8
> Java version: 1.6.0_03
> OS name: "linux" version: "2.6.18-5-686" arch: "i386" Family: "unix"
>Reporter: Julien Graglia
>Assignee: Dennis Lundberg
> Fix For: 2.0
>
> Attachments: AbstractChangesReport.java, changes.log, changes.zip, 
> error.log, MCHANGES-88-Fix-NoSuchMethodError.patch, pom.xml, site.log
>
>
> I create a simple maven2 project, but when i call
> mvn -X -e changes:changes-report
> I get an error (full log in attachment)
> java.lang.NoSuchMethodError: 
> org.apache.maven.doxia.siterenderer.Renderer.createSink(Ljava/io/File;Ljava/lang/String;)Lorg/apache/maven/doxia/siterenderer/sink/SiteRendererSink;
> at 
> org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:63)
> at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
> at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (MRM-598) Validation error on new repository creation

2008-02-11 Thread Stefan Seidel (JIRA)

 [ 
http://jira.codehaus.org/browse/MRM-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seidel updated MRM-598:
--

Attachment: Bildschirmfoto.png

I get the same error. Using Archiva 1.0.1, Firefox 2.0.0.11 under Linux 
2.6.23.12. When I emptied the field the creation worked. Same thing for report. 
Screenshot attached.

> Validation error on new repository creation
> ---
>
> Key: MRM-598
> URL: http://jira.codehaus.org/browse/MRM-598
> Project: Archiva
>  Issue Type: Bug
>Affects Versions: 1.0-beta-4
> Environment: Win Server 2003
>Reporter: Federico Dal Maso
>Assignee: Maria Odea Ching
> Fix For: 1.0
>
> Attachments: Bildschirmfoto.png
>
>
> When I try to create a new snapshot repository by web interface I obtain this 
> validation error:
> Repository Purge By Days Older Than needs to be between 0 and 1000.
> even if field is correctly set to 30
> It is impossible to create a new repository!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MRM-689) Incorrect war name in example for tomcat

2008-02-11 Thread Tomasz Pik (JIRA)
Incorrect war name in example for tomcat


 Key: MRM-689
 URL: http://jira.codehaus.org/browse/MRM-689
 Project: Archiva
  Issue Type: Bug
  Components: documentation
Affects Versions: 1.0.1
Reporter: Tomasz Pik
Priority: Minor


Page with tomcat configuration shows configuration for archiva-webapp-1.0.war 
while file is distributed as apache-archiva-1.0.1.war

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Issue Comment Edited: (SCM-317) Add edit and unedit commands

2008-02-11 Thread Christophe Lallement (JIRA)

[ 
http://jira.codehaus.org/browse/SCM-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123238
 ] 

christophe edited comment on SCM-317 at 2/11/08 4:46 AM:
---

Hello

Any news for integration of  this patch into an official release ?
It works "like a charm" into my company since many months.

Regards.

  was (Author: christophe):
Hello

Any news for integration of  this path into an official release ?
It work like a charm in my copany since many months.

Regards.
  
> Add edit and unedit commands
> 
>
> Key: SCM-317
> URL: http://jira.codehaus.org/browse/SCM-317
> Project: Maven SCM
>  Issue Type: New Feature
>  Components: maven-scm-provider-cvs
>Reporter: Emmanuel Venisse
> Fix For: 1.x
>
> Attachments: provider-cvs-with-edit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Issue Comment Edited: (SCM-317) Add edit and unedit commands

2008-02-11 Thread Christophe Lallement (JIRA)

[ 
http://jira.codehaus.org/browse/SCM-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_113325
 ] 

christophe edited comment on SCM-317 at 2/11/08 4:44 AM:
---

Hello

I can see that the issue depend on MRELEASE-189 .
It's not the truth, it's opposite.

I have made a patch to add cvs edit feature
The patch is based on the 1.0 released (svn tag).

The fix  impact 3 projects:
* maven-scm-provider-cvs-commons
* maven-scm-provider-cvsexe
* maven-scm-provider-cvsjava

I have tested the both mode (native and command line) with success.

In fact the fix is in 2 parts:
1/ add the features into maven scm cvs plugins
2/ make a little patch because javacvs (netbeans) provide a default cvs command 
factory which does not include edit !!! (even the Edit command is present in 
the javacvs library ! ).

Let me know if you plan to include this in a next release.

Regards Christophe
PS: it's the first time i create a svn patch, if you want i can attach the 
complete source.



  was (Author: christophe):
Hello

I can see that the issue depend on MRELEASE-189 .
It's not the truth, it's opposite.

I have made a path to add cvs edit feature
The patch is based on the 1.0 released (svn tag).

The fix  impact 3 projects:
* maven-scm-provider-cvs-commons
* maven-scm-provider-cvsexe
* maven-scm-provider-cvsjava

I have tested the both mode (native and command line) with success.

In fact the fix is in 2 parts:
1/ add the features into maven scm cvs plugins
2/ make a little patch because javacvs (netbeans) provide a default cvs command 
factory which does not include edit !!! (even the Edit command is present in 
the javacvs library ! ).

Let me know if you plan to include this in a next release.

Regards Christophe
PS: it's the first time i create a svn patch, if you want i can attach the 
complete source.


  
> Add edit and unedit commands
> 
>
> Key: SCM-317
> URL: http://jira.codehaus.org/browse/SCM-317
> Project: Maven SCM
>  Issue Type: New Feature
>  Components: maven-scm-provider-cvs
>Reporter: Emmanuel Venisse
> Fix For: 1.x
>
> Attachments: provider-cvs-with-edit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MAVENUPLOAD-1930) Please add ini4j to repository

2008-02-11 Thread Ivan Szkiba (JIRA)
Please add ini4j to repository
--

 Key: MAVENUPLOAD-1930
 URL: http://jira.codehaus.org/browse/MAVENUPLOAD-1930
 Project: maven-upload-requests
  Issue Type: Wish
Reporter: Ivan Szkiba
 Attachments: org.ini4j.sh

I'd like to add ini4j to maven repository. Project hosted on SourceForge 
(script attached).

thanx 
Ivan Szkiba


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MSITE-294) Can't escape ${project.version} as plain text inside apt +---- section, on *.apt.vm files

2008-02-11 Thread Andrew Hughes (JIRA)

[ 
http://jira.codehaus.org/browse/MSITE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123358
 ] 

Andrew Hughes commented on MSITE-294:
-

thanks Wendy! :)

> Can't escape ${project.version} as plain text inside apt + section, on 
> *.apt.vm files
> -
>
> Key: MSITE-294
> URL: http://jira.codehaus.org/browse/MSITE-294
> Project: Maven 2.x Site Plugin
>  Issue Type: Bug
>Affects Versions: 2.0-beta-6
> Environment: *.apt.vm files, and +- escaped section.
>Reporter: Andrew Hughes
>Priority: Critical
>
> You can reproduce this the following way.
> ./src/site/index.apt.vm (start)
> --
> This will appear without the backslashes 
> {noformat}$\{project.version\}{noformat} and that's excellent. But you can't 
> get this output in the escaped apt text section below.
> {noformat}
> +---
> However this apt escaped section still shows the backslashes inside this 
> section $\{project.version\} and there is no known way the text can be shown 
> as above.
> To make matters worse, when you put this in without the backslashes, you get 
> the properties value (like a filter). See: ${project.version} not the desired 
> string as above
> +---
> {noformat}
> -
> ./src/site/index.apt.vm (start)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (ARCHETYPE-127) New Version is not backwards compatible - prompts for version and package when they should be read from archetype

2008-02-11 Thread Wendy Smoak (JIRA)

[ 
http://jira.codehaus.org/browse/ARCHETYPE-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123352
 ] 

Wendy Smoak commented on ARCHETYPE-127:
---

Looks like a duplicate of http://jira.codehaus.org/browse/ARCHETYPE-117

> New Version is not backwards compatible - prompts for version and package 
> when they should be read from archetype
> -
>
> Key: ARCHETYPE-127
> URL: http://jira.codehaus.org/browse/ARCHETYPE-127
> Project: Maven Archetype
>  Issue Type: Bug
>Affects Versions: 2.0-alpha-1
> Environment: Maven 2.0.8, OS X, Java 5
>Reporter: Matt Raible
>
> This new version of the archetype plugin breaks compatibility with the old 
> version. It prompts me for both version and package. It should default both 
> of these values to what's specified in the archetype (1.0-SNAPSHOT and war). 
> Try any of the "archetype:create" on the AppFuse QuickStart to reproduce.
> http://appfuse.org/display/APF/AppFuse+QuickStart
> These commands worked fine (no prompting) with the old version. For example:
> mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes 
> -DarchetypeArtifactId=appfuse-basic-spring 
> -DremoteRepositories=http://static.appfuse.org/releases 
> -DarchetypeVersion=2.0.1 -DgroupId=com.mycompany.app -DartifactId=myproject

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MRM-691) Can't get any of the consumers to work without through a NPE

2008-02-11 Thread Jason Chaffee (JIRA)
Can't get any of the consumers to work without through a NPE


 Key: MRM-691
 URL: http://jira.codehaus.org/browse/MRM-691
 Project: Archiva
  Issue Type: Bug
  Components: repository scanning
Affects Versions: 1.0.1
 Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
Reporter: Jason Chaffee
 Attachments: archiva.log, audit.log, wrapper.20080211.log

It appears to be causing NPE for all consumers and some there seems to be some 
type of InvalidPath issue as well.  

Logs are attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Issue Comment Edited: (MRM-691) Can't get any of the consumers to work without through a NPE

2008-02-11 Thread Jason Chaffee (JIRA)

[ 
http://jira.codehaus.org/browse/MRM-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123361
 ] 

jasonchaffee edited comment on MRM-691 at 2/12/08 1:13 AM:


I shutdown archiva and restarted it and then I ran the repostiory scan and the 
NPE's are no longer present.  Now, I am only getting the invalid artifact path 
problem.

2291646 [pool-2-thread-1] ERROR 
org.apache.maven.archiva.repository.scanner.RepositoryScanner:default  - 
Consumer [repository-purge] had an error when processing file 
[/disk1/html/maven2-snapshot/com/tvworks/tva/apps/comcast/admincla/3.3.1-SNAPSHOT/admincla-3.3.1-20080115.074922-1.jar]:
 Invalid path to Artifact: filename format is invalid,expected timestamp format 
in filename.
org.apache.maven.archiva.consumers.ConsumerException: Invalid path to Artifact: 
filename format is invalid,expected timestamp format in filename.
at 
org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer.processFile(RepositoryPurgeConsumer.java:189)
at 
org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure.execute(ConsumerProcessFileClosure.java:57)
at 
org.apache.commons.collections.functors.IfClosure.execute(IfClosure.java:117)
at 
org.apache.commons.collections.CollectionUtils.forAllDo(CollectionUtils.java:388)
at 
org.apache.maven.archiva.repository.scanner.RepositoryScannerInstance.directoryWalkStep(RepositoryScannerInstance.java:138)
at 
org.codehaus.plexus.util.DirectoryWalker.fireStep(DirectoryWalker.java:173)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:391)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scanDir(DirectoryWalker.java:385)
at 
org.codehaus.plexus.util.DirectoryWalker.scan(DirectoryWalker.java:344)
at 
org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:120)
at 
org.apache.maven.archiva.repository.scanner.DefaultRepositoryScanner.scan(DefaultRepositoryScanner.java:64)
at 
org.apache.maven.archiva.scheduled.executors.ArchivaRepositoryScanningTaskExecutor.executeTask(ArchivaRepositoryScanningTaskExecutor.java:106)
at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
at 
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
at 
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)
Caused by: 
org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeException: 
Invalid path to Artifact: filename format is invalid,expected timestamp format 
in filename.
at 
org.apache.maven.archiva.consumers.core.repository.RetentionCountRepositoryPurge.process(RetentionCountRepositoryPurge.java:102)
at 
org.apache.maven.archiva.consumers.core.repository.RepositoryPurgeConsumer.processFile(RepositoryPurgeConsumer.java:185)
... 23 more

  was (Author: jasonchaffee):
I shutdown archiva and restarted it and then I ran the repostiory scan and 
the NPE's are no longer present.  Now, I am only getting the invalid artifact 
path problem.  I will attach the new logs.
  
> Can't get any of the consumers to work without through a NPE
> 
>
> Key: MRM-691
> URL: http://jira.codehaus.org/browse/MRM-691
> Project: Archiva
>  Issue Type: Bug
>  Components: repository scanning
>Affects Versions: 1.0.1
> Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
>Reporter: Jason Chaffee
>     Attachments: archiva.log, audit.log, wrapper.20080211.log
>
>
> It appears to be causing NPE for all consumers and some there seems to be 
> some type of InvalidPath issue as well.  
> Logs are attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorr

[jira] Issue Comment Edited: (SUREFIRE-319) true cannot be overridden using mvn -Dmaven.test.skip=false test

2008-02-11 Thread Jia Lu (JIRA)

[ 
http://jira.codehaus.org/browse/SUREFIRE-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123340
 ] 

jialu edited comment on SUREFIRE-319 at 2/11/08 6:26 PM:
---

We expereience same issue. It would be very useful if the "skip" values in 
pom.xml can be overridden in command line. 
e.g pom.xml

   true


Developers can simply build without junit test by just using "mvn install" . 
And "mvn install -Dmaven.test.skip=false" will build and run JUnit tests.



  was (Author: jialu):
We expereience same issue. It would be very useful if the "skip" values in 
pom.xml can be overridden in command line. 
e.g pom.xml

   true


Developers can simply build without junit test by just using "mvn install" . 
And "mvn install -Dmaven.test.skip=true" will build and run JUnit tests.


  
> true cannot be overridden using mvn -Dmaven.test.skip=false test
> -
>
> Key: SUREFIRE-319
> URL: http://jira.codehaus.org/browse/SUREFIRE-319
> Project: Maven Surefire
>  Issue Type: Bug
> Environment: java version "1.5.0_09"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b01)
> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b01, mixed mode)
>Reporter: Graham Leggett
> Fix For: 2.x
>
>
> If the pom file is configured to skip tests using true, and an 
> attempt is made to override this on the command line using mvn 
> -Dmaven.test.skip=false test, the attempt does not work (the test is still 
> skipped).
> In theory, the command line flag should override the pom setting.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (MCHANGES-100) Generating the jira-report causes error "The system cannot find the path specified"

2008-02-11 Thread Niall Pemberton (JIRA)
Generating the jira-report causes error "The system cannot find the path 
specified"
---

 Key: MCHANGES-100
 URL: http://jira.codehaus.org/browse/MCHANGES-100
 Project: Maven 2.x Changes Plugin
  Issue Type: Bug
  Components: jira-report
Affects Versions: 2.0
 Environment: Winows XP, maven 2.0.8, Sun JDK 1.5.0_07
Reporter: Niall Pemberton
Priority: Minor
 Attachments: maven-changes-jira-report-path-error.patch

When I run the jira-report for Commons IO using "mvn clean changes:jira-report" 
I get the following error:

[ERROR] Error downloading issues from JIRA. Cause is 
C:\svn\commons\trunks-proper\io\target\jira-results.xml (The system cannot find 
the path specified)

(this is using a build of the latest 2.0-SNAPSHOT version of 
maven-changes-plugin)

Attaching a patch which fixes this.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SCM-317) Add edit and unedit commands

2008-02-11 Thread Christophe Lallement (JIRA)

[ 
http://jira.codehaus.org/browse/SCM-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123238
 ] 

Christophe Lallement commented on SCM-317:
--

Hello

Any news for integration of  this path into an official release ?
It work like a charm in my copany since many months.

Regards.

> Add edit and unedit commands
> 
>
> Key: SCM-317
> URL: http://jira.codehaus.org/browse/SCM-317
> Project: Maven SCM
>  Issue Type: New Feature
>  Components: maven-scm-provider-cvs
>Reporter: Emmanuel Venisse
> Fix For: 1.x
>
> Attachments: provider-cvs-with-edit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (MNG-2255) Use a external XML Pull parser instead of plexus one

2008-02-11 Thread Brett Porter (JIRA)

[ 
http://jira.codehaus.org/browse/MNG-2255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123232
 ] 

Brett Porter commented on MNG-2255:
---

this is now in place in the branch for MNG-3397

> Use a external XML Pull parser instead of plexus one
> 
>
> Key: MNG-2255
> URL: http://jira.codehaus.org/browse/MNG-2255
> Project: Maven 2
>  Issue Type: Improvement
>  Components: POM
>Affects Versions: 2.0.4
>Reporter: Carlos Sanchez
>Priority: Critical
> Fix For: 2.1
>
>
> To avoid maintaining the plexus XMLPullParser we should move to a standard 
> implementation like StaX
> As mentioned in DOXIA-60:
> There's a performance white paper
> http://java.sun.com/performance/reference/whitepapers/StAX-1_0.pdf
> The best implementation seems to be http://woodstox.codehaus.org/
> Another nice set of utilities at 
> http://wiki.java.net/bin/view/Javawsxml/StaxUtilsProject
> The indentator could be used instead of the PrettyPrintXMLWriter

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Created: (CONTINUUM-1654) Different Site Generation. Continuum builds wrong menu-structure.

2008-02-11 Thread Claus Polanka (JIRA)
Different Site Generation. Continuum builds wrong menu-structure.
-

 Key: CONTINUUM-1654
 URL: http://jira.codehaus.org/browse/CONTINUUM-1654
 Project: Continuum
  Issue Type: Bug
  Components: Integration - Maven 2
Affects Versions: 1.1
 Environment: OS: Windows Maven: 2.0.4 JDK: 1.5
Reporter: Claus Polanka
Priority: Blocker
 Attachments: output.txt

My problem is the site-generation within continuum. If I invoke the follwong 
command: 'mvn site:site' over the command-line I'll get a different result than 
continuum builds. Continuum doesn't create the site-menu which is defined in my 
src/site/site.xml but over the command-line there aren't any troubles. I 
attached the Continuum build-output after I invoked the mvn site:site command. 
Thank you for your help.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (CONTINUUM-1655) Project Build Definition Arguments

2008-02-11 Thread Emmanuel Venisse (JIRA)

[ 
http://jira.codehaus.org/browse/CONTINUUM-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123317
 ] 

Emmanuel Venisse commented on CONTINUUM-1655:
-

the workaround is to increase the column length in your db.

> Project Build Definition Arguments
> --
>
> Key: CONTINUUM-1655
> URL: http://jira.codehaus.org/browse/CONTINUUM-1655
> Project: Continuum
>  Issue Type: Wish
>Affects Versions: 1.1
>Reporter: Yuriy Kryshchuk
>
> I have spent few hours configuring the build definition to use some paths as 
> -D... options. I set 4 different parameters. Everything was working. Then I 
> changed one path to some longer value and I could not save the definition. 
> Continuum web UI shown me an error that it cannot save definition, but no 
> details why.
> Later I found (probably somewhere in logs) that I used the arguments with 
> summary length more than 255 characters.
> I would expect that in my situation (I described above) Continuum either says 
> me exactly what is wrong or just allows long arguments (which is preferable).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira